Skip to content

ci: add auto-rebase workflow for conflicting Dependabot PRs#64

Open
snslk wants to merge 1 commit into
athertonfrom
private/snh/dependabot-autorebase
Open

ci: add auto-rebase workflow for conflicting Dependabot PRs#64
snslk wants to merge 1 commit into
athertonfrom
private/snh/dependabot-autorebase

Conversation

@snslk

@snslk snslk commented Jun 17, 2026

Copy link
Copy Markdown

Summary

  • Adds a weekly GitHub Actions workflow (.github/workflows/dependabot-autorebase.yml) that automatically posts @dependabot rebase on any open Dependabot PRs that have merge conflicts
  • Runs every Monday at 6 AM UTC and can also be triggered manually from the Actions tab
  • Prints a job summary showing how many PRs were rebased vs skipped

Why

Dependabot PRs accumulate merge conflicts over time as the base branch (atherton/main) moves ahead. Prow/Tide refuses to merge conflicting PRs, causing a growing backlog of security updates that never land.

How it works

  1. Lists all open PRs by dependabot[bot]
  2. Fetches full PR detail to check mergeable status
  3. If mergeable === false → posts @dependabot rebase
  4. 2-second delay between comments to avoid GitHub rate limits

Test plan

  • Merge this PR
  • Go to Actions tab → "Auto-rebase conflicting Dependabot PRs" → click "Run workflow" to test manually
  • Verify conflicting Dependabot PRs receive a rebase comment

🤖 Generated with Claude Code

Adds a weekly scheduled GitHub Actions workflow that automatically
posts '@dependabot rebase' on any open Dependabot PRs with merge
conflicts, keeping the security update queue unblocked.
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