Skip to content

Commit

Permalink
chore: Fix multiple usage of keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
rumpelsepp committed Sep 27, 2023
1 parent 6579a6e commit e2d2f61
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions misc/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def run_wrapper(*args: Any, **kwargs: Any) -> Any:


def git_pull() -> None:
run_wrapper(["git", "pull"], check=True)
run_wrapper(["git", "pull"])


def check_project(rule: BumpMode | str) -> None:
Expand Down Expand Up @@ -84,16 +84,14 @@ def bump_version(rule: BumpMode | str) -> None:
def commit_bump(version: str) -> None:
run_wrapper(
["git", "commit", "-a", "-m", f"chore: Bump v{version} release"],
check=True,
)
run_wrapper(
["git", "tag", "-a", "-m", f"gallia v{version}", f"v{version}"],
check=True,
)


def github_release(version: str, rule: BumpMode | str, notes: ReleaseNotes) -> None:
run_wrapper(["git", "push", "--follow-tags"], check=True)
run_wrapper(["git", "push", "--follow-tags"])

cmd = ["gh", "release", "create"]
match rule:
Expand Down

0 comments on commit e2d2f61

Please sign in to comment.