Loading...
Loading...
Compare original and translation side by side
git add -pgit add -ptypescopefeatfixgit logtypescopefeatfixgit logfix(api)style(ui)feat(user): add profile pagefix(api)style(ui)feat(user): add profile page<type>(<scope>): <subject>
<body>
<footer><type>(<scope>): <subject>
<body>
<footer>| Type | Semantic Meaning | SemVer |
|---|---|---|
| feat | A new feature | |
| fix | A bug fix | |
| docs | Documentation only | |
| style | Formatting (whitespace, semi-colons, etc.) | |
| refactor | Code change (no feature, no fix) | |
| perf | Performance improvement | |
| test | Adding or correcting tests | |
| build | Build system / dependencies | |
| ci | CI configuration / scripts | |
| chore | Maintainance (no src/test change) | |
| revert | Reverting a previous commit | |
| 类型 | 语义 | SemVer |
|---|---|---|
| feat | 新增功能 | |
| fix | 修复Bug | |
| docs | 仅修改文档 | |
| style | 格式调整(空格、分号等) | |
| refactor | 代码重构(无新增功能、无Bug修复) | |
| perf | 性能优化 | |
| test | 添加或修正测试 | |
| build | 构建系统/依赖项修改 | |
| ci | CI配置/脚本修改 | |
| chore | 维护工作(无源码/测试文件修改) | |
| revert | 回滚之前的提交 | |
src/auth/login.tsauthcomponents/Button.tsxuicomponentsREADME.mddocssrc/auth/login.tsauthcomponents/Button.tsxuicomponentsREADME.mddocs!feat(api)!: remove v1 endpointsBREAKING CHANGE: <description>!feat(api)!: remove v1 endpointsBREAKING CHANGE: <description>git branch --show-currentmainmasterdev<type>/<short-description>git checkout -b fix/login-errorfeat/dark-modegit branch --show-currentmainmasterdev<type>/<short-description>git checkout -b fix/login-errorfeat/dark-modegit status # What's the state?
git diff # Review unstaged changes
git diff --cached # Review staged changes (Sanity Check)git status # 当前状态?
git diff # 查看未暂存的变更
git diff --cached # 查看已暂存的变更( sanity检查)git add -pgit add .git add -pgit add .npm testpytestcargo testcargo checktscnpm run lintpackage.jsonMakefileREADME.mdnpm testpytestcargo testcargo checktscnpm run lintpackage.jsonMakefileREADME.mdgit commit -m "<type>(<scope>): <subject>" -m "<body>"git commit -m "<type>(<scope>): <subject>" -m "<body>"git pull --rebasegit push origin <current-branch>git pull --rebasegit push origin <current-branch>--force--hard--no-verifymainmasterdev--no-verify--force--hard--no-verifymainmasterdev--no-verifyfix(api): handle null response in user endpoint
The user API could return null for deleted accounts, causing a crash
in the dashboard. Added a null check before accessing user properties.fix(api): 处理用户接口的空响应
用户API在返回已删除账户信息时可能返回null,导致仪表盘崩溃。
在访问用户属性前添加了空值检查。feat(alerts): add Slack thread replies for alert updates
When an alert is updated or resolved, post a reply to the original
Slack thread instead of creating a new message. This keeps related
notifications grouped together.feat(alerts): 为告警更新添加Slack线程回复
当告警更新或解决时,在原Slack线程中回复,而非创建新消息。
这样可将相关通知分组展示。refactor: extract common validation logic to shared module
Move duplicate validation code from three endpoints into a shared
validator class. No behavior change.refactor: 将通用验证逻辑提取到共享模块
将三个接口中的重复验证代码迁移到共享验证器类中。无行为变更。feat(api)!: remove deprecated v1 endpoints
Remove all v1 API endpoints that were deprecated in version 23.1.
Clients should migrate to v2 endpoints.
BREAKING CHANGE: v1 endpoints no longer available.feat(api)!: 移除已废弃的v1接口
移除所有在23.1版本中已废弃的v1 API接口。
客户端应迁移到v2接口。
BREAKING CHANGE: v1接口已不再可用。revert: feat(api): add new endpoint
This reverts commit abc123def456.
Reason: Caused performance regression in production.revert: feat(api): add new endpoint
此提交回滚了abc123def456提交。
原因:导致生产环境性能下降。