Commit 0f601ee
committed
ci: auto-close superseded sync PRs after a sync merges
auto-merge-sync merges a passing sync PR but never closed the older sync PRs it
superseded. A sync PR that fails CI is never merged by this job, so once a newer
sync overtakes it, it lingers as an orphan (this is what left #109/#113/#114 open
and failing until they were closed by hand).
After the merge, check out the public intelligence-flow repo for history and close
every open sync/intelligence-flow-* PR whose source commit is an ancestor of the
just-merged source (already included), skipping the merged branch itself and
leaving newer, not-yet-merged syncs untouched. Reuses the primitives already in the
pipeline: gh pr list --json, git merge-base --is-ancestor, the sync branch prefix,
and UPSTREAM.json's source.commit.1 parent 2c52259 commit 0f601ee
1 file changed
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
0 commit comments