Commit c7a6294
CNTRLPLANE-3278: fix verify-workflows to check PR head, not merge commit (#78025)
ci-operator runs tests on a merge commit (PR merged into base branch).
The verify-workflows script was comparing workflow files on HEAD, which
is the merge result and always contains main's files. This caused the
check to always pass, even for PRs with outdated workflows.
Fix by extracting the actual PR head commit (HEAD^2, the second parent
of the merge) and comparing that against main instead.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 5457d5b commit c7a6294
1 file changed
Lines changed: 11 additions & 2 deletions
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
494 | 503 | | |
495 | 504 | | |
496 | 505 | | |
497 | 506 | | |
498 | | - | |
| 507 | + | |
499 | 508 | | |
500 | 509 | | |
501 | 510 | | |
| |||
0 commit comments