Skip to content

Commit

Permalink
Fix: Release require existing git tag
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalholthaus authored and bjoernricks committed Oct 19, 2022
1 parent 12507a8 commit 3e394ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pontos/github/argparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def parse_args(

create_re_parser.add_argument(
"tag",
help=("Tag to create on release"),
help=("Tag to use for release"),
)

create_re_parser.add_argument(
Expand Down
2 changes: 1 addition & 1 deletion pontos/github/cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def create_release(terminal: Terminal, args: Namespace) -> None:

try:
# Check if release exist
if git.release_exists(repo=args.repo, tag=args.tag):
if not git.release_exists(repo=args.repo, tag=args.tag):
terminal.error(f"Release {args.tag} exist.")
sys.exit(1)

Expand Down

0 comments on commit 3e394ef

Please sign in to comment.