Skip to content

Stop pinging owners on owner-approved PRs awaiting a maintainer - #1372

Merged
Jake Bailey (jakebailey) merged 3 commits into
microsoft:mainfrom
jakebailey:mergebot-awaiting-maintainer
Nov 16, 2026
Merged

Jake Bailey (jakebailey) merged 3 commits into
microsoft:mainfrom
jakebailey:mergebot-awaiting-maintainer

Conversation

@jakebailey

@jakebailey Jake Bailey (jakebailey) commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

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

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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

@jakebailey
Jake Bailey (jakebailey) added this pull request to the merge queue Nov 16, 2026
Merged via the queue into microsoft:main with commit 7c2626a Nov 16, 2026
10 checks passed
@jakebailey
Jake Bailey (jakebailey) deleted the mergebot-awaiting-maintainer branch November 16, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mergebot "unreviewed" handling for unblessed PRs

3 participants