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
Copy file name to clipboardExpand all lines: .github/workflows/scripts/routing/README.md
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,20 +25,27 @@ scripts/routing/
25
25
26
26
All folder-to-reviewer-mappings and label states are decoupled completely from the execution codebase and stored in [**`UCP_PR_REVIEW_ROUTING.yml`**](./UCP_PR_REVIEW_ROUTING.yml). This allows developers to flexibly configure or update rules without editing Python modules.
27
27
28
+
### Repository Scope Restriction Gates:
29
+
***Global Limits**: Configured via the root-level `allowed_repositories` property slug list. If current PR repo is not in the list, the engine exits immediately.
30
+
***Per-Rule Limits**: Configured via the rule-level `allowed_repositories` property slug list (e.g. under Core Protocol & Spec rule). If current PR repo is not in the list, that specific rule's file patterns and approvals are ignored, defaulting back to standard ingestion checks.
31
+
28
32
### Configuration Rule Structure:
29
33
```yaml
34
+
allowed_repositories:
35
+
- "your-org/your-repository"
36
+
30
37
routing_rules:
31
38
- name: "Core Protocol & Spec"
32
39
patterns:
33
40
- "schemas/**/*.json"
34
41
- "spec/**/*.md"
35
42
review_requirements:
36
43
# Maps fully qualified GitHub team handles to approval thresholds and status labels:
37
-
"@Universal-Commerce-Protocol/tech-council":
44
+
"@your-org/tech-council":
38
45
threshold: "majority"# Require TC majority approval or status:tc-majority-approved
2. **Taxonomy Matcher**: Cross-references labels with `.github/labels.yml` to prevent styling typos.
90
+
2. **Taxonomy Matcher**: Cross-references labels with [`triage-labels.yml`](/.github/triage-labels.yml) to prevent styling typos.
84
91
3. **Dynamic Org Team Check**: Dynamically calls the API to verify that all configured dynamic handles actually exist in the active organization (gracefully skipped with a warning on local forks).
0 commit comments