Skip to content

Commit

Permalink
Normalize rc detection
Browse files Browse the repository at this point in the history
  • Loading branch information
mtreinish committed Nov 30, 2023
1 parent a045f9c commit c26aae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit_bot/release_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def finish_release(version_number, repo, conf, meta_repo):
repo_branches = [x.name for x in repo.gh_repo.get_branches()]
if int(version_number_pieces[2]) == 0 and \
branch_name not in repo_branches:
if is_prerelease and "rc" not in version_number:
if is_prerelease and version_obj.pre[0] != "rc":
pass
else:
git.checkout_default_branch(repo, pull=True)
Expand Down

0 comments on commit c26aae5

Please sign in to comment.