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 are off_topic, resolved, spam, and too_heated 🫢 (yes, too_heated is 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/REPO format. 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