Skip to content

Commit

Permalink
(fix): msg format
Browse files Browse the repository at this point in the history
  • Loading branch information
ilan-gold committed Nov 14, 2024
1 parent ff5fde4 commit 2505071
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ci/scripts/towncrier_automation.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ def main(argv: Sequence[str] | None = None) -> None:
if Version(args.version).micro != 0 and not re.fullmatch(
patch_branch_pattern, base_branch
):
raise NoPatchReleaseOnMainError(
f"Version {args.version} is a patch release, but you are trying to release from a non-patch release branch: {base_branch}."
)
msg = f"Version {args.version} is a patch release, but "
"you are trying to release from a non-patch release branch: {base_branch}."
raise NoPatchReleaseOnMainError(msg)
if Version(args.version).micro == 0 and base_branch != "main":
raise NoMinorMajorReleaseOffMainError(
f"Version {args.version} is a minor or major release, but you are trying to release not from main: {base_branch}."
)
msg = f"Version {args.version} is a minor or major release, "
"but you are trying to release not from main: {base_branch}."
raise NoMinorMajorReleaseOffMainError(msg)
pr_description = (
"" if base_branch == "main" else "@meeseeksmachine backport to main"
)
Expand Down

0 comments on commit 2505071

Please sign in to comment.