Answer stability round 2: 0 🔴, 1 🟡 (0 misread); the hand-cut steps and the reused tag's refusal list the exact entries, and a hand cut reruns to the end
CI / tests (pull_request) Has been cancelled
CI / tests (pull_request) Has been cancelled
This commit is contained in:
@@ -139,7 +139,7 @@ def tagged_entries(clone: str, patch: Patch) -> Failure | None:
|
||||
return changelog
|
||||
listed = [line for line in section(changelog, re.escape(patch.named)) or [] if line.strip()]
|
||||
if listed != patch.entries:
|
||||
return Failure(f"origin's v{patch.named} lists other changelog entries than the commits named: name the commits it was cut from")
|
||||
return Failure(f"origin's v{patch.named} lists other changelog entries under ## {patch.named} than the commits named added under ## Unreleased. The tag lists:\n" + "\n".join(listed) + "\nThe commits added:\n" + "\n".join(patch.entries))
|
||||
return None
|
||||
|
||||
|
||||
@@ -192,8 +192,9 @@ def apply_commit(clone: str, worktree: pathlib.Path, commit: str, patch: Patch)
|
||||
subject = git("log", "-1", "--format=%s", commit, cwd=clone)
|
||||
return Failure(
|
||||
f"{commit[:12]} ({'' if isinstance(subject, Failure) else subject.strip()}) doesn't apply on {patch.base}: {applied.reason}. "
|
||||
f"Cut the patch by hand: on {patch.base}, apply the fix and add CHANGELOG.md's ## {patch.named} section, commit that titled `Cut release {patch.named}`, "
|
||||
f"tag it v{patch.named}, annotated with that title, and push the tag. A rerun then merges it back and deploys it."
|
||||
f"Cut the patch by hand: on {patch.base}, apply the fix and add a ## {patch.named} section to CHANGELOG.md, commit that titled `Cut release {patch.named}`, "
|
||||
f"tag it v{patch.named}, annotated with that title, and push the tag. A rerun with the same commits then merges it back and deploys it, "
|
||||
f"where the section holds exactly these lines:\n" + "\n".join(patch.entries)
|
||||
)
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user