Skip to content
This repository was archived by the owner on Nov 10, 2026. It is now read-only.

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

Merged
vbreuss merged 1 commit into
mainfrom
chore/mergify-auto-merge
Sep 5, 2026
Merged

vbreuss merged 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
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 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 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.yml rule to auto-merge dependabot[bot] PRs targeting main using squash merge.
  • Update aweXpect.Reflection.slnx to include .github/dependabot.yml and .github/mergify.yml as 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 CI workflow also runs other jobs on Dependabot PRs (Mutation tests, Benchmarks, and Publish 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-success conditions should usually be written as check-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.

Comment thread .github/mergify.yml Resolved
@vbreuss
vbreuss enabled auto-merge (squash) September 5, 2026 06:23
@sonarqubecloud

sonarqubecloud Bot commented Sep 5, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Sep 5, 2026 •

Copy link
Copy Markdown

🚀 Benchmark Results

Details

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 7763 2.59GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.303
[Host] : .NET 10.0.11 (10.0.11, 10.0.1126.37416), X64 RyuJIT x86-64-v3
DefaultJob : .NET 10.0.11 (10.0.11, 10.0.1126.37416), X64 RyuJIT x86-64-v3

Method Mean Error StdDev Gen0 Allocated
TypeIsNotStatic_aweXpect 218.5 ns 3.61 ns 3.38 ns 0.0386 648 B

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

👽 Mutation Results

Mutation testing badge

aweXpect.Reflection

Details
File Score Killed Survived Timeout No Coverage Ignored Compile Errors Runtime Errors Total Detected Total Undetected Total Mutants

The final mutation score is NaN%

Coverage Thresholds: high:80 low:60 break:0

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

Test Results

    13 files  ±0      13 suites  ±0   11m 8s ⏱️ -40s
 6 813 tests ±0   6 810 ✅ ±0   3 💤 ±0  0 ❌ ±0 
40 723 runs  ±0  40 710 ✅ ±0  13 💤 ±0  0 ❌ ±0 

Results for commit e919012. ± Comparison against base commit fc74d41.

@vbreuss
vbreuss merged commit d32fecd into main Sep 5, 2026
13 checks passed
@vbreuss
vbreuss deleted the chore/mergify-auto-merge branch September 5, 2026 06:42
@github-actions github-actions Bot added the state: released The issue is released label Oct 10, 2026
@github-actions

Copy link
Copy Markdown

This is addressed in release v3.0.0.

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

Labels

dependencies Pull requests that update a dependency file state: released The issue is released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants