MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / preCommit

Method preCommit

tools/mage/git.go:92–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90var preCommitChecks []any
91
92func (g Git) preCommit() error {
93 if mg.Verbose() {
94 fmt.Println("Running pre-commit hook")
95 }
96 mg.Deps(g.selectStaged)
97 mg.Deps(preCommitChecks...)
98 return nil
99}
100
101var gitCommitPrefixes = []string{
102 "all",

Callers 1

RunHookMethod · 0.95

Calls 1

DepsMethod · 0.45

Tested by

no test coverage detected