GH-ISSUE-LOCK(1)

πŸ’… gh-issue-lock β€” like, the whole vibe

okay so bestie, welcome to gh-issue-lock, aka the glow-up where you lock an issue conversation so nobody can keep yelling in the replies. yes, it's exactly as iconic as it sounds πŸ’–

✨ SYNOPSIS ✨

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

so you give it either the issue <number> or the full <url>, plus whatever [flags] you're feeling, and it goes and locks that conversation. slay πŸŽ€

πŸ”₯ OPTIONS πŸ”₯

  • -r, --reason <string> β€” the optional reason you tell everyone why you locked the conversation. your choices are off_topic, resolved, spam, and too_heated. pick one, it's giving receipts ✨

πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

  • -R, --repo <[HOST/]OWNER/REPO> β€” this one lets you point at a totally different repository, using the [HOST/]OWNER/REPO format. main character energy fr πŸ’…

πŸ’€ EXIT CODES πŸ’€

  • 0: Successful execution β€” we ate, no crumbs 🌈
  • 1: Error β€” it's giving oops 😭
  • 2: Command canceled β€” you changed your mind, valid 🫢
  • 4: Authentication required β€” log in first, bestie πŸ”‘
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. no cap, always double-check the command's help if you need the full list πŸ™ˆ

🌸 SEE ALSO 🌸

  • gh-issue(1) β€” the whole issue fam, go say hi πŸ’œ

k that's the whole thing! this page is from GitHub CLI v2.102.0, dated Oct 2026, and honestly? iconic of them to ship it. mwah, go lock some issues bestie πŸ¦‹πŸ’–

πŸ“¦ where this page comes from