Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optional branch protection settings #967

Open
omercnet opened this issue Jun 19, 2024 · 0 comments
Open

optional branch protection settings #967

omercnet opened this issue Jun 19, 2024 · 0 comments

Comments

@omercnet
Copy link

I wish to have an org wide branch protection rules, requiring all repos to have basic branch protection, it would ideally look something like this:

branches:
  - name: master
    # Branch Protection settings. Set to null to disable
    protection:
      required_pull_request_reviews:
        required_approving_review_count: 1
        dismiss_stale_reviews: true
        require_code_owner_reviews: true
      enforce_admins: true
      required_linear_history: true

but based on #150 this won't be applied because some settings are missing, specifically the required_status_checks setting.

my ask is, that missing settings will simply be ignored or patched to existing settings, so by settings this at the org level, it would allow customizing checks for each repo but not removing the org level requirements of reviews, enforce admins, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant