Commit d0b9e6f
authored
ci: clean up api-sync workflow (dedup + CI triggers + commit type) (#19)
* ci: dedup api-sync PRs and trigger CI via RELEASE_TOKEN
Open api-sync PRs were accumulating daily because the workflow did not
check whether a prior PR already carried the current upstream spec.
Compounding this, GITHUB_TOKEN-authored pushes and PRs do not trigger
further workflow runs, so required CI checks never ran and the PRs sat
BLOCKED by branch protection.
- Add a dedup step that compares the new spec SHA against the spec on
each open api-sync PR head; skip branch creation if a match is found.
- Check out with RELEASE_TOKEN in detect and implement jobs so pushed
commits trigger CI.
- Create the PR with RELEASE_TOKEN so required checks run on it.
* ci: use chore prefix for spec-only api-sync PRs
Spec-only upstream changes (e.g. an internal schema class rename) should
not bump the zad-cli version, but squash-merging the PR propagates its
title to main, and a feat: prefix triggers a minor release. Detect
whether Claude's implement step actually added code under src/ or tests/
and set the PR title prefix accordingly: feat when new CLI surface
landed, chore when only api/upstream-openapi.json moved.1 parent d6260ab commit d0b9e6f
1 file changed
Lines changed: 57 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
| |||
110 | 115 | | |
111 | 116 | | |
112 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
113 | 151 | | |
114 | 152 | | |
115 | | - | |
| 153 | + | |
116 | 154 | | |
117 | 155 | | |
118 | 156 | | |
| |||
148 | 186 | | |
149 | 187 | | |
150 | 188 | | |
| 189 | + | |
151 | 190 | | |
152 | 191 | | |
153 | 192 | | |
| |||
303 | 342 | | |
304 | 343 | | |
305 | 344 | | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
306 | 358 | | |
307 | 359 | | |
308 | | - | |
| 360 | + | |
| 361 | + | |
309 | 362 | | |
310 | 363 | | |
| 364 | + | |
311 | 365 | | |
312 | 366 | | |
313 | 367 | | |
| |||
323 | 377 | | |
324 | 378 | | |
325 | 379 | | |
326 | | - | |
| 380 | + | |
327 | 381 | | |
328 | 382 | | |
329 | 383 | | |
| |||
0 commit comments