File tree 2 files changed +17
-6
lines changed
2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -9,16 +9,26 @@ EXEMPT_REPOSITORIES:
9
9
- global-network-strategy
10
10
# special purpose repo
11
11
- network-platforms
12
- # exempted for bot pushes to default branch
13
- - quantifying :
14
- exempt_users :
15
- # - bot1
16
- # - bot2
17
12
# special purpose repo
18
13
- sre-wiki-js
19
14
# special purpose repo
20
15
- tech-support
21
16
22
17
REQUIRED_STATUS_CHECK_MAP :
18
+ # Non-exempt repository requiring specific status checks
23
19
creativecommons.github.io-source :
24
20
- Build and Deploy CC Open Source
21
+
22
+ EXEMPT_USERS :
23
+ quantifying :
24
+ # List of users or bots that can bypass restrictions for this repository
25
+ # Uncomment below to enable these users
26
+ # - bot1
27
+ # - bot2
28
+
29
+ # Other repositories and exempt users can be added below
30
+ another-repo :
31
+ # Specify exempt users for this repository
32
+ # Uncomment and add users as needed
33
+ # - bot3
34
+ # - bot4
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ def update_branch_protection(repo):
111
111
exempt_repositories = config ["EXEMPT_REPOSITORIES" ]
112
112
required_status_check_map = config ["REQUIRED_STATUS_CHECK_MAP" ]
113
113
114
- exempt_users = config .get ("EXEMP_USERS " , {}).get (repo .name , [])
114
+ exempt_users = config .get ("EXEMPT_USERS " , {}).get (repo .name , [])
115
115
116
116
if repo .name not in exempt_repositories and is_engineering_project (repo ):
117
117
LOG .info (f"{ repo .name } : updating branch protections" )
@@ -143,6 +143,7 @@ def update_branch_protection(repo):
143
143
def update_branches (args , repos ):
144
144
if args .skip_branches :
145
145
return
146
+
146
147
LOG .info ("Evaluting repositories for branch protections..." )
147
148
for repo in repos :
148
149
update_branch_protection (repo )
You can’t perform that action at this time.
0 commit comments