Repository navigation
feat: add force-push-beta-to-stable action [ED-26219] - #67
Merged
Merged
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
Svitlana-Dykun
approved these changes
Nov 9, 2026
Svitlana-Dykun
left a comment
Contributor
There was a problem hiding this comment.
A few things before this is run for real:
-
Dry run fails open.
force-push-beta-to-stable.shonly skips the push whenDRY_RUNis exactly"true", so"True","yes"or"1"force-pushrelease/stable. The Core and Pro triggers pass a boolean, so they're fine today, but since this is a shared action, please push only on an exact"false"and fail on anything else. -
No guard against a stale beta. If it runs when
release/betais older thanrelease/stable(for example between cycles), stable goes back in time, and the only safeguard is the person approving inrelease-owners. Suggest reading the plugin version from both branches and refusing to push when beta's is lower.
Minor:
- Only
Cherry-pick PR Ntitles are recognised as cherry-picks.CP - …titles (e.g. elementor/elementor#37660) aren't. - The
prsoutput includes cherry-picks of PRs that are already in beta (the test expects[301,400]), so anything reading it counts them as lost. Maybe exclude them, or add a second output. fetch-depth: 0is documented but not checked. Agit rev-parse --is-shallow-repositoryguard would catch a shallow checkout.- The description still says "Made with Cursor".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Composite action that force pushes
release/betaontorelease/stable(with lease) and lists the PRs inrelease/stablethat are not inrelease/betain the job summary and theprs/count/rollback-shaoutputs. Commits whose patch is already in beta are skipped, and cherry-picks of PRs that are in beta are flagged. Dry run is the default.Jira: ED-26219
Made with Cursor
✨ PR Description
1. Problem & Context
Implements ED-26219 to synchronize
release/stablewithrelease/betavia force-push, automating the replacement of the stable branch while auditing lost commits.2. What Changed (Where)
action.ymlforce-push-beta-to-stable.shlist-stable-only-prs.shforce-push-beta-to-stable.test.shpackage.json3. How It Works
The action fetches both branches, identifies commits in the target not present in the source (filtering cherry-picks), and outputs a JSON list of dropped PRs. If
dry-runis false, it executesgit push --force-with-leaseto overwrite the target branch and prints a rollback command in the GitHub Job Summary.4. Risks
release/stable. Mitigated byforce-with-leaseand providing a specific rollback SHA in the summary.Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Description using Guidelines Learn how