Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProvideDefaultConfig ¶
ProvideDefaultConfig will render a default pre-commit yaml file if doesn't exist to bootstrap the project.
Types ¶
type Precommit ¶
Precommit contains tasks for Pre-commit for pre-commit/pre-push automation.
func (Precommit) Commit ¶
🧪 Commit runs pre-commit checks using pre-commit.
If using pre-commit framework you can see the available stages on the [docs](https://pre-commit.com/#confining-hooks-to-run-at-certain-stages).
> "The stages property is an array and can contain any of commit, merge-commit, push, prepare-commit-msg, commit-msg, post-checkout, post-commit, post-merge, post-rewrite, and manual.".
Click to show internal directories.
Click to hide internal directories.