Linux command
gh-issue 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List issues
gh issue list
Create an issue
gh issue create
View an issue
gh issue view [number]
Close an issue
gh issue close [number]
Reopen an issue
gh issue reopen [number]
Edit an issue
gh issue edit [number]
Search issues
gh issue list --search "[query]"
List your issues
gh issue list --assignee @me
说明
gh issue manages GitHub issues for tracking bugs, feature requests, tasks, and discussions. Issues form the core of project management on GitHub, supporting labels, assignees, milestones, and projects. The command provides comprehensive issue lifecycle management including creation, editing, commenting, status changes, and deletion. Filtering capabilities enable finding issues by assignee, label, state, and search queries. Issues can be managed across multiple repositories. Integration with pull requests allows linking issues to code changes, with automatic closing when PRs merge using keywords in commit messages.
参数
- -R, --repo _owner/repo_
- Repository.
- -a, --assignee _user_
- Filter by assignee.
- -l, --label _label_
- Filter by label.
- -s, --state _state_
- Filter by state.
FAQ
What is the gh-issue command used for?
gh issue manages GitHub issues for tracking bugs, feature requests, tasks, and discussions. Issues form the core of project management on GitHub, supporting labels, assignees, milestones, and projects. The command provides comprehensive issue lifecycle management including creation, editing, commenting, status changes, and deletion. Filtering capabilities enable finding issues by assignee, label, state, and search queries. Issues can be managed across multiple repositories. Integration with pull requests allows linking issues to code changes, with automatic closing when PRs merge using keywords in commit messages.
How do I run a basic gh-issue example?
Run `gh issue list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -R, --repo _owner/repo_ do in gh-issue?
Repository.