Files
Kyle Mathews 018f1551e1 fix(ci): reuse existing open docs PR instead of creating duplicates (#1461)
* fix(ci): reuse existing open docs PR instead of creating duplicates

The release workflow now checks for an existing open "regenerate API
documentation" PR before creating a new one. If found, it pushes new
docs changes to that PR's branch instead of spawning a duplicate.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(ci): address review findings in docs PR reuse logic

- Use git checkout -B to reset branch to current HEAD (avoids dirty
  working tree conflict and keeps freshly generated docs)
- Use --force-with-lease for push since branch history is rewritten
- Guard git commit with diff --cached --quiet for no-change case
- Handle gh pr list failure gracefully with fallback to new PR
- Narrow PR search with --author and in:title filters
- Use separate CREATE_PR variable instead of dual-purpose state

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 13:28:39 -06:00
..