REPOMATIC-LOCK-THREADS(1) REPOMATIC-LOCK-THREADS(1)

repomatic lock-threads - Lock closed, inactive issues and PRs

repomatic lock-threads [OPTIONS]

Lock closed issues and pull requests left inactive too long.

Keeps spam and necro-posting off threads whose discussion is over, without touching anything still moving: the clock counts from a thread's last update, so a closed issue people are still replying to keeps resetting it.

Locking is one-way here. Nothing unlocks a thread on a schedule, and a thread already locked never reappears in the search, so re-running the command right after a run finds nothing left to do.

Issues repomatic maintains itself are excluded by default: they are meant to reopen when their condition recurs, which a lock would block.

Requires the gh CLI to be authenticated.

Days without activity before a closed thread is locked.
Comment posted on an issue before locking it. Empty to post none.
Comment posted on a pull request before locking it. Empty to post none.
Leave threads carrying this label unlocked. Repeatable.
Maximum number of threads to examine in one run.
Reason recorded with the lock.
Repository in 'owner/repo' format. Defaults to $GITHUB_REPOSITORY.
Report what would be done without making changes.
Show this message and exit.

Days without activity before a closed thread is locked.
Comment posted on an issue before locking it. Empty to post none.
Comment posted on a pull request before locking it. Empty to post none.
Leave threads carrying this label unlocked. Repeatable.
Maximum number of threads to examine in one run.
Reason recorded with the lock.
Repository in 'owner/repo' format. Defaults to $GITHUB_REPOSITORY.
Repository in 'owner/repo' format. Defaults to $GITHUB_REPOSITORY.
Report what would be done without making changes.
Show this message and exit.

0
Success.
1
A runtime error, or an aborted prompt (Ctrl-C, a declined confirmation).
2
A usage error: unknown option, invalid value, missing operand, or an unparsable configuration file.

Preview what a run would lock

repomatic lock\-threads

Lock them, as the autolock workflow does

repomatic lock\-threads \-\-live

Lock silently after six months, sparing triaged threads

repomatic lock\-threads \-\-live \-\-inactive\-days 180 \-\-issue\-comment "" \-\-exclude\-label "🚧 needs triage"

Kevin Deldycke

2026-09-14 7.15.1.dev0