Commit 3b3359d
Give gh a repo to talk to, so the label step stops failing (#20)
The label-based sweep has never once run its write path. `automerge-eligible`
exists in no repo in the fleet, and every scheduled sweep since the design
landed reports `sweep acted on 0 PR(s)` -- because the sweep's first branch is
`if label not in names`, and the label is never applied.
appeler/pranaam#35, run 31283649110, has the whole story:
ecosystem=uv group=security update-type=version-update:semver-minor eligible=true
Run gh label create "$ELIGIBLE_LABEL" --force ...
failed to run git: fatal: not a git repository
##[error]Process completed with exit code 1
Neither job checks out the repo; they do not need the code. Every other gh call
passes a full PR URL and resolves the repo from the argument. `gh label create`
takes no URL, so it falls back to reading a git remote, finds none, and exits 1.
Under `bash -e` that kills the step, so `gh pr edit --add-label` never runs, and
a failed step aborts the job, so the arming step never runs either.
Reproduced outside CI in an empty directory -- same error string -- and
confirmed that GH_REPO alone fixes it.
Set at workflow level rather than on the one broken step: the sweep job was
already setting it on two of its steps, so this removes that duplication and
makes the next gh call added to either job correct by default.
Fixed first in finite-sample/calibre#12; this is the same file.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent 3c990da commit 3b3359d
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
| |||
144 | 150 | | |
145 | 151 | | |
146 | 152 | | |
147 | | - | |
148 | 153 | | |
149 | 154 | | |
150 | 155 | | |
| |||
251 | 256 | | |
252 | 257 | | |
253 | 258 | | |
254 | | - | |
255 | 259 | | |
256 | 260 | | |
257 | 261 | | |
| |||
0 commit comments