Skip to content

chore: add mergify auto-merge for dependabot PRs - #81

Open
vbreuss wants to merge 1 commit into
mainfrom
chore/mergify-auto-merge
Open

vbreuss wants to merge 1 commit into
mainfrom
chore/mergify-auto-merge

Conversation

@vbreuss

@vbreuss vbreuss commented Sep 5, 2026

Copy link
Copy Markdown
Member

Squash-merge Dependabot PRs into main once the CI checks that actually run for dependabot[bot] are green.

Jobs guarded by if: github.actor != 'dependabot[bot]' are deliberately not used as gates: they are skipped on these PRs, and mergify counts a skipped check as skipped rather than successful, which would block the merge forever.

@vbreuss vbreuss self-assigned this Sep 5, 2026
Copilot AI lite review requested due to automatic review settings September 5, 2026 06:09
@vbreuss vbreuss added the dependencies Pull requests that update a dependency file label Sep 5, 2026

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

The Mergify rule is narrowly scoped to Dependabot PRs and targets the existing CI “Unit tests” matrix check names that run on those PRs.

Pull request overview

Adds a Mergify configuration to automatically squash-merge Dependabot PRs into main once the unit test matrix checks complete successfully, aligning the merge gate with the checks that actually run for dependabot[bot].

Changes:

  • Add a Mergify pull request rule scoped to base = main and author = dependabot[bot].
  • Gate auto-merge on the three OS-specific “Unit tests” check runs and use squash as the merge method.
File summaries
File Description
.github/mergify.yml Introduces a Mergify rule to auto-squash-merge Dependabot PRs after the unit test checks succeed on ubuntu/windows/macos.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Squash-merge Dependabot PRs into main once the CI checks that actually
run for dependabot[bot] are green.

Jobs guarded by `if: github.actor != 'dependabot[bot]'` are deliberately
not used as gates: they are skipped on these PRs, and mergify counts a
skipped check as skipped rather than successful, which would block the
merge forever.
Copilot AI review requested due to automatic review settings September 5, 2026 06:16
@vbreuss
vbreuss force-pushed the chore/mergify-auto-merge branch from cf8b8df to b727f57 Compare September 5, 2026 06:16
@vbreuss
vbreuss enabled auto-merge (squash) September 5, 2026 06:24
@sonarqubecloud

sonarqubecloud Bot commented Sep 5, 2026

Copy link
Copy Markdown

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.

🟡 Changes recommended

The Mergify check-success contexts likely don’t match the actual GitHub Actions check names, which would prevent auto-merge from ever triggering.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread .github/mergify.yml
Comment on lines +6 to +8
- check-success = Unit tests (ubuntu-latest)
- check-success = Unit tests (windows-latest)
- check-success = Unit tests (macos-latest)
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

Test Results

0 files   -   9  0 suites   - 9   0s ⏱️ - 3m 1s
0 tests  - 284  0 ✅  - 284  0 💤 ±0  0 ❌ ±0 
0 runs   - 852  0 ✅  - 852  0 💤 ±0  0 ❌ ±0 

Results for commit b727f57. ± Comparison against base commit a05594a.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants