fix(ci): respect repository auto-merge policy - #86
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe Dependabot auto-merge workflow now validates the repository ChangesDependabot auto-merge policy
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to Dependabot auto-merge now respects disabled repository policy, retains squash auto-merge when enabled, and fails safely when policy metadata is unavailable or invalid. No current merge-blocking risk remains. Sequence Diagram(s)sequenceDiagram
participant GitHubActions
participant RepositoryAPI
participant GraphQLAPI
GitHubActions->>RepositoryAPI: Read allow_auto_merge
alt Policy is disabled
GitHubActions->>GitHubActions: Log notice and stop
else Policy is enabled
GitHubActions->>GraphQLAPI: Enable SQUASH auto-merge
else Metadata is invalid or unavailable
GitHubActions->>GitHubActions: Fail the step
end
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 1 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Respect the repository's existing auto-merge policy before attempting Dependabot auto-merge. The repository currently reports
allow_auto_merge=false; runs on #84/#85 failed by unconditionally requesting a prohibited mutation.Verification
uv run ruff check .: passed.uv run mypy: passed, 114 source files.uv run pytest --no-cov tests/test_automerge_repository_policy.py tests/test_ci_workflow_changes.py: 27 passed.6a8c38d0c7973264c4a9f1f36f294b48e9e7b599: no actionable findings.No live mutation used during validation. Full application suite was not rerun for this workflow-only change. Exact-head CI and valid independent approval remain required before landing.
CI handoff
Run
34084682491was deliberately cancelled: its full suite executes migration tests, which require an explicit exception to the operator's standing SQL restriction. This is not a failing policy-guard test. Targeted SQL-free verification above passed. Do not weaken or bypass the full CI gate; resume it only with the missing test-only authorization.