Github

Manage GitHub repositories via the gh CLI. Use when working with issues, PRs, releases, or repository settings.

fworks-tech Updated

File contents

gh

Use gh to interact with GitHub.

Common Commands

Issues

  • List issues: gh issue list
  • View issue: gh issue view <number>
  • Create issue: gh issue create --title "Title" --body "Description"
  • Close issue: gh issue close <number>

Pull Requests

  • List PRs: gh pr list
  • View PR: gh pr view <number>
  • Create PR: gh pr create --title "Title" --body "Description"
  • Checkout PR: gh pr checkout <number>
  • Merge PR: gh pr merge <number> --merge
  • Review PR: gh pr review <number> --approve

Repositories

  • Clone: gh repo clone <owner>/<repo>
  • View repo: gh repo view
  • Create repo: gh repo create <name> --public

Releases

  • List releases: gh release list
  • Create release: gh release create v1.0.0 --title "Release" --notes "Notes"

Notes

  • Requires gh auth login for authentication
  • Use --json flag for machine-readable output

fworks-tech/agenthood/tree/main/skills/github commit 2eb9a5888c

Frequently asked questions

npx skillmds@latest add fworks-tech/github