Repository navigation
chore: add mergify auto-merge for dependabot PRs - #359
Conversation
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.
b67f297 to
e919012
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The Mergify rule as written likely won’t match reliably (condition syntax) and can merge while other CI jobs that run for Dependabot are failing, conflicting with the stated intent.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds a Mergify configuration intended to automatically squash-merge Dependabot PRs into main once selected CI checks are successful, and includes the relevant .github config files in the solution index.
Changes:
- Add a
.github/mergify.ymlrule to auto-mergedependabot[bot]PRs targetingmainusing squash merge. - Update
aweXpect.Reflection.slnxto include.github/dependabot.ymland.github/mergify.ymlas tracked files.
File summaries
| File | Description |
|---|---|
| aweXpect.Reflection.slnx | Adds the Dependabot/Mergify config files to the solution’s tracked .github folder. |
| .github/mergify.yml | Introduces the Mergify rule that gates auto-merge on specific CI check successes. |
Review details
Suppressed comments (1)
.github/mergify.yml:9
- This rule currently gates only Unit/API tests, but the
CIworkflow also runs other jobs on Dependabot PRs (Mutation tests,Benchmarks, andPublish Tests Results). As written, Mergify can merge even if those checks fail, which doesn’t match the PR description (“once the CI checks … are green”). Also,check-successconditions should usually be written ascheck-success=<name>(no spaces) to match Mergify’s condition grammar.
- check-success = Unit tests (ubuntu-latest)
- check-success = Unit tests (windows-latest)
- check-success = Unit tests (macos-latest)
- check-success = API tests
- Files reviewed: 2/2 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
🚀 Benchmark ResultsDetails
|
|
This is addressed in release v3.0.0. |



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.