Gh Issue Create

Create GitHub issues with gh CLI, including labels, assignees, milestones, and projects.

dceoy d7b3c35 1.2 KB Updated

File contents

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

  1. Verify auth:
    gh --version
    gh auth status
    
  2. Create the issue:
    gh issue create --title "Bug: login fails" --body "Steps to reproduce..."
    gh issue create --label "bug" --assignee "@me"
    
  3. 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 @me assigns yourself; @copilot is supported on GitHub.com only.
  • Adding to projects may require gh auth refresh -s project.

References

dceoy/github-cli-agent-skills/tree/main/skills/gh-issue-create commit d7b3c35442

Frequently asked questions

npx skillmds@latest add dceoy/gh-issue-create