Skip to content

About

Maintainer PR Triage and Nudge Tooling

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Maintainer PR Triage and Nudge Tooling

A set of small tools that answer the questions a maintainer actually has about their open PRs:

  • Whose PRs am I currently blocking?
  • Which contributors need a nudge to keep moving?
  • Which mechanical problems (missing DCO, red CI, merge conflict, …) should the contributor see without me flagging by hand?

Everything here builds on one shared library of PR-state predicates so the triage report and the bot nudges agree on what "stuck" means. The predicates are pure functions of a PR's current GraphQL state — no event-reactive logic, no surprises on re-runs.

What's shipped

Component Lives in Who runs it Output
Triage report (CLI) cli/ A maintainer, locally on demand Self-contained HTML file grouping open PRs by attention category
Reconciler shadow run (CLI) cli/ A maintainer, locally on demand Report of the labels, comments and closings that the lifecycle reconciler would apply
lifecycle-reconciler action lifecycle-reconciler/ GitHub Actions, on PR, issue and comment events and daily The same report in the job summary, and in write mode the changes themselves
pr-weekly-digest action pr-weekly-digest/ GitHub Actions, daily cron One PR comment per waiting-for-author PR per ISO week, edited in place when state changes

All of them read the facts of the same predicate catalog.


Triage report (CLI)

A maintainer-local command that scans the GitHub repos you configure, classifies every open PR into one of several attention buckets, and writes a self-contained HTML file you double-click open.

Never writes anything back to GitHub.

Quickstart

Enable pnpm with corepack enable pnpm. Corepack downloads and runs the version pinned in the packageManager field in package.json.

git clone https://github.com/jaegertracing/maintainer-tools
cd maintainer-tools
make install

No build step — the CLI runs straight from TypeScript source via tsx. Edits to the CLI or the shared library take effect on the next make triage.

Make a config file at ~/.config/maintainer-tools/config.json:

{
  "repos": ["jaegertracing/jaeger", "jaegertracing/jaeger-ui"],
  "maintainers": ["yurishkuro", "albertteoh", "..."],
  "interns": [],
  "codeowners": {
    "jaegertracing/jaeger": ["cmd/jaeger/**", "internal/**"]
  },
  "priorityLabels": ["priority:high", "priority:medium", "priority:low"]
}

(viewer is omitted above — see the schema table below; the CLI fetches it via GraphQL when unset.)

Authenticate gh (or set $GH_TOKEN / $GITHUB_TOKEN):

gh auth login

Then run:

make triage
# → writes ./triage.html (and logs progress to the terminal)
open triage.html

Configuration

The CLI looks for a JSON config in this order:

  1. --config <path> on the command line.
  2. ./.maintainer-tools.json in the current directory.
  3. ~/.config/maintainer-tools/config.json (respects $XDG_CONFIG_HOME).

If none of these exist and the command is run in a terminal, it offers to copy a sample config (generic or Jaeger org) to ~/.config/maintainer-tools/config.json, then exits so you can edit it before rerunning. In a non-interactive context (CI, a script), it exits immediately with an error listing the paths it checked.

Schema:

Field Type Description
repos string[] (required) Repos to scan, "owner/name" form.
viewer string Your GitHub login. If omitted, the CLI fetches it via the viewer GraphQL query.
maintainers string[] Logins whose actionable PRs surface in the highest-priority author bucket for every viewer except the PR author, and whose PRs are quota-exempt. Their review or comment activity also counts as "a maintainer has engaged" for the "awaiting first response" bucket.
interns string[] Logins whose actionable PRs surface in the highest-priority author bucket for every viewer except the PR author, and whose PRs are quota-exempt. Unlike maintainers, intern activity on other PRs does NOT count as a maintainer response — put reviewer logins in maintainers, not here.
priorityAuthors string[] Additional logins whose actionable PRs surface in the Priority authors bucket and whose PRs are quota-exempt. Their activity does not count as a maintainer response on other PRs.
codeowners {[repo]: string[]} Per-repo path globs you co-own; PRs touching matching files appear in the CODEOWNERS-hits bucket. Glob syntax: * (one segment), ** (any depth).
cachePath string Override the on-disk SQLite cache path. Default: $XDG_CACHE_HOME/maintainer-tools/pr-cache.sqlite.
priorityLabels string[] Ordered list of GitHub labels used as priority tiers, highest to lowest (e.g. ["priority:high", "priority:medium", "priority:low"]). When non-empty, the report adds a priority grouping level between repo and bucket: each PR is placed in the first matching tier; PRs carrying none of the listed labels fall into a separate (no priority) group rendered last. When omitted or empty, the report renders the flat bucket view.
ignoreReviewRequestedOnYou boolean Default false. Set true to disable the Review requested on you bucket — GitHub review requests can be sent by anyone (including the PR author), not just maintainers, so the signal is easy to game. When true, PRs with an outstanding request on you fall through to normal classification (and hide rules apply normally — no more override).
ages {[age]: number} The ages, in whole days, at which the policies act. idleNoticeDays (default 14): a PR whose author owes a reply, to a maintainer or in a review thread, or owes a push, for a red CI or a conflict, or that has no approved issue, is idle when no person has acted on it for this long. idleCloseDays (default 7): an idle PR is closed this long after it got stale. An age that is left out has its default.

Starter files: cli/config.example.json (generic template) and cli/config.example.jaeger.json (Jaeger org).

For the available command-line flags, run:

make triage ARGS=--help

Token resolution (in order): $GH_TOKEN, $GITHUB_TOKEN, gh auth token.

What the report looks like

Each repo gets its own block. Within a repo, PRs are split into priority-ordered buckets. High-signal buckets are expanded by default, low-signal ones collapsed.

When priorityLabels is configured, an additional grouping level sits between the repo header and the bucket sections. PRs are grouped by priority tier first (in the order the labels appear in the config), then further split into the usual buckets within each tier. PRs that carry none of the configured labels are collected under (no priority) and rendered last, visually de-emphasized. This lets maintainers focus on high-priority work while still seeing the full picture in a single report.

Bucket What it means Default state
Priority authors Author is another configured maintainer, intern, or priority author. Actionable PRs remain in this highest-priority bucket throughout review. Expanded
Review requested on you Someone added you to the Reviewers field. Expanded
You requested changes; author has revised You requested changes, and the author has pushed or commented since. Expanded
You're the bottleneck You've reviewed this PR before; the author has acted since (commit pushed or commented). Expanded
Copilot recommends approval The latest GitHub Copilot review is of the head commit and its verdict is "Approval recommended", and no check hides the PR. Expanded
First-time contributors awaiting first response Author's authorAssociation is FIRST_TIME_*; no maintainer has engaged yet. Expanded
CODEOWNERS hits PR touches files matching your configured codeowner globs. Collapsed
FYI Catch-all for everything else open. Collapsed
Dependency bots Author is dependabot, renovate, or renovate-bot. Always lands here, even draft/CI-red/conflicted — Renovate and Dependabot manage their own PRs. Collapsed
Hidden Not actionable until the contributor moves. Drafts, non-dependency bots, and any PR a predicate marked as hide-from-triage (DCO missing, CI red, merge conflict, quota-exceeded, empty description, missing issue, duplicate). Shown collapsed with a reason column. Collapsed

An explicit review request on you overrides every hide rule and the Dependency bots bucket alike — if a maintainer tagged you, you'll see the PR even if it has merge conflicts, or is from Renovate or Dependabot. Set ignoreReviewRequestedOnYou: true to turn this bucket off entirely (see the schema table above); PRs with an outstanding request on you then get classified normally instead of jumping the queue.

Each bucket's report section also carries a one-line description of what it means, rendered under the header — so the report is self-explanatory without needing this table.

Each row also carries inline flags when relevant:

Flag Meaning
BLOCKER PR labelled release-blocker / blocker.
QUESTION PR labelled awaiting-maintainer-input.
MERGE-CONFLICT mergeable === CONFLICTING.
NO-APPROVED-ISSUE The PR needs an issue under the linked-issue policy.
NO-TESTS Source files changed but no test files touched.
UNRESOLVED-FROM-REVIEWER Unresolved review thread with new commits since the last reviewer comment.
RESOLVED-W/O-REPLY: N Author resolved N threads without replying to the reviewer.
DRAFT PR is a draft.
BOT-AUTHORED Bot author.

When GitHub Copilot has reviewed the PR, the row also shows its verdict as a chip linking to the review: a traffic light and the finding counts by severity, e.g. 🟢 1M 2L for "approval recommended, one medium and two low findings". Hover the chip for the full wording.

Table view

The Table button in the report header switches to a flat table of every PR, hidden ones included, one row per PR. Alongside the bucket, each row carries the signals the classifier weighed as separate columns (priority author, review requested on you, first-timer, CODEOWNERS hit, dependency bot, maintainer engaged) plus every reason that would hide it, so a PR from a priority author that is hidden for a missing DCO sign-off is one filter away.

  • Sort: click a header to sort, shift-click another to make it the primary key with the previous keys as tiebreakers. The Sort panel lists the active keys as chips, primary first; drag them to change priority, click one to flip its direction, or remove it with ×.
  • Filter: type in the box under a header. Enumerated and list-valued columns (author, flags, labels, ...) autocomplete from the values in the visible rows; numeric columns accept >= 5-style expressions. Active filters appear as chips in the Filters panel with a Clear all button. The bucket dropdown supports multiple selections.
  • Summary totals: click a number in the summary's total column to show that bucket across all repositories. The subtotal selects the buckets that need triage; the overall total clears filters to show every PR.

The table is rendered with Tabulator, inlined into the file, so the report remains a single self-contained HTML file.

How fresh the data is

The CLI keeps an on-disk SQLite cache keyed on (owner, repo, number, updatedAt, headSha, headRollup, linkedIssues). A PR is re-fetched if any of those changed — that includes CI status flipping on the head commit and a linked issue being closed or relabelled, even when GitHub doesn't bump updatedAt. A check can conclude or run again while the rollup state stays the same, unless that state is SUCCESS. A PR that was cached with any other rollup state is therefore re-fetched once the entry is 30 minutes old. Only triage re-fetches for that reason: reconcile shares the cache and reads no single check, so it serves such an entry while the rollup state is the same. A snapshot that reconcile --save-snapshot writes therefore carries checks of any age, and triage --snapshot of that file decides from them. The mergeable state of a PR changes when the base branch advances, which does not change updatedAt either. A cached PR is therefore served with the mergeable state that the list of open PRs returns, without a re-fetch. While GitHub computes that state it reports UNKNOWN, and the scan then keeps the last state that GitHub reported for the same head commit. Use --no-cache to force a full refresh.


Reconciler shadow run (CLI)

make reconcile runs the lifecycle reconciler of RFC 0003 in shadow mode. It gathers the open PRs of the configured repositories as the triage report does, derives for each PR the labels that it should carry, the comment that tells the author why, and whether it is closed, and reports what differs from the PR as it is on GitHub. It changes nothing on GitHub.

make reconcile                                        # writes ./reconcile.html
make reconcile ARGS="--repo jaegertracing/jaeger-ui"  # one configured repository
make reconcile ARGS="--save-snapshot snapshot.json"   # keep what was gathered
make reconcile ARGS="--snapshot snapshot.json"        # decide again, without GitHub
make reconcile ARGS=--write                           # make the changes on GitHub
make reconcile ARGS=--help

The HTML report has one card for each PR that a run in write mode would change. A card links the PR and shows the labels that stay, that are added and that are removed, the list of changes with the rule behind each label, and the comment as the author would see it. The caption of the comment says whether it would be posted, which notifies the author, or whether the existing comment would be edited, which does not. The buttons at the top show only the cards with one kind of change, such as the PRs that would be closed. --format md and --format json write the same decisions as Markdown and as JSON; the JSON report has no time in it, so two runs over one snapshot can be compared byte for byte.

The reconciler owns six labels: missing-issue, unapproved-issue, duplicate, pr-quota-reached, waiting-for-author and stale. The tables in docs/decision-tables/ show when each one, the comment and the closing hold.

The reconciler closes a PR in one way only. A PR is idle when no person has commented on it, reviewed it or pushed to it for idleNoticeDays, and the next step is one that its author can take. The next step is the author's in three cases. In the first, the author owes a reply: a maintainer spoke last, or an unresolved review thread, of GitHub Copilot too, has a last comment that is not the author's. In the second, the PR needs an issue, which is the state that missing-issue and unapproved-issue mark. In the third, the author owes a push: the CI of the head commit is red, or the PR has a conflict with the base branch. An idle PR gets stale, and the comment tells the author when the PR will be closed. The PR is closed when it is still idle after it has carried stale for idleCloseDays. Activity by a person takes stale away, and the count of idleNoticeDays starts again.

The CI is red when the status check rollup of the head commit is FAILURE or ERROR, whichever check failed and whether or not the base branch requires it. A rollup that is pending, expected or green is not red, and neither is a commit without checks. The reconciler reads the rollup and no single check, because the list of open PRs returns the rollup, and a run on every event then fetches a PR again for its checks only when its rollup changes. The triage report reads the required checks one by one instead, as ci_failing. A draft, an approved PR and the PR of a maintainer owe the push like any other. Two kinds of PR do not:

  • A PR of a dependency bot, for a red CI and for a conflict, because the bot rebases and retries by itself.
  • A PR without a changelog: label, for a red CI only. The label check of the Jaeger repositories fails without the label, and only a maintainer can add it, so the red CI of such a PR may not be the author's to fix.

The second exception is a known limit: a repository that does not use changelog: labels never gets stale for a red CI, only for a conflict.

A PR that only waits for a maintainer never gets stale, however long it waits. A duplicate and a PR over the quota wait for another PR, so neither state makes a PR idle. The label do-not-expire keeps a PR from stale and from the closing. idleNoticeDays and idleCloseDays are ages of the config.

GitHub does not always have an answer. It reports the mergeable state as unknown while it computes it, and the rollup as pending or expected while checks of the latest commit run again. A run that read either as "no conflict" or "not red" would take stale away, and the notice period would start again with the next answer. The run therefore decides from the last answer that GitHub gave for the same commit, which the cache holds. A PR whose latest commit has had no answer yet has no conflict and no red CI. The cost is that a PR can be closed while a new run of its checks is in progress, when the end of its notice period falls in those minutes.

A PR that owes a push is not told that nothing blocks it. When the reason of the comment goes away while the CI is red or the branch has a conflict, as the rules above count them, the run minimizes its comment and posts nothing, whatever that comment reported. That happens when a person comments on a stale PR and nobody pushes. It also happens when the comment was about something else, such as a missing issue that the author has linked since. A red CI on a PR without a changelog: label is not an owed push, so such a PR is told that nothing blocks it.

The run posts a new comment when the author has not been told about a reason, when it closes the PR, and when nothing blocks the PR any more. It edits its comment in place when a reason goes away and others remain.

With --write the run makes the reported changes, one PR after the other and one change a second. It needs the token of a GitHub Actions workflow, because the reconciler takes a comment for its own only when github-actions[bot] posted it. Every label of the reconciler has to exist in the repository. A PR that the plan closes is fetched again first, so that it is not closed for a fact from the cache. A change that GitHub refuses ends the run, and a run makes at most 400 changes; in both cases the next run makes the rest.

The last line of the gathering log gives the cost of the gathering. It leaves out the requests of a run in write mode:

GitHub API: 10 request(s), 92 point(s) of the hourly budget, 4220 left

GitHub charges the requests of one token to more than one hourly budget. The points are the sum over those budgets, without the first request of each, and the points left are those of the budget that has the fewest.


lifecycle-reconciler GitHub Action

The action runs the reconciler on the open PRs of the repository that calls it. It writes the report of the run to the job summary. A run is a shadow run unless the write input is true.

Use it from your workflow

A repository needs one workflow file, which is copied from the workflow of this repository, .github/workflows/lifecycle-reconciler.yml, with one change. This repository checks out and runs the action of its own default branch. Another repository replaces those two steps with the action pinned to a commit:

steps:
  - uses: jaegertracing/maintainer-tools/lifecycle-reconciler@COMMIT_SHA
    with:
      idle-notice-days: 14
      idle-close-days: 7

The file keeps its name, lifecycle-reconciler.yml, because the dispatch step names it.

The workflow has two jobs. On a PR, issue or comment event the first job only dispatches the workflow on the default branch. The second job runs the action on that dispatch and once a day, under one concurrency group for the whole repository. GitHub cancels a pending run of a group when a newer one arrives, and the dispatch keeps that cancelled run off the PR of the event.

The workflow has no trigger for a review, because GitHub gives a review event of a PR from a fork a read-only token, which cannot dispatch. Every run reconciles all open PRs, so the next run for any reason sees the review.

Inputs

Input Default Meaning
github-token ${{ github.token }} Token of the workflow. Write mode refuses any other token, see the reconciler.
write false If true, the run makes the changes that it reports.
idle-notice-days 14 The days without activity by a person after which a PR gets stale, if its author owes a reply or a push, or it has no approved issue. A whole number, at least 1.
idle-close-days 7 The days after which a PR that got stale is closed, unless a person acts on it before that. A whole number, at least 1.

The cache between runs

A run fetches in full only the PRs that changed since the previous run. It keeps the rest in the SQLite cache of the CLI, which each run uploads as the workflow artifact lifecycle-reconciler-cache and the next run downloads. A run takes the cache only from a run of the default branch that a dispatch or the schedule started, which excludes the runs of a PR or of a branch that changes the workflow file. A workflow that runs the action on another event, unlike that workflow, therefore never finds a cache. A cache is used for one day, and the next run then starts from an empty one. A cache that is missing or expired costs requests and changes no result.


pr-weekly-digest GitHub Action

Cron-driven action that nudges contributors whose PR has been stuck waiting on them. Posts one digest comment per PR per ISO week, listing what to address; edits in place when the situation changes mid-week; collapses last week's comment when a new week's posts.

Use it from your workflow

# .github/workflows/pr-weekly-digest.yml
name: 'PR Weekly Digest'

on:
  schedule:
    - cron: '0 9 * * *' # daily at 09:00 UTC
  workflow_dispatch:
    inputs:
      dry-run:
        description: 'Log what would be posted without writing'
        type: boolean
        default: true

permissions:
  contents: read
  pull-requests: write
  issues: write

concurrency:
  group: pr-weekly-digest
  cancel-in-progress: false

jobs:
  digest:
    runs-on: ubuntu-latest
    steps:
      - uses: jaegertracing/maintainer-tools/pr-weekly-digest@v0.4.0
        with:
          dry-run: ${{ inputs.dry-run == null && 'true' || inputs.dry-run }}

A copy-pasteable template is at pr-weekly-digest/example-workflow.yml.

Start with dry-run: true. The action logs every would-be POST / PATCH / SKIP and writes a job-summary table without touching GitHub. Review the logs for a couple of weeks before flipping to false.

Inputs

Input Default Description
github-token ${{ github.token }} Token for reads and comment writes.
wait-days 7 Minimum days a PR must be inactive before nudging.
label waiting-for-author Label that gates which PRs the digest considers.
dry-run true If true, log decisions but don't call the GitHub API. Default-on to make the rollout safe.

What a digest comment looks like

Hi @octocat, this PR has been waiting on you for over a week. Please address:

- DCO missing on 1 commit(s): 906c67e
- Required CI check(s) failing: Unit Tests
- PR does not reference an issue with `Fixes #N` / `Closes #N` / `Resolves #N`
- 2 unresolved review thread(s); author has pushed since last reviewer comment

If you're blocked on a question to maintainers, comment `/awaiting-input`
and we'll move this out of your queue while we discuss.

Plus an HTML comment footer (<!-- maintainer-tools: kind=weekly_digest week=YYYY-Www sha=… -->) which is invisible to the reader. The action uses the footer to find its own comments on the next run and decide between editing in place or posting fresh.

When the action posts vs. edits vs. stays quiet

Prior comment on this PR? Same ISO week? Body identical? Action takes
No — — POSTs new
Yes yes yes SKIPs — nothing to do
Yes yes no PATCHes in place — body changed
Yes no (older week) — POSTs new + minimizes the older one as "marked as outdated"

Minimized comments stay on the PR (collapsed, expandable on click) so the history is preserved without cluttering the active thread.

What triggers a nudge

A PR is nudged if all of these are true:

  1. It carries the label (default waiting-for-author).
  2. Its updatedAt is at least wait-days old. Any maintainer activity bumps updatedAt and naturally suppresses the nudge for that week.
  3. At least one predicate that the digest lists triggers (see catalog).

If none trigger, the PR is silently skipped — it carries the label but nothing needs to be said.


Predicate catalog

The shared library of PR-state checks. Each predicate is a pure function of a PR's current GraphQL state.

ID What it detects Used by
dco_missing A non-merge commit lacks Signed-off-by:. Triage (hides), pr-weekly-digest (item)
ci_failing A required check of the head commit fails. When neither the PR nor a gathered PR of its repository has a required check, or the check contexts lack isRequired, the status check rollup is FAILURE or ERROR. Triage (hides), pr-weekly-digest (item)
merge_conflict mergeable === CONFLICTING. Triage (hides), pr-weekly-digest (item), reconciler (stale, waiting-for-author)
over_quota The PR is beyond the tiered quota of open PRs of its author, by its rank among them. Triage (hides)
description_empty PR body is empty or just template stubs. Triage (hides), pr-weekly-digest (item)
no_linked_issue A PR that carries the missing-issue label, whatever its other labels. Otherwise, a PR with no Fixes/Closes/Resolves #N in the body, unless it is labelled docs / documentation / ci / trivial / chore / no-issue-needed. Without the missing-issue label: pr-weekly-digest (item)
no_tests_for_code_change Source files changed but no test files touched. Exempt for docs / documentation / ci / trivial / chore labelled PRs. pr-weekly-digest (item), triage (row flag)
unresolved_from_reviewer A review thread is unresolved and its last comment is not of the author, whoever the reviewer is. pr-weekly-digest (item), triage (row flag)
resolved_without_reply Author resolved one or more review threads without posting a reply to the reviewer. Triage (row flag with count)

"Hides" means the predicate sends matching PRs to the triage report's Hidden bucket (still visible if you expand it; the reason chip(s) show every predicate that hid it — a PR can be both conflicted and quota-exceeded at once, and both show up rather than one masking the other). "Item" means it shows up as a bullet in the weekly digest comment.

A bot-author check (renovate, dependabot, renovate-bot, etc.) is handled directly in the triage classifier rather than as a predicate — those PRs get their own Dependency bots bucket.


Linked-issue policy

A PR from an outside contributor is reviewed only when it links an approved issue: an open issue of the same organization that carries the help wanted label. The triage report hides a PR that links no approved issue and flags it NO-APPROVED-ISSUE. Three kinds of PR need no issue:

  • a PR that a maintainer labelled no-issue-needed;
  • a PR whose author is a collaborator of the repository with the write, maintain or admin permission;
  • a PR of a dependency bot.

The triage CLI decides this from the issues that GitHub links to the PR (the ones that the PR closes when it merges) and from the collaborators of the repository. It does not read the missing-issue label that a workflow of jaegertracing/jaeger manages. When GitHub refuses the list of collaborators of a repository, the CLI cannot tell a maintainer from an outside contributor, so it flags no PR of that repository.


Duplicates policy

The triage report shows one open PR per issue, with the exceptions below. For each issue, the oldest open PR of the issue's repository that closes it is the primary one, and the triage report hides every other open PR of that repository that closes it, with the reason hide:is_duplicate. A PR of another repository is not counted. Two PRs created at the same time are ordered by number. A maintainer allows several PRs for one issue by labelling the issue allow-multiple-prs. As with every hide rule, an explicit review request on you keeps a duplicate visible.

The triage CLI decides this from the issues that GitHub links to the open PRs of one run, so a run with --pr hides no PR as a duplicate.


Turn policy

It is the turn of the author when a maintainer spoke after the author last acted. A maintainer is a collaborator of the repository with the write, maintain or admin permission who is not the author. A maintainer speaks with a comment on the PR or with a review that is not an approval. An approval supersedes what the same maintainer said before it, and what another maintainer said still stands. The author acts with a comment, with a review, which is how GitHub records a reply in a review thread, or with a commit. A merge of the base branch is a commit like any other when the author made it. A merge commit that GitHub attributes to another account, which is what a maintainer adds with "Update branch", is not the author acting. Every other commit counts, also one of a second account or of an email that belongs to no account. A comment that carries the hidden marker of the linked-issue or the duplicates notice is the activity of nobody, whoever posted it. Every other notice of the automation is a comment of the GitHub Actions bot, which is neither the author nor a maintainer.

It is also the turn of the author while a lifecycle policy blocks the PR: it links no approved issue, it is a duplicate, or it is over the quota. Only the author can clear such a block.

It is the turn of the author as well while the PR has a conflict with the base branch, because the PR cannot be merged while it has the conflict, and resolving the conflict is the step of the author. A PR of a dependency bot is the exception, because the bot rebases by itself. The reconciler gives a PR with a conflict waiting-for-author. It does not give the label for a red CI alone, because a new run of the CI can pass without the author, and the label would come and go. The reconciler posts no comment for the label of a conflict, so the weekly digest is what tells the author.

The triage report flags a PR on which it is the turn of the author as AUTHORS-TURN and hides it. The reason for hiding names the cause: hide:maintainer_spoke_last, hide:unresolved_from_reviewer for a review thread without an answer of the author, hide:merge_conflict, or the reason of the policy that blocks the PR. The flag does not come from the waiting-for-author label. When GitHub refuses the list of collaborators of a repository, the CLI knows no maintainer and requires no issue there. It is then the turn of an author only for an unanswered review thread, a conflict, a duplicate PR or a PR over the quota, because those four need no list of collaborators.


Quota policy

over_quota reproduces the tiered policy from the legacy pr-quota-manager.js:

Merged PRs by this author in the repo Concurrent open PRs allowed
0 1
1 2
2 3
3 or more 10 (effectively unlimited)

The triage CLI computes this itself (one GraphQL search query per multi-PR author per run) and does not read the pr-quota-reached label that the upstream workflow manages. A run with --no-quota gathers no merged-PR counts, and a run with --pr gathers one PR, which cannot be ranked among the others of its author. Neither run flags a PR as over its quota.


Authentication

Triage CLI — token resolved at startup in this order, first hit wins:

  1. $GH_TOKEN environment variable.
  2. $GITHUB_TOKEN environment variable.
  3. gh auth token — shells out to the GitHub CLI's stored credential.

If gh auth login is configured, the CLI just works with no extra setup.

GitHub Action (pr-weekly-digest) — it takes a github-token input that defaults to ${{ github.token }} (the workflow-issued token). Override only if you need an alternative identity, e.g. a fine-grained PAT stored in secrets.MY_PAT.

Required scopes / permissions:

Component Required permissions
Triage CLI repo (read), read:user
pr-weekly-digest workflow contents: read, pull-requests: write, issues: write
lifecycle-reconciler workflow actions, checks, contents and statuses: read, and pull-requests and issues: read for a shadow run, write for write mode

Node.js version

The CLI's local cache uses Node's built-in node:sqlite module, which landed in Node 22.5. Older Node versions will run the CLI with the cache disabled (a warning is logged, every PR is re-fetched). The pr-weekly-digest action runs on the node20 runtime and does not touch the cache. The lifecycle-reconciler action sets up Node.js 24 itself.


Further reading

About

Maintainer PR Triage and Nudge Tooling

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages