(641e3d5) Scope metadata field lookup to the Metadata section, and bump to 0.2.1

parse_ticket_field searched every line of the file with contains, and
set_status_field rewrote the first line starting with the Status marker
wherever it sat. Tickets in this repo quote field markers in their
descriptions, so a description list shaped like metadata was read in place
of the real value and rewritten by mv, leaving the metadata stale.

Both now scan only the lines under the Metadata heading and match on a line
prefix rather than a substring. A file with no Metadata heading has no
fields, so mv reports the missing Status field instead of editing prose.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ansho Rei
2026-08-20 16:38:35 +02:00
co-authored by Claude Opus 5
parent 2503f9aee9
commit ab1dae098c
4 changed files with 122 additions and 15 deletions
Generated
+1 -1
View File
@@ -1029,7 +1029,7 @@ dependencies = [
[[package]]
name = "worklane"
version = "0.2.0"
version = "0.2.1"
dependencies = [
"anyhow",
"assert_cmd",