GitHub Issue Create
When to use
- The user asks to open a new issue.
- You need to file a bug, feature request, or task.
Inputs to confirm
- Title and body.
- Labels, assignees, milestone, project (optional).
- Target repo if not current (
--repo OWNER/REPO).
Workflow
- Verify auth:
gh --version gh auth status - Create the issue:
gh issue create --title "Bug: login fails" --body "Steps to reproduce..." gh issue create --label "bug" --assignee "@me" - Optional: use templates or open the web flow:
gh issue create --template "Bug Report" gh issue create --web
Examples
# Create with labels and assignee
~ gh issue create --title "Add caching" --body "Details..." --label "performance" --assignee "@me"
Notes
--assignee @meassigns yourself;@copilotis supported on GitHub.com only.- Adding to projects may require
gh auth refresh -s project.
References
- GitHub CLI manual: https://cli.github.com/manual/
gh issue create --help