Back to docs
Automation

Hook & CI Ready

Enforce the same commit rules with hooks and CI checks.

Feature doc
tagoly install-hookautomation
Overview

`tagoly install-hook` installs a `commit-msg` hook that runs Tagoly validation against the commit message file. Teams can also run the same lint command in CI, so manually written commits and Tagoly-generated commits are checked by the same rule.

What it includes
4 workflow details

Install a `commit-msg` hook with `tagoly install-hook`

Avoid overwriting existing hooks unless `-force` is used

Run `tagoly lint -message-file "$1"` before commits land

Reuse the same validation behavior in CI pipelines