Repository navigation
Commit 875812c
committed
ci: read the labeler's config from the default branch too
backport-auto-label.yml pins `base.sha`, which is main's tip at the pull
request's last synchronize rather than now. On a PR nobody has pushed to
since apache#6941 that predates release-branches.yml and its parser, so the
step below it dies with a file-not-found. It has done so 20 times in
production since 2026-07-28.
It was survivable while this was only a labeler: a red advisory check on
a PR nobody was waiting on. It stops being survivable with the approvals
gate in place, because the two failures compose in the worst direction —
a labeler that dies applies no `release/*` label, Backport Approvals then
finds nothing to approve and passes, and the fix is silently never
backported. That is the false record the gate exists to prevent, reached
from the side rather than through it.
Same one-line repair as the gate: read the default branch, which always
carries the config and, being no part of the pull request, is as safe to
check out under `pull_request_target` as the base was.1 parent 4bdfa66 commit 875812c
1 file changed
Lines changed: 16 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
76 | 86 | | |
77 | 87 | | |
78 | | - | |
| 88 | + | |
79 | 89 | | |
80 | 90 | | |
81 | 91 | | |
| |||
0 commit comments