fix: reuse existing PR for dep updates#9
Conversation
- Use fixed branch name (deps/update-unlayer) instead of dated names - If an open PR exists, force-push new versions and update PR body - If no PR exists, create a new one - Prevents accumulating stale dep update PRs
There was a problem hiding this comment.
Pull request overview
Updates the dependency-update GitHub Actions workflow to reuse a single long-lived branch/PR for Unlayer dependency bumps, avoiding multiple stale “deps update” PRs when versions change frequently.
Changes:
- Switches from date-based branch names to a fixed
deps/update-unlayerbranch. - If an open PR already exists for that branch, force-pushes new updates and edits the PR body instead of creating a new PR.
- If no open PR exists, creates a new PR from the fixed branch.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Add concurrency group to prevent race conditions - Fetch remote branch before --force-with-lease (fixes shallow clone issue) - Fail explicitly on gh API errors instead of silently falling through - Use --force (not --force-with-lease) in create path for stale branches
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Use jq // empty to avoid "null" string when no PRs exist - Skip commit/push if branch already has the same versions
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Both paths now share the same checkout/commit/push flow. Branch always starts from main HEAD with updated files. Only the PR step differs (edit existing vs create new).
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
deps/update-unlayer) instead of date-based names (deps/update-unlayer-YYYYMMDD)Test plan
📖 Storybook Preview: https://reimagined-adventure-16yv2wp.pages.github.io/pr/9/