fix(summarise): use template.lock/RhizaTemplate model for template info; add output customisation flags#470
Draft
fix(summarise): use template.lock/RhizaTemplate model for template info; add output customisation flags#470
Conversation
…on options Agent-Logs-Url: https://github.com/Jebel-Quant/rhiza-cli/sessions/234c325c-d54a-467a-a73f-eb7e0fa17f74 Co-authored-by: HarryCampion <40582604+HarryCampion@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
HarryCampion
April 9, 2026 21:23
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
rhiza summarisehardcodedjebel-quant/rhizaas the template reference whenevertemplate.ymlwas absent or used the newerrepository:/ref:key format. The last-sync grep also hardcoded"rhiza"in commit patterns, missing non-rhiza templates entirely.Bug fixes
get_template_info()— replaced ad-hoc line-by-line YAML parsing withTemplateLock.from_yaml()(preferred, authoritative) →RhizaTemplate.from_yaml()fallback. Handles bothtemplate-repository/repositoryandtemplate-branch/refkey formats. Returns("", "")instead of hardcoding"jebel-quant/rhiza"when no config exists.get_last_sync_date()— readssynced_atfromtemplate.lockfirst; builds git-log grep patterns from the actual template short name instead of the literal string"rhiza".New output customisation options
--no-header/--no-footer--no-categories--format markdown|plain|json--title <str>--compare <ref>--template <file.j2>The Jinja2 template context exposes:
template_repo,template_branch,last_sync,sync_date,changes(added/modified/deleted lists),categories(dict),title.Categorisation improvements
src/→ Source Code,docs/→ Documentation (alongside existingbook/).