Commit 73288bd
committed
ci: guard empty BRANCH and deduplicate dist-dirty PR comment
- commit-dist: add explicit check after git branch -r derivation —
if BRANCH is empty (shallow clone edge case or post-force-push race),
fail with a clear error instead of a cryptic git error
- comment-dist-dirty: use --edit-last so repeated fork PR pushes that
consistently miss the dist/ update edit the existing bot comment
instead of spamming new ones; fall back to a new comment if none exists1 parent c893e28 commit 73288bd
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
116 | 120 | | |
117 | 121 | | |
118 | 122 | | |
| |||
159 | 163 | | |
160 | 164 | | |
161 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
162 | 170 | | |
163 | 171 | | |
164 | 172 | | |
| |||
0 commit comments