You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- If `requiredLabels` is empty, the required-label gate is disabled and the check can pass with any labels or no labels.
186
192
- If `requiredLabels` has entries, a PR must have at least one matching label.
187
193
- Any matching `failingLabels` entry fails the check.
194
+
-`repositoryLabels` keys must use the full, case-insensitive `owner/repository` name. Their required and failing labels are added to the organization-wide lists only for that repository.
195
+
- A repository-specific required label enables the required-label gate for that repository even when the organization-wide `requiredLabels` list is empty.
188
196
- Failing labels override required labels.
189
197
- If a protected label is present, at least one configured approver for that label must have latest effective review state `APPROVED`.
190
198
- Plain approvers such as `UltraProdigy` are GitHub users.
191
199
- Approvers prefixed with `teams/`, such as `teams/admin`, are GitHub team slugs in the configured organization.
192
200
201
+
Repository-specific rules are resolved centrally from the calling workflow's existing `github.repository` context. Adding or changing these rules does not require changes to the caller workflows.
202
+
193
203
For team approval checks, the workflow token must be able to read the configured organization team membership. The same `properties.authentication` setup used by the label sync workflows is used for the reusable Label Test workflow.
194
204
195
205
The policy job runs on `pull_request_target` only. Review submissions, edits, and dismissals are recorded by a separate unprivileged workflow, then the existing Label Test workflow handles its completion through `workflow_run` and reruns the latest completed policy run for that pull request. This lets a new approval replace an earlier failed result on the same required check.
0 commit comments