Skip to content

feat: add reusable workflow to remind teams about open Dependabot PRs - #305

Open
cryptodev-2s wants to merge 61 commits into
feat/shared-workflow-helpersfrom
feat/dependabot-pr-reminder
Open

cryptodev-2s wants to merge 61 commits into
feat/shared-workflow-helpersfrom
feat/dependabot-pr-reminder

Conversation

@cryptodev-2s

@cryptodev-2s cryptodev-2s commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Explanation

Dependabot PRs sit unnoticed because nobody is told they're theirs. This adds a reusable workflow that posts a Slack message of the open Dependabot PRs, grouped by CI state, with the owning teams tagged under each one and short instructions on what to do. Teams own testing, approving and merging their own PRs.

Each repo calls it from its own cron and webhook (core and the extension first), and other teams can point it at their own channel. Stacked on #338.

A few choices worth knowing:

  • Teams still requested as reviewers are the owners. A PR requested from more than 5 teams goes to the maintainer team, a required input, since no single team owns it. PRs with no requested team go there too.
  • Nothing is posted when no PRs are open. If the topology can't be read, the message still goes out with plain team names.
  • A few inputs tune it per repo, such as the owner teams, the shared threshold and a link to a guide.

Note

Low Risk
Additive GitHub Actions automation with read-only repo/planning access and optional Slack webhooks; no application runtime changes.

Overview
Adds a reusable workflow and composite action that scan open, non-draft Dependabot PRs in a repo, bucket them by CI state and owning team (from reviewer requests), and post a formatted Slack message when any exist.

The implementation is a Node script that queries GitHub via GraphQL (including CI rollup), optionally loads team Slack handles from MetaMask-planning topology, classifies PRs (per-team ownership, fallback for >5 teams or no team), and writes a block-limited Slack payload. Callers configure owner teams, fallback team, reminder text, and a guide link; the workflow exchanges a token for planning read access and sends the webhook only when has-prs is true.

Vitest coverage is extended with unit tests across classification, API mapping, payload layout, and CLI edge cases; vitest.config.mts thresholds are bumped accordingly.

Reviewed by Cursor Bugbot for commit 5c288d1. Bugbot is set up for automated code reviews on this repo. Configure here.

@cryptodev-2s
cryptodev-2s marked this pull request as draft November 2, 2026 21:43
@cryptodev-2s
cryptodev-2s force-pushed the feat/dependabot-pr-reminder branch from 37dd311 to 2280df2 Compare November 3, 2026 14:14
@cryptodev-2s cryptodev-2s self-assigned this Nov 3, 2026
@cryptodev-2s
cryptodev-2s marked this pull request as ready for review November 9, 2026 15:12
@cryptodev-2s
cryptodev-2s force-pushed the feat/dependabot-pr-reminder branch 2 times, most recently from 2116cf6 to 199f4bd Compare November 17, 2026 14:39
@cryptodev-2s
cryptodev-2s changed the base branch from main to feat/shared-workflow-helpers November 17, 2026 14:39
@cryptodev-2s
cryptodev-2s added this pull request to stack #339 November 17, 2026 14:39
@cryptodev-2s
cryptodev-2s force-pushed the feat/dependabot-pr-reminder branch from 199f4bd to ecbfd2a Compare November 17, 2026 14:44

@cursor cursor Bot 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.

Stale Bugbot comment from a previous run.

@cryptodev-2s
cryptodev-2s force-pushed the feat/dependabot-pr-reminder branch from ecbfd2a to 30554e8 Compare November 24, 2026 11:59

@cursor cursor Bot 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.

Stale Bugbot comment from a previous run.

@cryptodev-2s
cryptodev-2s force-pushed the feat/dependabot-pr-reminder branch from 30554e8 to 9abc290 Compare November 24, 2026 12:48

@cursor cursor Bot 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.

Stale Bugbot comment from a previous run.

@cursor cursor Bot 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.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 5c288d1. Configure here.

@cryptodev-2s
cryptodev-2s force-pushed the feat/dependabot-pr-reminder branch from 5c288d1 to f4c2114 Compare December 2, 2026 13:03
@cryptodev-2s
cryptodev-2s force-pushed the feat/dependabot-pr-reminder branch 4 times, most recently from 0c43d15 to 5a95a97 Compare December 2, 2026 15:07
@cryptodev-2s
cryptodev-2s force-pushed the feat/dependabot-pr-reminder branch 5 times, most recently from fb7b788 to 7e0fd96 Compare December 3, 2026 16:37
A repository input (default: the calling repository) makes it possible to run
the action from a fork against the real repo, and the name is checked so it
can't change the search query.
Drops what nothing needs (the note input, the block overflow handling and the
client side author checks), merges duplicated tables, and trims comments.
Fail the Slack step when the webhook rejects the message, read up to 100
review requests, reject a note that is too long once the team tags and guide
link are added, and keep teams in a Map so a team named constructor cannot
break the report.
The PR search pages through the cursor with Octokit, each token gets its own
client, and the action installs the github-tools dependencies first.
@cryptodev-2s
cryptodev-2s force-pushed the feat/dependabot-pr-reminder branch from 26cb14a to 1a52d4e Compare December 3, 2026 21:03

This branch has not been deployed

No deployments
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.

2 participants