Answer architecture round 1: 0 🔴, 6 🟡 (0 misread); count a release review only where it names the next release, split task_bench into bugs, features and figures, group README's packages
CI / tests (pull_request) Successful in 4m55s
CI / tests (pull_request) Successful in 4m55s
This commit is contained in:
@@ -37,12 +37,15 @@ def cut(clone: str, checkout: str, sleep: typing.Callable[[float], None]) -> str
|
||||
ref = default_ref(cwd=clone)
|
||||
if isinstance(ref, Failure):
|
||||
return ref
|
||||
release = ready_release(clone, ref)
|
||||
# The patch refusal comes before the review's: a patch takes no release review, so "hasn't landed" would send the human the wrong way.
|
||||
release = ready_release(clone, ref, review=False)
|
||||
if isinstance(release, Failure):
|
||||
return release
|
||||
named = version(release)
|
||||
if isinstance(patched := patch_refusal(clone, ref, release), Failure):
|
||||
return patched
|
||||
if isinstance(reviewed := ready_release(clone, ref), Failure):
|
||||
return reviewed
|
||||
title, tag, branch = f"Cut release {named}", f"v{named}", f"release-{named}"
|
||||
merged = commit_titled(title, ref, clone)
|
||||
if merged is None:
|
||||
|
||||
@@ -18,7 +18,7 @@ memory, stay as they are.
|
||||
|
||||
--cut runs in the development clone, and refuses where that clone's origin isn't <checkout>'s. It cuts the next release, as chunk-preflight works it out, and
|
||||
refuses without changing anything, unless that release holds no item in todo.md, its release review has
|
||||
landed and changes are unreleased. The release names the version; the tool doesn't choose one. It also refuses a
|
||||
landed, as chunk-preflight --help counts one, and changes are unreleased. The release names the version; the tool doesn't choose one. It also refuses a
|
||||
release that is a patch of the newest tag, such as 0.15.2 after v0.15.1, since it would ship all of main: cut that
|
||||
with --cut-patch.
|
||||
1. On a fresh origin/main, it renames ## Unreleased in CHANGELOG.md to the version, commits that
|
||||
|
||||
Reference in New Issue
Block a user