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/REPOformat. 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
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms