Answer stability round 1: 0 🔴, 2 🟡; name the rename fix in the finished message and the changelog, read a bad newest mark as unknown, refuse a self-rename, share the release parser, test the strip
This commit is contained in:
+4
-4
@@ -61,8 +61,9 @@ A valid todo.md; ## Details and each item's detail are optional:
|
||||
- ## Items holds the table and nothing else: an order goes in the scores or the Blocked by column.
|
||||
- ## Renamed is optional: one line `- 0.2.1 renamed to 0.3.0` per release the plan renamed. The tools
|
||||
skip a marked release when they pick the next one, and call no scoring run for it; they read only
|
||||
the old release, the new one is for the reader. No item may sit under a marked release. A release
|
||||
whose items all moved to other releases without a mark reads as finished, so the human cuts it.
|
||||
the old release, the new one is for the reader. No item may sit under a marked release. Delete a
|
||||
line once a tag at or past its release is cut. A release whose items all moved to other releases
|
||||
without a mark reads as finished, so the human cuts it.
|
||||
- The table holds the columns above. One missing L, E or I fails, and so does one with a column this
|
||||
version does not know, since writing it would drop that column.
|
||||
- A table in the old shape, with C, A, G and Goals columns in place of L, E, I and Moves, still
|
||||
@@ -208,8 +209,7 @@ def rank(text: str, readme: str, decisions: str) -> Ranked | Failure:
|
||||
if isinstance(marked := renames(text), Failure):
|
||||
return marked
|
||||
if live := next((item for item in items if item.release in marked), None):
|
||||
release = ".".join(map(str, live.release))
|
||||
return Failure(f"todo.md marks release {release} renamed but files item {live.id} under it; drop the mark or move the item")
|
||||
return Failure(f"todo.md marks release {release_name(live)} renamed but files item {live.id} under it; drop the mark or move the item")
|
||||
scored = ordered(items, scoring)
|
||||
if isinstance(scored, Failure):
|
||||
return scored
|
||||
|
||||
Reference in New Issue
Block a user