Loading...
Loading...
Compare original and translation side by side
Closes #XFixes #XCloses #XFixes #Xundefinedundefined
**Find ALL issues this PR addresses:**
- Issues explicitly being fixed
- Issues partially addressed
- Related issues for context
**找出此PR解决的所有Issue:**
- 明确修复的Issue
- 部分解决的Issue
- 作为上下文的相关Issueundefinedundefinedundefinedundefinedwriting-clearly-and-conciselygh pr create --title "[type]: [emoji] [description]" --body "$(cat <<'EOF'
[Two-sentence summary of what and why]writing-clearly-and-conciselygh pr create --title "[type]: [emoji] [description]" --body "$(cat <<'EOF'
[两句话总结变更内容及原因]undefinedundefined| Keyword | Example | Effect |
|---|---|---|
| | Closes issue when PR merges |
| | Closes issue when PR merges |
| | Closes issue when PR merges |
Closes #X - brief description| 关键词 | 示例 | 效果 |
|---|---|---|
| | PR合并时关闭Issue |
| | PR合并时关闭Issue |
| | PR合并时关闭Issue |
Closes #X - 简要描述undefinedundefined
---
---[Two-sentence summary: what changed and why it was needed][两句话总结:变更内容及必要性]path/to/file1.tspath/to/file2.ts
---path/to/file1.tspath/to/file2.ts
---❌ WRONG:
gh pr create --title "Fix bug" --body "Fixed the thing"
❌ WRONG:
"Related: #123" (no closing keyword, issue won't close)
❌ WRONG:
No mention of any issues at all
✅ CORRECT:
gh pr create --title "fix: 🔧 Resolve auth token expiration" --body "
Fixes session timeout by implementing token refresh.❌ 错误示例:
gh pr create --title "Fix bug" --body "Fixed the thing"
❌ 错误示例:
"Related: #123"(未使用关闭关键词,Issue不会自动关闭)
❌ 错误示例:
完全未提及任何Issue
✅ 正确示例:
gh pr create --title "fix: 🔧 Resolve auth token expiration" --body "
通过实现令牌刷新修复会话超时问题。
---
---| PR Type | Diagram Use |
|---|---|
| Bug fix | Before/after flow showing fix |
| New feature | User journey or data flow |
| Refactor | Component dependency changes |
| API changes | Request/response sequence |
| PR类型 | 图表用途 |
|---|---|
| Bug修复 | 展示修复前后的流程 |
| 新功能 | 用户旅程或数据流程 |
| 重构 | 组件依赖变更 |
| API变更 | 请求/响应序列 |
undefinedundefinedsequenceDiagram
participant C as Client
participant A as Auth Service
participant D as Database
C->>A: Request with expired token
A-->>C: 401 Token Expired
C->>A: POST /refresh with refresh_token
A->>D: Validate refresh token
D-->>A: Token valid
A-->>C: New access token
C->>A: Retry original request
A-->>C: 200 SuccesssequenceDiagram
participant C as Client
participant A as Auth Service
participant D as Database
C->>A: Request with expired token
A-->>C: 401 Token Expired
C->>A: POST /refresh with refresh_token
A->>D: Validate refresh token
D-->>A: Token valid
A-->>C: New access token
C->>A: Retry original request
A-->>C: 200 Successundefinedundefinedundefinedundefined
**Tips:**
- Keep diagrams focused (5-10 nodes)
- Show the change, not entire system
- Before/after pairs are powerful
- Embed in PR body, not as links
---
**提示:**
- 保持图表简洁(5-10个节点)
- 展示变更部分,而非整个系统
- 前后对比的图表效果极佳
- 嵌入PR正文中,而非使用链接
---gh issue list --search "keywords"Closes #XFixes #Xgh pr view --json closingIssuesReferencesgh issue list --search "keywords"Closes #XFixes #Xgh pr view --json closingIssuesReferences