Answer product-owner round 1: 0 🔴, 1 🟡 (0 misread); name the clone in self-update's lines, and say in the README which copy to run and how a clone on 0.17.0 moves
This commit is contained in:
@@ -31,7 +31,7 @@ def moved_to_newest(clone: str) -> str | Failure:
|
||||
old_tag = None if isinstance(old, Failure) else old.strip()
|
||||
at_tag = git("describe", "--tags", "--exact-match", "--match", "v*", "HEAD", cwd=clone)
|
||||
if not isinstance(at_tag, Failure) and at_tag.strip() == tag:
|
||||
return f"Already on {tag}, the newest release."
|
||||
return f"{clone} is already on {tag}, the newest release."
|
||||
if isinstance(git("merge-base", "--is-ancestor", "HEAD", tag, cwd=clone), Failure):
|
||||
return Failure(f"{tag} doesn't hold the clone's commit, so the move would drop work no release holds: cut a release that holds it first")
|
||||
settings_changed = isinstance(git("diff", "--quiet", "HEAD", tag, "--", "settings.json", cwd=clone), Failure)
|
||||
@@ -49,7 +49,7 @@ def moved_to_newest(clone: str) -> str | Failure:
|
||||
if isinstance(moved, Failure):
|
||||
return moved
|
||||
changelog = git("show", f"{tag}:CHANGELOG.md", cwd=clone)
|
||||
lines = [f"Moved from {old_tag or 'an untagged commit'} to {tag}."]
|
||||
lines = [f"Moved {clone} from {old_tag or 'an untagged commit'} to {tag}."]
|
||||
if settings_changed:
|
||||
lines.append("settings.json changed: pick the model again with /model.")
|
||||
if not isinstance(changelog, Failure):
|
||||
|
||||
Reference in New Issue
Block a user