GH-PR-LOCK(1)
π GH-PR-LOCK(1) β the GitHub CLI manual, but make it cute π
okay so bestie, welcome to gh-pr-lock, straight out of the GitHub CLI manual. this is the page for locking a pull request conversation, and yes it's a whole vibe. let's get into it π¦
β¨ NAME β¨
gh-pr-lock β lock the conversation on a pull request π
like, shut the door, the discourse is over, everybody go home. periodt.
πΈ SYNOPSIS πΈ
gh pr lock {<number> | <url>} [flags]
so you point it at a PR β either by its number or by its url β and then you can toss in some [flags] if you're feeling extra π
π OPTIONS π
-r,--reason <string>β an optional reason for locking the conversation, bestie. this one's not required, it's just for the record. the values you can pass areoff_topic,resolved,spam, andtoo_heatedπ«Ά (yes,too_heatedis a real accepted value, i'm not making this up π)
π OPTIONS INHERITED FROM PARENT COMMANDS π
-R,--repo <[HOST/]OWNER/REPO>β this is how you pick a different repository, using the[HOST/]OWNER/REPOformat. inherited from the parent command, so it's giving main character borrowing its fave's fit π
β EXIT CODES β
okay so this is the vibe check for how the command went. memorize these fr fr:
0: successful execution β slay, it worked π β¨1: error β something went wrong π2: command canceled β you (or something) backed out π4: authentication required β you gotta log in first bestie π
NOTE: specific commands may have additional exit codes. refer to the command's help for more information. so like, check the help if you're getting a number that isn't on this list π
π¦ SEE ALSO π¦
gh-pr(1)β the parent main character. go read that one too π«Ά
and that's the whole page, no cap π
cute little sign-off: this icon of a manpage is brought to you by GitHub CLI v2.102.0, dated Oct 2026. screenshot it, frame it, whatever you gotta do πβ¨πΈ
π¦ 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