Commit 36da0cb
committed
fix(ci.yml): handle force push gracefully in script validation
Previously, the validate-scripts job would fail when commit history
changed (e.g. via force push) because git merge-base couldn't find
a common ancestor with the replaced commits.
For PRs: Now directly compares against the base branch to avoid
merge-base issues entirely
For push events: Added error handling with fallback comparison
Fixes #1531 parent 9e0e1e1 commit 36da0cb
1 file changed
+12
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
37 | 38 | | |
| 39 | + | |
38 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
39 | 50 | | |
40 | 51 | | |
41 | 52 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 53 | | |
47 | 54 | | |
48 | 55 | | |
| |||
0 commit comments