Skip to content

Commit 8e7b6d2

Browse files
Set up default protection ruleset for default and release branches (#126)
1 parent da383ec commit 8e7b6d2

1 file changed

Lines changed: 17 additions & 4 deletions

File tree

.asf.yaml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,27 @@ github:
5252
catchall: "[GH] {title} ({repository})"
5353

5454
#manages alerts by distributing to lists
55+
rulesets:
56+
- name: "Default Branch Protection"
57+
type: branch
58+
branches:
59+
includes:
60+
- "~DEFAULT_BRANCH"
61+
- "release/*"
62+
- "rel/*"
63+
excludes: []
64+
bypass_teams:
65+
- root
66+
restrict_deletion: true
67+
restrict_force_push: true
5568
notifications:
56-
commits: commits@flagon.apache.org
57-
issues: notifications@flagon.apache.org
58-
pullrequests_status: pr@flagon.apache.org
69+
commits: commits@flagon.apache.org
70+
issues: notifications@flagon.apache.org
71+
pullrequests_status: pr@flagon.apache.org
5972
pullrequests_comment: notifications@flagon.apache.org
6073
# Send dependabot PRs to commits@ instead
6174
pullrequests_bot_dependabot: maintenance@flagon.apache.org
6275

6376
#used for asf-site only to publish website
6477
publish:
65-
whoami: asf-site
78+
whoami: asf-site

0 commit comments

Comments
 (0)