Repository navigation
Stop pinging owners on owner-approved PRs awaiting a maintainer - #1372
Merged
Jake Bailey (jakebailey) merged 3 commits intoNov 16, 2026
Merged
Jake Bailey (jakebailey) merged 3 commits into
Jake Bailey (jakebailey) merged 3 commits into
Conversation
PRs that owners have approved but that still require a DT maintainer (critical packages, multi-package edits, config changes, etc.) fell into the "Unreviewed" staleness timeline. After 10 days the bot told the remaining owners that it hadn't seen any reviews and re-pinged them, which is both wrong and noisy; when every owner had approved, it posted an empty "Re-ping :" instead. Give these PRs a separate "Awaiting Maintainer" timeline that does not ping owners and only tells the author when the PR is moved to the maintainer queue. The "Awaiting Maintainer" label must exist on DefinitelyTyped before this is deployed. Fixes microsoft#1229
When an owner-approved PR is bumped to the maintainer queue, the author has no way to tell from the comment why the owners' approval was not enough. Listing the reasons (multiple packages, config edits, critical package, etc.) tells them what kept the PR from being merged and whether they can do anything about it.
The label now exists on DefinitelyTyped, so the cached label list and fixtures should reflect its actual node ID instead of a placeholder.
Jake Bailey (jakebailey)
requested review from
Ryan Cavanaugh (RyanCavanaugh),
Andrew Branch (andrewbranch) and
Gabriela Araujo Britto (gabritto)
and
a balanced review from Copilot
November 16, 2026 19:26
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the maintainer-waiting staleness changes.
No open issues 🎉
What changed in this PR
This PR updates mergebot’s staleness handling so owner-approved PRs awaiting a DefinitelyTyped maintainer no longer receive misleading “unreviewed” reminders, addressing #1229.
Changes:
- Adds an “Awaiting Maintainer” timeline that suppresses owner re-pings.
- Adds an author-only escalation message explaining why maintainer review is required.
- Adds fixtures for the 11-day waiting and 18-day escalation states, and updates existing regression expectations.
| File | Description |
|---|---|
packages/mergebot/src/compute-pr-actions.ts |
Selects the new timeline and collects maintainer-review reasons. |
packages/mergebot/src/comments.ts |
Adds waiting explanations and the author-only escalation message. |
packages/mergebot/src/basic.ts |
Registers the new staleness kind. |
packages/mergebot/src/_tests/fixtures/76110/result.json |
Expects the waiting state without an owner reminder. |
packages/mergebot/src/_tests/fixtures/76110/mutations.json |
Captures expected comment and label updates. |
packages/mergebot/src/_tests/fixtures/76110/derived.json |
Supplies the owner-approved, 11-day PR state. |
packages/mergebot/src/_tests/fixtures/76110/_response.json |
Supplies the captured GitHub response for the regression case. |
packages/mergebot/src/_tests/fixtures/76110/_files.json |
Supplies cached package metadata and configuration contents. |
packages/mergebot/src/_tests/fixtures/76110/_downloads.json |
Supplies package popularity inputs. |
packages/mergebot/src/_tests/fixtures/76110-18days/result.json |
Expects maintainer escalation and author-only notification. |
packages/mergebot/src/_tests/fixtures/76110-18days/mutations.json |
Captures queue movement and escalation-comment mutations. |
packages/mergebot/src/_tests/fixtures/76110-18days/derived.json |
Advances the regression case to 18 days. |
packages/mergebot/src/_tests/fixtures/76110-18days/_response.json |
Supplies the GitHub response for the escalation case. |
packages/mergebot/src/_tests/fixtures/76110-18days/_files.json |
Supplies cached file contents for the escalation case. |
packages/mergebot/src/_tests/fixtures/76110-18days/_downloads.json |
Supplies popularity inputs for the escalation case. |
packages/mergebot/src/_tests/fixtures/51338/result.json |
Updates the existing case to omit owner re-pings. |
packages/mergebot/src/_tests/fixtures/51338/mutations.json |
Updates expected labels and removes the reminder mutation. |
packages/mergebot/src/_tests/cachedQueries.js |
Adds the new label to cached query data. |
Review effort: Balanced
Gabriela Araujo Britto (gabritto)
approved these changes
Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PRs that owners have approved but that still require a DT maintainer (critical packages, multi-package edits, config changes, etc.) fell into the "Unreviewed" staleness timeline. After 10 days the bot told the remaining owners that it hadn't seen any reviews and re-pinged them, which is both wrong and noisy; when every owner had approved, it posted an empty "Re-ping :" instead.
Give these PRs a separate "Awaiting Maintainer" timeline that does not ping owners and only tells the author when the PR is moved to the maintainer queue.
Fixes #1229