Cut a patch release of only the commits named with deploy-release --cut-patch

This commit is contained in:
Lilleman
2026-11-24 14:09:56 +01:00
parent 80de753b9e
commit 9c2587b5ca
6 changed files with 389 additions and 24 deletions
+3 -3
View File
@@ -6,10 +6,10 @@ from failure import Failure
from forge.commands import Forge, gitea, Run
def create_pull(forge: Forge, branch: str, base: str, title: str, run: Run) -> Failure | None:
body = ["--body" if forge == "gh" else "--description", "Rename ## Unreleased in CHANGELOG.md to the version."]
def create_pull(forge: Forge, branch: str, base: str, title: str, body: str, run: Run) -> Failure | None:
described = ["--body" if forge == "gh" else "--description", body]
command = ["gh", "pr"] if forge == "gh" else ["tea", "pulls"]
created = run([*command, "create", "--head", branch, "--base", base, "--title", title, *body])
created = run([*command, "create", "--head", branch, "--base", base, "--title", title, *described])
return created if isinstance(created, Failure) else None