Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a GitHub settings control yaml to manage branch protection for the Go versions. Signed-off-by: SuperQ <superq@gmail.com>
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
branches: | ||
- name: main | ||
protection: | ||
# Required. Require at least one approving review on a pull request, before merging. Set to null to disable. | ||
required_pull_request_reviews: | ||
# The number of approvals required. (1-6) | ||
required_approving_review_count: 1 | ||
# Dismiss approved reviews automatically when a new commit is pushed. | ||
dismiss_stale_reviews: false | ||
# Blocks merge until code owners have reviewed. | ||
require_code_owner_reviews: false | ||
# Specify which users and teams can dismiss pull request reviews. Pass an empty dismissal_restrictions object to disable. User and team dismissal_restrictions are only available for organization-owned repositories. Omit this parameter for personal repositories. | ||
dismissal_restrictions: | ||
users: [] | ||
teams: [] | ||
# Required. Require status checks to pass before merging. Set to null to disable | ||
required_status_checks: | ||
# Required. Require branches to be up to date before merging. | ||
strict: false | ||
# Required. The list of status checks to require in order to merge into this branch | ||
contexts: | ||
- DCO | ||
- "ci/circleci: go-1-17" | ||
- "ci/circleci: go-1-18" | ||
# Required. Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable. | ||
enforce_admins: false | ||
# Prevent merge commits from being pushed to matching branches | ||
required_linear_history: false | ||
# Required. Restrict who can push to this branch. Team and user restrictions are only available for organization-owned repositories. Set to null to disable. | ||
restrictions: | ||
apps: [] | ||
users: [] | ||
teams: [] |