Gh Issue Edit

Edit GitHub issues (title, body, labels, assignees, milestones, projects) using gh CLI.

dceoy 1c0f02b 1.1 KB Updated

File contents

GitHub Issue Edit

When to use

  • The user asks to update issue metadata or content.
  • You need to add/remove labels, assignees, milestones, or projects.

Inputs to confirm

  • Issue number(s) or URL(s).
  • Changes to apply (title/body/labels/etc.).
  • Target repo if not current (--repo OWNER/REPO).

Workflow

  1. Verify auth:
    gh --version
    gh auth status
    
  2. Apply edits:
    gh issue edit 123 --title "New title" --body "Updated body"
    gh issue edit 123 --add-label "bug" --remove-label "triage"
    gh issue edit 123 --add-assignee "@me"
    
  3. Verify:
    gh issue view 123
    

Examples

# Add labels and assign yourself
~ gh issue edit 123 --add-label "help wanted" --add-assignee "@me"

Notes

  • --add-assignee/--remove-assignee support @me and @copilot (GitHub.com only).
  • Project edits may require gh auth refresh -s project.

References

dceoy/github-cli-agent-skills/tree/main/skills/gh-issue-edit commit 1c0f02b18f

Frequently asked questions

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