Commit 85e1ee2
authored
cicd/bug: query live labels in hold gate instead of (stale) event payload (#2200)
* fix(ci): query live labels in hold gate instead of stale event payload
github.event.pull_request.labels is frozen at trigger time, so a manual
rerun of a failed hold-gate job kept failing after the hold label was
removed. Fetch current labels via the GitHub API instead.
Fixes #2199
Signed-off-by: Etai Lev Ran <elevran@gmail.com>
* fix(ci): move hold-gate rerun comment inline and shorten it
Signed-off-by: Etai Lev Ran <elevran@gmail.com>
* fix(ci): make hold-gate blocking labels an extensible array
Signed-off-by: Etai Lev Ran <elevran@gmail.com>
* fix(ci): report the specific blocking label found
Signed-off-by: Etai Lev Ran <elevran@gmail.com>
* fix(ci): simplify blocking-label error message
Signed-off-by: Etai Lev Ran <elevran@gmail.com>
---------
Signed-off-by: Etai Lev Ran <elevran@gmail.com>1 parent ac78a25 commit 85e1ee2
1 file changed
Lines changed: 17 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | | - | |
22 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments