-
Notifications
You must be signed in to change notification settings - Fork 0
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
Adding branch protection rules #1
Comments
In your otterdog configuration file, you can add a branch protection rule for a repo following the example below for a repository called myrepo:
The snippet above will add a default branch protection rule for the main branch of the repository named myrepo. Setting by default the following features below:
In case, you need define custom settings. You can play around with the settings by using the playground feature at https://eclipse-oomph.github.io/.eclipsefdn/configuration/. Where you could adjust any default settings. Please find below an example where required_approving_review_count has been configured to 0:
The PR created to add branch protection rules will not require any approvals to merge, but they will still required before pushing to the main branch. Furthermore, If you would like to create a template function for branch protection rules in your organization to reuse them, you could do something similar to the example below:
and then use that function:
If you need any help or guidance, please respond to this ticket. |
Finally, please keep in mind that you can get the list of repositories without branch protection rules using otterdog dashboard at https://eclipse-oomph.github.io/.eclipsefdn/configuration/ by clicking on Repositories option. |
The Security Team at the EF would like to assist your project by enhancing their security posture by applying basic branch protection rules for all the repositories of this Github Organization. To do that, we will walk through you the diverse options available, ensuring you can effortlessly you can create PRs that suit your need.
The text was updated successfully, but these errors were encountered: