Commit 8ff9dc6
committed
Fix race condition in PR metadata check workflow
The workflow reads assignees, labels, and milestone from the event
payload, which is a snapshot taken at trigger time. When a PR is
opened, the `opened` event fires before labels/milestone/assignee
are fully applied, causing the check to fail with stale data.
Fix by fetching live PR data via `gh api` instead of relying on the
event payload. The downstream validation logic is unchanged.1 parent 8204668 commit 8ff9dc6
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
40 | 47 | | |
41 | 48 | | |
42 | 49 | | |
| |||
0 commit comments