Skip to content

Add stable result checks so Dependabot auto-merge waits for CI - #350

Merged
mraible merged 1 commit into
mainfrom
fix-dependabot-auto-merge
Oct 27, 2026
Merged

mraible merged 1 commit into
mainfrom
fix-dependabot-auto-merge

Conversation

@mraible

@mraible mraible commented Oct 27, 2026

Copy link
Copy Markdown
Owner

The Auto Merge workflow fails on most minor Dependabot PRs (#343, #339, #336) with `Protected branch rules not configured for this branch`. When it doesn't fail, it's worse: `gh pr merge --auto` merges the PR immediately because nothing is required, so PRs like #348 merged 15 seconds after opening, before any build ran.

Real auto-merge needs required status checks on main. The build jobs can't be required as-is, because their path-filtered matrix reports a different check name per PR.

This adds a `result` job to each CI workflow that always reports under a stable name and fails if any earlier job failed or was cancelled:

  • Helidon result
  • Micronaut result
  • Quarkus result
  • Spring Boot result

After this merges, main needs a ruleset that requires those four checks. Then `gh pr merge --auto` will wait for CI instead of erroring or merging early.

The build jobs use a path-filtered matrix, so their check names change with each PR ("Build and test (reactive/helidon)" when it runs, "Build and test" when skipped). That makes them impossible to require in a branch rule. Each workflow now ends with a result job that always reports under one name and fails if any earlier job failed or was cancelled.
@mraible
mraible merged commit 44fa6f9 into main Oct 27, 2026
13 checks passed
@mraible
mraible deleted the fix-dependabot-auto-merge branch October 27, 2026 17:46
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