Skip to content

feat: add workflow to monitor stalled bot PRs#201

Merged
fredbi merged 1 commit into
go-openapi:masterfrom
fredbi:feat/bot-pr-monitor
May 29, 2026
Merged

feat: add workflow to monitor stalled bot PRs#201
fredbi merged 1 commit into
go-openapi:masterfrom
fredbi:feat/bot-pr-monitor

Conversation

@fredbi
Copy link
Copy Markdown
Member

@fredbi fredbi commented May 29, 2026

When a repository evolves quickly, bot-authored PRs with auto-merge enabled can fall behind the base branch and never merge. monitor-bot-pr.yml is a reusable workflow that, on a schedule, finds such stalled PRs (open, auto-merge enabled, BEHIND base, idle for at least one day, no failed CI) and unblocks them:

  • dependabot PRs are commented "@dependabot rebase", so dependabot rebases the branch and CI restarts;
  • organization bot PRs are rebased directly via "gh pr update-branch --rebase", which restarts CI.

PRs for dependency groups that are not configured for auto-merge are excluded by the autoMergeRequest != null filter.

local-monitor-bot-pr.yml exercises the shared workflow daily, mirroring how consuming go-openapi repositories will invoke it.

Change type

Please select: 🆕 New feature or enhancement|🔧 Bug fix'|📃 Documentation update

Short description

Fixes

Full description

Checklist

  • I have signed all my commits with my name and email (see DCO. This does not require a PGP-signed commit
  • I have rebased and squashed my work, so only one commit remains
  • I have added tests to cover my changes.
  • I have properly enriched go doc comments in code.
  • I have properly documented any breaking change.

When a repository evolves quickly, bot-authored PRs with auto-merge
enabled can fall behind the base branch and never merge. monitor-bot-pr.yml
is a reusable workflow that, on a schedule, finds such stalled PRs
(open, auto-merge enabled, BEHIND base, idle for at least one day, no
failed CI) and unblocks them:

  * dependabot PRs are commented "@dependabot rebase", so dependabot
    rebases the branch and CI restarts;
  * organization bot PRs are rebased directly via "gh pr update-branch
    --rebase", which restarts CI.

PRs for dependency groups that are not configured for auto-merge are
excluded by the autoMergeRequest != null filter.

local-monitor-bot-pr.yml exercises the shared workflow daily, mirroring
how consuming go-openapi repositories will invoke it.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: Frédéric BIDON <fredbi@yahoo.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented May 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (7982843) to head (5cad74e).
⚠️ Report is 11 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #201   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines           14        14           
=========================================
  Hits            14        14           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fredbi fredbi merged commit ff87261 into go-openapi:master May 29, 2026
35 checks passed
@fredbi fredbi deleted the feat/bot-pr-monitor branch May 29, 2026 21:33
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.

1 participant