@codedrifters/configulator 0.0.353 → 0.0.354
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +30 -7
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +30 -7
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -18327,7 +18327,12 @@ var prReviewerSubAgent = {
|
|
|
18327
18327
|
" `review:human-required` label, set `mode = human-required`.",
|
|
18328
18328
|
"3. **Labels that force human** \u2014 if the PR carries any label listed",
|
|
18329
18329
|
" under `human-required.labels-that-force-human` (e.g.",
|
|
18330
|
-
" `
|
|
18330
|
+
" `review:human-required`), set `mode = human-required`. Evaluate",
|
|
18331
|
+
" the PR's **own** labels only \u2014 rules 1\u20133 never traverse the",
|
|
18332
|
+
" `Closes #N` link to read the linked issue's labels. `priority:*`",
|
|
18333
|
+
" and `status:*` are issue-triage labels for the orchestrator's",
|
|
18334
|
+
" scheduling queue, not merge-risk signals, and are never listed",
|
|
18335
|
+
" here.",
|
|
18331
18336
|
"4. **Path globs** \u2014 if any file in the PR diff matches any glob in",
|
|
18332
18337
|
" `human-required.paths`, set `mode = human-required`. Record the",
|
|
18333
18338
|
" first matching path + glob pair as the reason.",
|
|
@@ -18845,7 +18850,7 @@ var prReviewerSubAgent = {
|
|
|
18845
18850
|
"when the mode is `human-required` and any of the following fired:",
|
|
18846
18851
|
"",
|
|
18847
18852
|
"- rule 2 (`review:human-required` label),",
|
|
18848
|
-
"- rule 3 (any `labels-that-force-human` label
|
|
18853
|
+
"- rule 3 (any `labels-that-force-human` label),",
|
|
18849
18854
|
"- rule 4 (`human-required.paths` glob match), or",
|
|
18850
18855
|
"- rule 5 (`human-required.issue-types` match).",
|
|
18851
18856
|
"",
|
|
@@ -19658,7 +19663,6 @@ function buildPrReviewBundle(policy = resolvePrReviewPolicy()) {
|
|
|
19658
19663
|
" insertions: 500",
|
|
19659
19664
|
" labels-that-force-human:",
|
|
19660
19665
|
' - "review:human-required"',
|
|
19661
|
-
' - "priority:critical"',
|
|
19662
19666
|
"",
|
|
19663
19667
|
"auto-merge:",
|
|
19664
19668
|
" labels-that-force-auto:",
|
|
@@ -19689,8 +19693,9 @@ function buildPrReviewBundle(policy = resolvePrReviewPolicy()) {
|
|
|
19689
19693
|
"2. **`review:human-required` label** \u2014 reserved force-human label;",
|
|
19690
19694
|
" if present (and no force-auto label beat it in step 1), the mode",
|
|
19691
19695
|
" is `human-required`.",
|
|
19692
|
-
"3. **`human-required.labels-that-force-human`** \u2014
|
|
19693
|
-
"
|
|
19696
|
+
"3. **`human-required.labels-that-force-human`** \u2014 if the PR",
|
|
19697
|
+
" carries any label listed here (e.g. `review:human-required`),",
|
|
19698
|
+
" the mode is `human-required`.",
|
|
19694
19699
|
"4. **`human-required.paths`** \u2014 if any file in the PR diff matches",
|
|
19695
19700
|
" any glob here, the mode is `human-required`. Matching uses",
|
|
19696
19701
|
" standard glob semantics (`**` for recursive directories,",
|
|
@@ -19711,6 +19716,24 @@ function buildPrReviewBundle(policy = resolvePrReviewPolicy()) {
|
|
|
19711
19716
|
"7. **`default`** \u2014 applied only when no rule above matched",
|
|
19712
19717
|
" (normally `auto-merge`).",
|
|
19713
19718
|
"",
|
|
19719
|
+
"**Label-check scope.** All label checks in rules 1\u20133 evaluate",
|
|
19720
|
+
"the PR's **own** labels only. Never traverse the `Closes #N`",
|
|
19721
|
+
"link to read the linked issue's labels for a label rule. Rule 5",
|
|
19722
|
+
"is the only rule that reads the linked issue, and it reads the",
|
|
19723
|
+
"issue **type**, not its labels.",
|
|
19724
|
+
"",
|
|
19725
|
+
"**`priority:*` / `status:*` are not merge-risk signals.**",
|
|
19726
|
+
"`priority:*` and `status:*` are issue-triage labels consumed by",
|
|
19727
|
+
"the orchestrator for scheduling \u2014 `priority:*` sequences the",
|
|
19728
|
+
"work queue and `status:*` tracks workflow position. They say",
|
|
19729
|
+
"nothing about a PR's merge risk and must never appear in any",
|
|
19730
|
+
"`labels-that-force-*` list. Gating merge on `priority:critical`",
|
|
19731
|
+
"in particular inverts the intended behaviour: the most urgent",
|
|
19732
|
+
"work would wait the longest for a human merge. Merge risk is",
|
|
19733
|
+
"already covered by the path globs (rule 4), the",
|
|
19734
|
+
"`release` / `hotfix` issue-types (rule 5), and the size",
|
|
19735
|
+
"thresholds (rule 6).",
|
|
19736
|
+
"",
|
|
19714
19737
|
"The `auto-merge.paths-exempt-from-size` carve-out exists so",
|
|
19715
19738
|
"**doc-only PRs** that routinely exceed the 500-insertion size",
|
|
19716
19739
|
"threshold (large migrations, bulk additions, refresh passes)",
|
|
@@ -19742,8 +19765,8 @@ function buildPrReviewBundle(policy = resolvePrReviewPolicy()) {
|
|
|
19742
19765
|
"The exception is keyed on the matched-rule index recorded in",
|
|
19743
19766
|
"Phase 2.75. All other `human-required` triggers \u2014 rule 2",
|
|
19744
19767
|
"(`review:human-required` label), rule 3 (any",
|
|
19745
|
-
"`labels-that-force-human` label
|
|
19746
|
-
"
|
|
19768
|
+
"`labels-that-force-human` label), rule 4",
|
|
19769
|
+
"(`human-required.paths` glob match), and rule 5",
|
|
19747
19770
|
"(`human-required.issue-types` match) \u2014 continue to block",
|
|
19748
19771
|
"`update-branch` because each one signals a human reviewer who",
|
|
19749
19772
|
"has explicit ownership of the branch's lifecycle.",
|