chore: bump min required approvals for merge to 2#27
chore: bump min required approvals for merge to 2#27nathan-weinberg merged 1 commit intoopendatahub-io:mainfrom
Conversation
Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
WalkthroughThe Mergify configuration was updated to require at least two approving reviews for auto-merge and to remove the rules that ping authors and label conflicts for rebasing. Other conditions and actions remain unchanged. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as Developer
participant GH as GitHub
participant MG as Mergify
Dev->>GH: Open/Update PR
GH-->>MG: PR event (status, labels, reviews)
alt Approvals < 2 or conditions unmet
MG-->>GH: No merge action (wait)
else Approvals >= 2 and all checks pass
MG->>GH: Auto-merge PR
end
sequenceDiagram
autonumber
actor Dev as Developer
participant GH as GitHub
participant MG as Mergify
Dev->>GH: PR develops conflicts
GH-->>MG: PR event (conflict detected)
Note over MG: Previous behavior removed:<br/>no conflict ping<br/>no needs-rebase label changes
MG-->>GH: No conflict-related actions
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Pre-merge checks (3 passed)✅ Passed checks (3 passed)
Poem
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. ✨ Finishing touches🧪 Generate unit tests
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 |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (2)
.github/mergify.yml (2)
11-11: If removing conflict automation, also drop the guard on needs-rebase.Otherwise the auto-merge rule will keep excluding a label that is never managed.
- - label!=needs-rebase
16-25: Optional: make merges strict to ensure checks run on the exact merge commit.Prevents edge cases where base advances after the last green run.
merge: method: squash + strict: smart+fasttrack
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/mergify.yml(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: build-test-push (linux/amd64)
🔇 Additional comments (2)
.github/mergify.yml (2)
6-6: Two approvals requirement — LGTM; ensure branch protection matches.Nice, this enforces 2 approvals for auto-merge. Please also bump GitHub’s branch protection for main to require 2 approving reviews so Mergify and the repo policy stay consistent.
28-50: Summary mismatch: conflict-labeling rules are still present — confirm intent.The AI summary says these blocks were removed, but they’re still here. If the intent is to drop conflict ping/labeling, remove this whole section.
Optionally apply:
- - name: ping author on conflicts and add 'needs-rebase' label - conditions: - - conflict - - -closed - actions: - label: - add: - - needs-rebase - comment: - message: > - This pull request has merge conflicts that must be resolved before it - can be merged. @{{author}} please rebase it. - https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork - - - name: remove 'needs-rebase' label when conflict is resolved - conditions: - - -conflict - - -closed - actions: - label: - remove: - - needs-rebase
refactor: purge the midstream repo [main]
Summary by CodeRabbit