Skip to content

Commit 6aaac8b

Browse files
committed
fix: preserve file content when updating ADR metadata (#187)
`set_status()`, `link()`, and `supersede()` previously re-rendered the entire file through the template engine, destroying custom sections, markdown links, YAML comments, and MADR structure. Add `update_metadata()` that surgically edits only status/links/tags fields in-place via regex replacement for frontmatter files and section-targeted replacement for legacy files. Also fix `Repository::open()` to respect the config's template format.
1 parent d63ce79 commit 6aaac8b

File tree

4 files changed

+1006
-10
lines changed

4 files changed

+1006
-10
lines changed

0 commit comments

Comments
 (0)