返回 AiToEarn
issue-tracker-github.md
1 # Issue tracker: GitHub
2
3 Issues and PRDs for this repo live as GitHub issues. Use the `gh` CLI for all operations.
4
5 ## Conventions
6
7 - **Create an issue**: `gh issue create --title "..." --body "..."`. Use a heredoc for multi-line bodies.
8 - **Read an issue**: `gh issue view <number> --comments`, filtering comments by `jq` and also fetching labels.
9 - **List issues**: `gh issue list --state open --json number,title,body,labels,comments --jq '[.[] | {number, title, body, labels: [.labels[].name], comments: [.comments[].body]}]'` with appropriate `--label` and `--state` filters.
10 - **Comment on an issue**: `gh issue comment <number> --body "..."`
11 - **Apply / remove labels**: `gh issue edit <number> --add-label "..."` / `--remove-label "..."`
12 - **Close**: `gh issue close <number> --comment "..."`
13
14 Infer the repo from `git remote -v` — `gh` does this automatically when run inside a clone.
15
16 ## When a skill says "publish to the issue tracker"
17
18 Create a GitHub issue.
19
20 ## When a skill says "fetch the relevant ticket"
21
22 Run `gh issue view <number> --comments`.
23
23 lines MARKDOWN