Skip to content

Commit 71d5ec3

Browse files
committed
Fix branch format in release script
1 parent 65087fb commit 71d5ec3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

create_release.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def do_push(branch_name: str, dry_run: bool):
145145
sys.exit(1)
146146

147147
def tag_and_push(branch: str, version: str, push: bool, dry_run: bool):
148-
tag = f"{branch}-{version}"
148+
tag = f"{version}-{branch}"
149149
# check tag does not already exist
150150
rc, _, _ = run_git(["rev-parse", "-q", "--verify", f"refs/tags/{tag}"])
151151
if rc == 0:
@@ -183,7 +183,7 @@ def fetch_origin(dry_run: bool):
183183

184184
def parse_args():
185185
p = argparse.ArgumentParser(description="Merge release branches and create/push tags non-interactively.")
186-
p.add_argument("version", help="version string to append to tags (used as <branch>-<version>)")
186+
p.add_argument("version", help="version string to append to tags (used as <version>-<branch>)")
187187
p.add_argument("--branches", nargs="+",
188188
default=BRANCHES,
189189
help="space-separated list of branches in order (default: %(default)s)")

0 commit comments

Comments
 (0)