Skip to content

Fix API spec update PR spam#388

Merged
thebiglabasky merged 2 commits into
mainfrom
herve/fix-api-spec-update-pr-spam
Jun 16, 2026
Merged

Fix API spec update PR spam#388
thebiglabasky merged 2 commits into
mainfrom
herve/fix-api-spec-update-pr-spam

Conversation

@thebiglabasky

Copy link
Copy Markdown
Contributor

Summary

  • Reuse a stable auto/update-api-spec branch for generated API spec updates.
  • Update the existing open API spec PR instead of creating a new PR for every scheduled run.
  • Make auto-merge best-effort so a failed auto-merge setup does not cause more duplicate PRs.

Why

The workflow used github.run_id in the generated branch name, so every run created a unique branch and duplicate PR when previous generated PRs had not merged. The PRs are created with GITHUB_TOKEN, which can leave pull_request workflows waiting for approval before required checks run.

Validation

  • ruby -e 'require "yaml"; YAML.load_file(".github/workflows/update-api-spec.yml")'
  • extracted workflow shell block with bash -n
  • git diff --check

@thebiglabasky thebiglabasky changed the title [codex] Fix API spec update PR spam Fix API spec update PR spam Jun 16, 2026
@thebiglabasky thebiglabasky marked this pull request as ready for review June 16, 2026 13:46
@thebiglabasky thebiglabasky enabled auto-merge (squash) June 16, 2026 13:47
@thebiglabasky thebiglabasky merged commit 400662c into main Jun 16, 2026
5 checks passed
@mintlify

mintlify Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
checkly-422f444a 🟢 Ready View Preview Jun 16, 2026, 1:53 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant