// changelog
v1.18.1
The pre-push hook now reviews only the pushed commit on a new branch or tag instead of the working tree, and the MCP review tool's min_severity argument now filters the returned findings.
Released October 10, 2026
Fixed
install-hook --hook=pre-push: when pushing a new branch or tag, the hook compared the working tree against the pushed commit instead of reviewing the commit itself. It now reviews the tip commit only (against the empty tree for a root commit). Annotated tags are reviewed as their commit; a pushed ref that does not resolve to a commit, or whose parent is missing in a shallow clone, is skipped with a warning. An installed hook keeps its old script until you regenerate it withcommitbrief install-hook --hook=pre-push --yes.- MCP
reviewtool:min_severityhad no effect. It now trimsfindings[]in the returned document; thefail_ongate still evaluates the full set, and the text summary notes that lower-severity findings are excluded. The CLI--jsonoutput is unchanged and stays unfiltered. github.com/spf13/pflagandgithub.com/muesli/termenvare now listed as direct dependencies ingo.mod.