Commit 6eda2da
committed
fix(#2797): create ready-for-triage label before use in post-retro.sh
post-retro.sh passed --label "ready-for-triage" to gh issue create
without ensuring the label existed in the target repo. This caused
the retro workflow to fail with exit code 1 on repos that predate
PR #2679 (which introduced the label in the scaffold template).
Add a gh label create --force call before gh issue create, following
the same idempotent pattern used in post-review.sh for the
ready-for-merge and requires-manual-review labels. The --force flag
makes the call a no-op when the label already exists.
Also adds a mock handler for gh label create in the test harness
and a test case verifying the label is created before the issue.
Note: pre-commit could not run (shellcheck-py failed to install
in sandbox due to network restrictions). Post-script runs an
authoritative pre-commit check.
Closes #27971 parent dc93e9a commit 6eda2da
2 files changed
Lines changed: 19 additions & 0 deletions
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
| |||
219 | 224 | | |
220 | 225 | | |
221 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
222 | 232 | | |
223 | 233 | | |
224 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
96 | 105 | | |
97 | 106 | | |
98 | 107 | | |
| |||
0 commit comments