Commit 3972906
authored
fix(ci): check out the repo for the
* fix(ci): check out the repo for the /changelog Claude step
The claude-code-action performs git operations (configure user, fetch origin
main) that assume a checked-out repo. The changelog-command workflow had no
checkout, so the step failed with git exit code 128 and, being continue-on-error,
silently posted the fallback comment instead of a draft. Add a checkout of the
default branch (never PR head, persist-credentials off); the PR content is still
supplied only as the diff passed to the prompt.
* fix(ci): check out the repo for the /changelog Claude step
The claude-code-action performs git operations (configure user, fetch origin
main) that assume a checked-out repo. The changelog-command workflow had no
checkout, so the step failed with git exit code 128 and, being continue-on-error,
silently posted the fallback comment instead of a draft. Add a checkout of the
default branch (never PR head, persist-credentials off), and grant contents: read
so the job token can fetch; the PR content is still supplied only as the diff./changelog Claude step (#10865)1 parent a990fa4 commit 3972906
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
42 | 49 | | |
43 | 50 | | |
44 | 51 | | |
| |||
0 commit comments