GH-ISSUE-PIN(1)

πŸ’… GH-ISSUE-PIN(1) β€” the GitHub CLI manual, bestie edition

okay so real talk, this is the page for gh-issue-pin from the GitHub CLI manual, and it's genuinely so simple it's giving one-job-one-vibe. let's get into it 🫢


✨ NAME ✨

gh-issue-pin β€” pin an issue. that's it. that's the whole personality. πŸ“Œ


✨ SYNOPSIS ✨

gh issue pin {<number> | <url>} [flags]

so you either hand it a <number> or a <url>, pick one, you don't need both, and then flags are optional because of course they are πŸ’…


✨ DESCRIPTION ✨

Pin an issue to a repository. πŸŽ€

The issue can be specified by issue number or URL β€” like, whichever one your brain has handy in the moment. no stress, both slay.


✨ OPTIONS INHERITED FROM PARENT COMMANDS ✨

these aren't even its own options, it just inherited them from its parents, main character energy honestly πŸ‘‘

  • -R, --repo <[HOST/]OWNER/REPO> β€” Select another repository using the [HOST/]OWNER/REPO format. so like, you're not locked into the current repo, you can point at a totally different one. iconic ✨

✨ EXIT CODES ✨

the vibe check at the end of every run πŸ’€ here's what the numbers mean:

  • 0: Successful execution β€” ate and left no crumbs πŸ”₯
  • 1: Error β€” something went sideways 😭
  • 2: Command canceled β€” you (or something) hit the brakes πŸ™ˆ
  • 4: Authentication required β€” you gotta prove who you are first πŸ”
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. so don't come for me if you see a number that isn't on this list, check the command's own help bestie 🫢

✨ EXAMPLE ✨

like, actual examples, in code, verbatim, no cap:

# Pin an issue to the current repository
$ gh issue pin 23

# Pin an issue by URL
$ gh issue pin https://github.com/owner/repo/issues/23

# Pin an issue to specific repository
$ gh issue pin 23 --repo owner/repo

three ways, all valid, all gorgeous. 23 by number in the current repo, the full https://github.com/owner/repo/issues/23 URL if that's more your thing, or 23 plus --repo owner/repo when you're being specific about where it lands 🌸


✨ SEE ALSO ✨

  • gh-issue(1) β€” go hang out with the parent command, it's got the lore πŸ¦‹

and that's the whole page!! mwah πŸ’‹ this lil doc is from GitHub CLI v2.102.0, dated Oct 2026 β€” go pin something gorgeous, bestie πŸ‘‘πŸ’–

πŸ“¦ where this page comes from