Skip to content

feat: add branch protection rules for main branch#426

Open
dev-susa wants to merge 2 commits intoJunirezz:mainfrom
dev-susa:feat/branch-protection-rules
Open

feat: add branch protection rules for main branch#426
dev-susa wants to merge 2 commits intoJunirezz:mainfrom
dev-susa:feat/branch-protection-rules

Conversation

@dev-susa
Copy link
Copy Markdown

Description

This PR implements branch protection rules for the main branch as specified in issue #388.

Changes

  • Require at least 1 approving review on all PRs targeting main
  • Require all CI status checks to pass before merge is allowed
  • Dismiss stale reviews when new commits are pushed to the PR branch
  • Enforce rules for all contributors including admins
  • Block direct pushes to main

Acceptance Criteria

✅ Direct pushes to main are blocked for all contributors including admins
✅ PRs with failing CI checks cannot be merged
✅ Stale approvals are dismissed automatically when the PR branch is updated

Closes #388

- Require at least 1 approving review on all PRs targeting main
- Require all CI status checks to pass before merge
- Dismiss stale reviews when new commits are pushed
- Enforce rules for all contributors including admins
- Block direct pushes to main

Resolves Junirezz#388
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 28, 2026

@dev-susa Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

- Allow PRs to auto-merge once all conditions are met
- Maintains requirement for 1 approving review
- Maintains requirement for passing CI checks
- Streamlines merge workflow while preserving safety gates

Resolves Junirezz#388
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

General: Add branch protection rules requiring PR reviews and passing CI

1 participant