@@ -142,40 +142,40 @@ rulesets:
142142 # ---- 1. No delete / no force-push on the default branch ----
143143 - name : protect-default-branch
144144 target : branch
145- enforcement : active # always enforced — overriding this is discouraged
145+ enforcement : active # always enforced — overriding this is discouraged
146146 conditions :
147147 ref_name :
148148 include :
149- - " ~DEFAULT_BRANCH" # special selector: whatever the default branch is
149+ - ' ~DEFAULT_BRANCH' # special selector: whatever the default branch is
150150 exclude : []
151151 bypass_actors :
152152 # Repo admins can bypass (always = prompts at push/merge time, not silent exempt).
153153 # Repos can add more actors (other teams, integrations).
154154 - actor_id : 5
155- actor_type : RepositoryRole # 1=read 2=triage 3=write 4=maintain 5=admin
155+ actor_type : RepositoryRole # 1=read 2=triage 3=write 4=maintain 5=admin
156156 bypass_mode : always
157157 # automation-nsheaps GitHub App — actor_id is substituted from 2549081
158158 # by render-repo-settings when this template is rendered to repo-settings.yaml.
159159 - actor_id : 2549081
160160 actor_type : Integration
161161 bypass_mode : always
162162 rules :
163- - type : deletion # block branch deletion
164- - type : non_fast_forward # block force-push
163+ - type : deletion # block branch deletion
164+ - type : non_fast_forward # block force-push
165165
166166 # ---- 2. PR required (0 reviews) ----
167167 - name : require-pr
168168 target : branch
169169 # enforcement: 'active' # uncomment to lock this ruleset on in this repo
170170 conditions :
171171 ref_name :
172- include : [" ~DEFAULT_BRANCH" ]
172+ include : [' ~DEFAULT_BRANCH' ]
173173 exclude : []
174174 bypass_actors :
175175 # Repo admins can bypass (always = prompts at push/merge time, not silent exempt).
176176 # Repos can add more actors (other teams, integrations).
177177 - actor_id : 5
178- actor_type : RepositoryRole # 1=read 2=triage 3=write 4=maintain 5=admin
178+ actor_type : RepositoryRole # 1=read 2=triage 3=write 4=maintain 5=admin
179179 bypass_mode : always
180180 # automation-nsheaps GitHub App — actor_id is substituted from 2549081
181181 # by render-repo-settings when this template is rendered to repo-settings.yaml.
@@ -185,33 +185,33 @@ rulesets:
185185 rules :
186186 - type : pull_request
187187 # parameters:
188- # Possible additional parameters (commented for repos to opt in):
189- # required_approving_review_count: 0
190- # dismiss_stale_reviews_on_push: false
191- # require_code_owner_review: false
192- # require_last_push_approval: false
193- # required_review_thread_resolution: false
194- # allowed_merge_methods: [merge, squash, rebase]
188+ # Possible additional parameters (commented for repos to opt in):
189+ # required_approving_review_count: 0
190+ # dismiss_stale_reviews_on_push: false
191+ # require_code_owner_review: false
192+ # require_last_push_approval: false
193+ # required_review_thread_resolution: false
194+ # allowed_merge_methods: [merge, squash, rebase]
195195
196- # ---- 3. Checks required ----
197- # NOTE: shipped ACTIVE with an empty required_status_checks list — a valid
198- # GitHub config that's a no-op until a repo populates the list. Repos just
199- # add entries under required_status_checks below; no enforcement flip needed.
200- # The org doesn't mandate specific status checks (each repo has its own CI),
201- # which is why the list is empty here.
196+ # ---- 3. Checks required ----
197+ # NOTE: shipped ACTIVE with an empty required_status_checks list — a valid
198+ # GitHub config that's a no-op until a repo populates the list. Repos just
199+ # add entries under required_status_checks below; no enforcement flip needed.
200+ # The org doesn't mandate specific status checks (each repo has its own CI),
201+ # which is why the list is empty here.
202202 enforcement : active
203203 - name : require-checks
204204 target : branch
205205 enforcement : active
206206 conditions :
207207 ref_name :
208- include : [" ~DEFAULT_BRANCH" ]
208+ include : [' ~DEFAULT_BRANCH' ]
209209 exclude : []
210210 bypass_actors :
211211 # Repo admins can bypass (always = prompts at push/merge time, not silent exempt).
212212 # Repos can add more actors (other teams, integrations).
213213 - actor_id : 5
214- actor_type : RepositoryRole # 1=read 2=triage 3=write 4=maintain 5=admin
214+ actor_type : RepositoryRole # 1=read 2=triage 3=write 4=maintain 5=admin
215215 bypass_mode : always
216216 # automation-nsheaps GitHub App — actor_id is substituted from 2549081
217217 # by render-repo-settings when this template is rendered to repo-settings.yaml.
@@ -222,21 +222,21 @@ rulesets:
222222 - type : required_status_checks
223223 parameters :
224224 strict_required_status_checks_policy : true
225- required_status_checks : [] # ← repos add { context, integration_id } entries
225+ required_status_checks : [] # ← repos add { context, integration_id } entries
226226
227227 # ---- 4. Review required — 1 reviewer (active by default) ----
228228 - name : require-1-review
229229 target : branch
230230 # enforcement: 'active' # uncomment to lock this ruleset on in this repo
231231 conditions :
232232 ref_name :
233- include : [" ~DEFAULT_BRANCH" ]
233+ include : [' ~DEFAULT_BRANCH' ]
234234 exclude : []
235235 bypass_actors :
236236 # Repo admins can bypass (always = prompts at push/merge time, not silent exempt).
237237 # Repos can add more actors (other teams, integrations).
238238 - actor_id : 5
239- actor_type : RepositoryRole # 1=read 2=triage 3=write 4=maintain 5=admin
239+ actor_type : RepositoryRole # 1=read 2=triage 3=write 4=maintain 5=admin
240240 bypass_mode : always
241241 # automation-nsheaps GitHub App — actor_id is substituted from 2549081
242242 # by render-repo-settings when this template is rendered to repo-settings.yaml.
@@ -251,24 +251,24 @@ rulesets:
251251 require_last_push_approval : false
252252 required_review_thread_resolution : true
253253
254- # ---- 5. Review required — 1 reviewer from CODEOWNERS (disabled by default) ----
255- # NOTE: shipped DISABLED. Repos with a meaningful CODEOWNERS file flip to
256- # `enforcement: active` and likely set `require-1-review.enforcement: disabled`
257- # so the two don't double up.
254+ # ---- 5. Review required — 1 reviewer from CODEOWNERS (disabled by default) ----
255+ # NOTE: shipped DISABLED. Repos with a meaningful CODEOWNERS file flip to
256+ # `enforcement: active` and likely set `require-1-review.enforcement: disabled`
257+ # so the two don't double up.
258258 enforcement : active
259259 - name : require-codeowner-review
260260 target : branch
261261 enforcement : disabled
262262 # enforcement: 'active' # uncomment (and remove the disabled line above) to enable
263263 conditions :
264264 ref_name :
265- include : [" ~DEFAULT_BRANCH" ]
265+ include : [' ~DEFAULT_BRANCH' ]
266266 exclude : []
267267 bypass_actors :
268268 # Repo admins can bypass (always = prompts at push/merge time, not silent exempt).
269269 # Repos can add more actors (other teams, integrations).
270270 - actor_id : 5
271- actor_type : RepositoryRole # 1=read 2=triage 3=write 4=maintain 5=admin
271+ actor_type : RepositoryRole # 1=read 2=triage 3=write 4=maintain 5=admin
272272 bypass_mode : always
273273 # automation-nsheaps GitHub App — actor_id is substituted from 2549081
274274 # by render-repo-settings when this template is rendered to repo-settings.yaml.
0 commit comments