- create new team
- go to Org: /orgs//teams
- note: team must be visible
- add people to the team
- add team to repo & give WRITE-permissions
- go to repo: ///settings/access
- add the group to repo, e.g. with Maintain-role
- Enable branch protection rules
- go to: ///settings/branches
- Add rule
- Branch name pattern:
develop
- Select at least:
- Require a pull request before merging
- Require approvals
- (optional) Dismiss stale pull request approvals when new commits are pushed
- Require review from Code Owners
- create
.github/CODEOWNERS
file at target branch- add new line with rule:
* @org-name/group-name
- add new line with rule:
Last active
February 1, 2024 07:43
-
-
Save HansKre/f71929da3c3b9dc3d311487b73f92cf3 to your computer and use it in GitHub Desktop.
github
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment