← Back to Pull requests

ci(mergify): require review when bot updates exceed a dependency bump #8181

Closed
unknown closed this pull request without merging on Dec 03, 2026 11:12 UTC
View on GitHub
unknown unknown commented on Nov 29, 2026 10:56 UTC
Author

Dependabot PRs auto-merge regardless of what they change. A bump sometimes needs
a companion fix, and such a change should not ride in unreviewed.

Auto-merge is now limited to a single bot commit touching only package.json,
package-lock.json or .github/workflows/*.yml. Anything else falls through to
a rule that requires one explicit approval before the same squash merge.

#commits=1 and the file allowlist sit in the bump rule only. The fallback rule
repeats the same base conditions and bot gate and adds
#approved-reviews-by>=1, so a bot PR with a second commit, or one commit
touching another path, merges on a single approval. The fallback asks for one
where the base rule asks two: the reviewer has to see the code change riding
along, not re-review the bump. The allowlist cannot distinguish a bump from an
edit inside a workflow file, and amending such a fix into the bot's own commit
still bypasses the review gate; this config does not cover that case.
json.orig, also needs review.

The base rule also drops #review-requested=0, as in
openSUSE/git-sha-verify#63: the owner decided on 2026-11-25 that approvals plus
the change-request count decide whether a change was seen, so the ports do not
re-add it per repository (plan 008). The new rules carry
#changes-requested-reviews-by=0 themselves.

Inherited, not introduced here: the base checks are strict (#check-failure=0,
#check-pending=0), so Mergify's own Rule:/Summary checks can hold a PR
pending.

Same change as openSUSE/git-sha-verify#63 and the merged ports
(os-autoinst/openqa_review#254, os-autoinst/os-autoinst-scripts#833,
openSUSE/qem-dashboard#3481, openSUSE/qem-bot#736).

Verified by expanding the anchors: the fallback carries the checks and the bot
gate plus
#approved-reviews-by>=1; the base rule's #approved-reviews-by>=2
sits outside the anchor the fallback reuses, so a non-trivial bot update merges
on one approval.

` python3 -c "import yaml,json; d=yaml.safe_load(open('.mergify.yml'));\
r={x['name']:x for x in d['pull_request_rules']};\ print(json.dumps(r['require
review for other dependabot updates']['conditions']))" →
[{"and":[{"and":["base=master","-label~=^acceptance-tests-needed|not-ready","status-success=codecov/project","status-success=codecov/patch","status-success=static-check-containers","status-success=webui-docker-compose","#check-failure=0","linear-history"]},"#check-success>=39","#check-pending=0"]},{"and":["author=dependabot[bot]","#changes-requested-reviews-by=0"]},"#approved-reviews-by>=1"]
``

Diff: 317 lines (+237 / -80) across 3 files Reviewer: perlpunk Review duration: 5776m
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 317 lines diff across 3 files
0.40
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.345
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #8181"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 40.4% (MEDIUM) · Higher = larger blast radius
40.4%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 16.0% · Safe to merge
16.0%