Commit 7c5f9f5
fix(ci): Use gh CLI to convert PR to draft (#5874)
The GraphQL `convertPullRequestToDraft` mutation doesn't work with
GitHub App installation tokens ("Resource not accessible by
integration"). This switches to `gh pr ready --undo` which handles the
auth correctly via the `GH_TOKEN` env var.
Also splits the workflow into two steps: draft conversion via `gh` CLI,
then labeling + commenting via `actions/github-script`.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 11b8262 commit 7c5f9f5
1 file changed
Lines changed: 7 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
21 | 28 | | |
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 35 | | |
47 | 36 | | |
48 | 37 | | |
| |||
0 commit comments