Loading...
Loading...
Compare original and translation side by side
ghgh| Task | Command |
|---|---|
| Create issue | |
| Active tasks | |
| List open bugs | |
| View as JSON | |
| Close with comment | |
| Edit labels | |
| Start work | |
| Create branch | |
| Load context | |
| 任务 | 命令 |
|---|---|
| 创建Issue | |
| 活跃任务 | |
| 列出未关闭的Bug | |
| 以JSON格式查看 | |
| 带评论关闭Issue | |
| 编辑标签 | |
| 开始工作 | |
| 创建分支 | |
| 加载上下文 | |
--jsonnumbertitlebodystatelabelsassigneesmilestoneauthorcreatedAtupdatedAtcommentsurlgh issue view 123 --json number,title,labels,state
gh issue list --json number,title,labels --jq '.[] | select(.labels[].name == "bug")'
gh issue list -l bug --json number --jq '.[].number'--jsonnumbertitlebodystatelabelsassigneesmilestoneauthorcreatedAtupdatedAtcommentsurlgh issue view 123 --json number,title,labels,state
gh issue list --json number,title,labels --jq '.[] | select(.labels[].name == "bug")'
gh issue list -l bug --json number --jq '.[].number'gh issue list --search "is:open author:username"
gh issue list --search "created:>=2026-01-01 created:<=2026-01-07"
gh issue list --search "label:bug label:priority:high"
gh issue list --search "is:open -label:wontfix"
gh issue list --search "milestone:v2.0"gh issue list --search "is:open author:username"
gh issue list --search "created:>=2026-01-01 created:<=2026-01-07"
gh issue list --search "label:bug label:priority:high"
gh issue list --search "is:open -label:wontfix"
gh issue list --search "milestone:v2.0"gh issue edit 10 15 20 --add-label "priority:high"
gh issue close 10 15 20 -c "Duplicate of #5"
gh issue list -l needs-triage --json number --jq '.[].number' | \
xargs -I{} gh issue edit {} --add-label reviewedgh issue edit 10 15 20 --add-label "priority:high"
gh issue close 10 15 20 -c "Duplicate of #5"
gh issue list -l needs-triage --json number --jq '.[].number' | \
xargs -I{} gh issue edit {} --add-label reviewedgh issue develop 123 --checkout # Create branch from issue
git add . && git commit -m "fix: #123" # Commit with reference
gh pr create --fill # Create PR (auto-links)
gh issue close 123 -c "Fixed in PR #456" # Close when mergedgh issue develop 123 --checkout # 从Issue创建分支
git add . && git commit -m "fix: #123" # 提交并关联Issue
gh pr create --fill # 创建PR(自动关联)
gh issue close 123 -c "Fixed in PR #456" # 合并后关闭Issuegh api repos/:owner/:repo/milestones --jq '.[].title'
gh issue edit 123 -m "v2.0"gh api repos/:owner/:repo/milestones --jq '.[].title'
gh issue edit 123 -m "v2.0"undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedreferences/context-template.md<!-- AI-CONTEXT:START -->references/context-template.md<!-- AI-CONTEXT:START -->file.py:45other.py:120undefinedfile.py:45other.py:120undefined| Label | Meaning |
|---|---|
| In queue |
| Active work |
| Blocked |
| Needs review |
| 标签 | 含义 |
|---|---|
| 待办队列 |
| 进行中 |
| 阻塞 |
| 待审核 |
undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedgh issue create -t "Simplify bot flow" -b "## Problem
Bot stopped converting. Current flow is complex.gh issue create -t "简化机器人流程" -b "## 问题
机器人停止转换。当前流程过于复杂。undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedhandlers/start.py:45-78data/courses.yamlhandlers/start.py:45-78data/courses.yamlundefinedundefinedundefinedundefinedundefinedundefined| Mistake | Fix |
|---|---|
Missing | Always |
| Loop instead of multi-arg | |
Using | Use |
Forgot | Default is open only |
| Use |
| Duplicate context comments | Update existing, don't create new |
| 错误 | 解决方法 |
|---|---|
未使用 | 始终使用 |
| 循环处理而非多参数 | 使用 |
对输出使用 | 使用 |
忘记用 | 默认仅显示未关闭的 |
API中使用 | 使用 |
| 重复创建上下文评论 | 更新现有评论,不要创建新的 |