REPOMATIC-APPLY-LABELS(1) REPOMATIC-APPLY-LABELS(1)

repomatic apply-labels - Label an issue or PR from its content and changed files

repomatic apply-labels [OPTIONS]

Label a freshly opened issue or pull request from the project's rules.

Two rule families, both tables under `[tool.repomatic.labels]` mapping a label to the patterns that apply it, overlaid on the bundled defaults:


content-rules keywords or /regex/flags matched against the title and
body, of an issue or a pull request alike
file-rules globs matched against the paths a pull request changes

Additive only. A label already on the thread stays, and none is ever removed, so a classification made by hand survives every later run.

This pre-labels for the maintainer's first pass and never replaces it, so the rules are tuned for precision: a missing label costs one click, a wrong one is noise on every issue that trips it.

Requires the gh CLI to be authenticated.

Issue or PR number. Defaults to the number in $GITHUB_EVENT_PATH.
Specify issue or pull request. Auto-detected from $GITHUB_EVENT_PATH.
Repository in 'owner/repo' format. Defaults to $GITHUB_REPOSITORY.
Report what would be done without making changes.
Show this message and exit.

Issue or PR number. Defaults to the number in $GITHUB_EVENT_PATH.
Specify issue or pull request. Auto-detected from $GITHUB_EVENT_PATH.
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 the current event's issue or PR would earn

repomatic apply\-labels

Apply them, as the labeller job does

repomatic apply\-labels \-\-live

Manual invocation against one pull request

repomatic apply\-labels \-\-live \-\-pr \-\-number 42

Kevin Deldycke

2026-09-14 7.15.1.dev0