Skip to content

feat: close stale auto-update PRs before creating new ones - #37

Merged
nastassiafulconis merged 1 commit into
mainfrom
openapi-pr-management
Nov 20, 2025
Merged

nastassiafulconis merged 1 commit into
mainfrom
openapi-pr-management

Conversation

@nastassiafulconis

Copy link
Copy Markdown
Collaborator

Summary

This PR improves the auto-update OpenAPI workflow to prevent accumulation of stale PRs by automatically closing old auto-update PRs before creating a new one.

Changes

  • Added "Close existing auto-update PRs" step to the workflow
  • Workflow now finds all open PRs with branch names starting with auto-update-openapi-
  • Closes each old PR with a comment explaining why
  • Deletes the associated branches to keep the repo clean

Why

Currently there are 8+ open auto-update PRs that are essentially duplicates. This change ensures only the most recent auto-update PR remains open at any time.

Testing

  • ✅ Lint passes
  • ✅ Build passes
  • ✅ All tests pass (84 passing)

The workflow will automatically clean up existing stale PRs the next time it runs and detects changes.

@nastassiafulconis
nastassiafulconis requested review from a team and LucasBassetti November 20, 2025 19:46
@nastassiafulconis
nastassiafulconis merged commit bd94d86 into main Nov 20, 2025
6 checks passed
@nastassiafulconis
nastassiafulconis deleted the openapi-pr-management branch November 20, 2025 19:49
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.

2 participants