Repository navigation
Commit e4e112e
[Fix] Review-state labels missing on new PRs because GitHub rejects the label workflow (#2088)
* fix(ci): move fork review follow-up out of label-pr-review-state so GitHub accepts the workflow
GitHub rejects a workflow that lists its own name in workflow_run.workflows,
so no schedule, pull_request_target, issue_comment, or workflow_run runs of
'Label PR review state' started since PR #2049 merged.
- Remove 'Label PR review state' from its own workflow_run.workflows list.
- Remove the workflow_run.name loop-guard clause from the resolve and
reconcile job if conditions and from the resolve script.
- Move the privileged fork pull_request_review follow-up (issue #2046) into
a new workflow, label-pr-review-state-fork-review-followup.yml, which
listens for completed 'Label PR review state' runs, keeps the one-hop loop
guard on workflow_run.event == 'pull_request_review', resolves fork PRs by
exact head owner, branch, and SHA, and dispatches the reconciliation
workflow's existing workflow_dispatch entrypoint.
- Add workflow-self-listen.test.ts, which fails when any workflow lists its
own name in workflow_run.workflows (actionlint does not catch this), and
wire it plus the new follow-up workflow tests into the test:workflow suite.
Closes #2086
* fix(ci): handle dispatch failures and widen follow-up tests
---------
Co-authored-by: Roomote <roomote@roomote.dev>
Co-authored-by: Elliott de Launay <edelauna@gmail.com>1 parent 8dd5533 commit e4e112e
7 files changed
Lines changed: 371 additions & 147 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
47 | 44 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 45 | + | |
56 | 46 | | |
57 | 47 | | |
58 | 48 | | |
| |||
104 | 94 | | |
105 | 95 | | |
106 | 96 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | 97 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 98 | + | |
| 99 | + | |
118 | 100 | | |
119 | 101 | | |
120 | 102 | | |
| |||
152 | 134 | | |
153 | 135 | | |
154 | 136 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | 137 | | |
172 | 138 | | |
173 | 139 | | |
174 | 140 | | |
175 | | - | |
| 141 | + | |
| 142 | + | |
176 | 143 | | |
177 | 144 | | |
178 | 145 | | |
| |||
238 | 205 | | |
239 | 206 | | |
240 | 207 | | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | 208 | | |
245 | 209 | | |
246 | 210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
| 61 | + | |
| 62 | + | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
| 67 | + | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
0 commit comments