@codedrifters/configulator 0.0.391 → 0.0.392
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 +28 -20
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +28 -20
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -14676,8 +14676,9 @@ function renderUnblockDependentsSection(ud) {
|
|
|
14676
14676
|
"",
|
|
14677
14677
|
"1. Searches open issues for `Depends on: #<closed>` references in",
|
|
14678
14678
|
" their body.",
|
|
14679
|
-
"2. For each match, re-reads every dependency listed
|
|
14680
|
-
" `Depends on:`
|
|
14679
|
+
"2. For each match, re-reads every dependency listed across",
|
|
14680
|
+
" **all** `Depends on:` lines in the body (bodies routinely list",
|
|
14681
|
+
" one dependency per line) and checks whether they are all closed.",
|
|
14681
14682
|
"3. If **all** dependencies are closed, flips the dependent from",
|
|
14682
14683
|
" `status:blocked` to `status:ready` and posts a one-line comment",
|
|
14683
14684
|
" citing the resolving issue.",
|
|
@@ -14816,14 +14817,17 @@ function renderUnblockDependentsScript(ud) {
|
|
|
14816
14817
|
"",
|
|
14817
14818
|
"# \u2500\u2500 helpers \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500",
|
|
14818
14819
|
"",
|
|
14819
|
-
'# Extract issue numbers from a "Depends on:"
|
|
14820
|
-
'#
|
|
14820
|
+
'# Extract issue numbers from a "Depends on:" text. The argument may be a',
|
|
14821
|
+
'# single line ("Depends on: #1, #2, #3") OR several Depends-on lines',
|
|
14822
|
+
"# joined into one string: bodies routinely list one dependency per line",
|
|
14823
|
+
"# (issue #881), so callers union every matching line before calling this.",
|
|
14824
|
+
"# Returns the space-separated union of every #<n> reference, or an empty",
|
|
14825
|
+
'# string when the text has no concrete references (e.g. a lone "(none)"',
|
|
14826
|
+
'# sentinel). References are extracted directly, so a stray "(none)"',
|
|
14827
|
+
"# concatenated with a real dep line never suppresses the real dependency",
|
|
14828
|
+
"# \u2014 only reference-free text counts as having no dependencies.",
|
|
14821
14829
|
"parse_deps() {",
|
|
14822
14830
|
' local line="$1"',
|
|
14823
|
-
` if echo "$line" | grep -qi '(none)'; then`,
|
|
14824
|
-
' echo ""',
|
|
14825
|
-
" return",
|
|
14826
|
-
" fi",
|
|
14827
14831
|
` echo "$line" | grep -oE '#[0-9]+' | tr -d '#' | tr '\\n' ' ' || echo ""`,
|
|
14828
14832
|
"}",
|
|
14829
14833
|
"",
|
|
@@ -14880,11 +14884,12 @@ function renderUnblockDependentsScript(ud) {
|
|
|
14880
14884
|
" exit 0",
|
|
14881
14885
|
"fi",
|
|
14882
14886
|
"",
|
|
14883
|
-
"#
|
|
14884
|
-
"#
|
|
14887
|
+
"# Union every `Depends on:` line per candidate (a body may list one",
|
|
14888
|
+
"# dependency per line) into a single space-joined dep string and stream",
|
|
14889
|
+
"# as tab-separated number / title / dep-line tuples.",
|
|
14885
14890
|
`matches=$(echo "$dependents" | jq -r '`,
|
|
14886
14891
|
" .[] |",
|
|
14887
|
-
' (.body | split("\\n") | map(select(test("Depends on:"; "i"))) |
|
|
14892
|
+
' (.body | split("\\n") | map(select(test("Depends on:"; "i"))) | join(" ")) as $dep_line |',
|
|
14888
14893
|
' "\\(.number)\\t\\(.title)\\t\\($dep_line)"',
|
|
14889
14894
|
"')",
|
|
14890
14895
|
"",
|
|
@@ -15056,14 +15061,17 @@ function buildCheckBlockedScript(tiers, scopeGate, _runRatio) {
|
|
|
15056
15061
|
"",
|
|
15057
15062
|
"# \u2500\u2500 helpers \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500",
|
|
15058
15063
|
"",
|
|
15059
|
-
'# Extract issue numbers from a "Depends on:"
|
|
15060
|
-
'#
|
|
15064
|
+
'# Extract issue numbers from a "Depends on:" text. The argument may be a',
|
|
15065
|
+
'# single line ("Depends on: #1, #2, #3") OR several Depends-on lines',
|
|
15066
|
+
"# joined into one string: bodies routinely list one dependency per line",
|
|
15067
|
+
"# (issue #881), so callers union every matching line before calling this.",
|
|
15068
|
+
"# Returns the space-separated union of every #<n> reference, or an empty",
|
|
15069
|
+
'# string when the text has no concrete references (e.g. a lone "(none)"',
|
|
15070
|
+
'# sentinel). References are extracted directly, so a stray "(none)"',
|
|
15071
|
+
"# concatenated with a real dep line never suppresses the real dependency",
|
|
15072
|
+
"# \u2014 only reference-free text counts as having no dependencies.",
|
|
15061
15073
|
"parse_deps() {",
|
|
15062
15074
|
' local line="$1"',
|
|
15063
|
-
` if echo "$line" | grep -qi '(none)'; then`,
|
|
15064
|
-
' echo ""',
|
|
15065
|
-
" return",
|
|
15066
|
-
" fi",
|
|
15067
15075
|
` echo "$line" | grep -oE '#[0-9]+' | tr -d '#' | tr '\\n' ' ' || echo ""`,
|
|
15068
15076
|
"}",
|
|
15069
15077
|
"",
|
|
@@ -15111,7 +15119,7 @@ function buildCheckBlockedScript(tiers, scopeGate, _runRatio) {
|
|
|
15111
15119
|
" local issue_data",
|
|
15112
15120
|
` issue_data=$(echo "$issues" | jq -r '`,
|
|
15113
15121
|
" .[] |",
|
|
15114
|
-
' (.body | split("\\n") | map(select(test("Depends on:"; "i"))) |
|
|
15122
|
+
' (.body | split("\\n") | map(select(test("Depends on:"; "i"))) | join(" ")) as $dep_line |',
|
|
15115
15123
|
' "\\(.number)\\t\\($dep_line)"',
|
|
15116
15124
|
" ')",
|
|
15117
15125
|
"",
|
|
@@ -15211,7 +15219,7 @@ function buildCheckBlockedScript(tiers, scopeGate, _runRatio) {
|
|
|
15211
15219
|
" local issue_data",
|
|
15212
15220
|
` issue_data=$(echo "$issues" | jq -r '`,
|
|
15213
15221
|
" .[] |",
|
|
15214
|
-
' (.body | split("\\n") | map(select(test("Depends on:"; "i"))) |
|
|
15222
|
+
' (.body | split("\\n") | map(select(test("Depends on:"; "i"))) | join(" ")) as $dep_line |',
|
|
15215
15223
|
' (.labels | map(.name) | map(select(startswith("type:"))) | .[0] // "") as $type_label |',
|
|
15216
15224
|
' "\\(.number)\\t\\(.title)\\t\\($type_label)\\t\\($dep_line)"',
|
|
15217
15225
|
" ')",
|
|
@@ -15316,7 +15324,7 @@ function buildCheckBlockedScript(tiers, scopeGate, _runRatio) {
|
|
|
15316
15324
|
" local bl_data",
|
|
15317
15325
|
` bl_data=$(echo "$bl_issues" | jq -r '`,
|
|
15318
15326
|
" .[] |",
|
|
15319
|
-
' (.body | split("\\n") | map(select(test("Depends on:"; "i"))) |
|
|
15327
|
+
' (.body | split("\\n") | map(select(test("Depends on:"; "i"))) | join(" ")) as $dep_line |',
|
|
15320
15328
|
' "\\(.number)\\t\\(.title)\\t\\(.updatedAt)\\t\\($dep_line)"',
|
|
15321
15329
|
" ')",
|
|
15322
15330
|
"",
|