hk 1.49.0

A tool for managing git hooks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import "../Builtins.pkl"
import "../Config.pkl"

@Builtins.meta {
  category = "Special Purpose"
  description = "Conventional commits linter"
  project_indicators {
    new { file = "cog.toml" }
  }
}
cocogitto_commit_msg = new Config.Step {
  // Reference: https://github.com/cocogitto/cocogitto/blob/7.0.0/cog.toml#L62-L63
  check = "cog --quiet verify --file {{commit_msg_file}}"
}