Updated
On this page
Undo command that reverts the last release by deleting the GitHub Release, removing the git tag, and reverting the version bump commit.
#rlsbl.commands.undo
#rlsbl.commands.undo
Undo command that reverts the last release by deleting the GitHub Release, removing the git tag, and reverting the version bump commit.
#_print_summary
python
def _print_summary(results)Print a summary table of step results. Only called when at least one step failed.
#_detect_pr_state
python
def _detect_pr_state(release_branch, config)Detect the state of a PR-mode release branch.
Returns:
- "open" -- branch exists and PR is not merged (can be undone by closing PR)
- "merged" -- PR was merged (fall through to imperative undo)
- "none" -- no release branch found (fall through to imperative undo)
#_undo_pr_release
python
def _undo_pr_release(tag, release_branch, bare_version, flags, monorepo_name, monorepo_project_path, ws_root, ctx)Undo a PR-mode release by closing the PR and cleaning up the branch.
Called when the release PR is still open (not merged). Closes the PR, deletes the remote and local release branch, and restores the release file and changelog state.
#run_cmd
python
def run_cmd(registry, args, flags, *, ctx)