Documentation
¶
Overview ¶
Package integrations provides functionality for integrating Stackit with external tools and hooks.
Package integrations provides functionality for integrating Stackit with external tools and hooks.
Package integrations provides functionality for integrating Stackit with external tools and hooks.
Index ¶
- func PrecommitInstallAction(deps Deps) error
- func PrecommitInstallActionWithOutput(repoRoot string, writer io.Writer) error
- func PrecommitUninstallAction(deps Deps) error
- func PrecommitVerifyAction(ctx context.Context, deps Deps) error
- func PrepushInstallAction(deps Deps) error
- func PrepushUninstallAction(deps Deps) error
- func PrepushVerifyAction(deps Deps) error
- func PrepushVerifyFromReader(deps Deps, reader io.Reader) error
- type Deps
- type Engine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrecommitInstallAction ¶
PrecommitInstallAction installs the pre-commit hook
func PrecommitInstallActionWithOutput ¶
PrecommitInstallActionWithOutput installs the pre-commit hook with a custom writer. This is a convenience function for use during init where we don't have full Deps.
func PrecommitUninstallAction ¶
PrecommitUninstallAction uninstalls the pre-commit hook
func PrecommitVerifyAction ¶
PrecommitVerifyAction checks if the current branch can be modified
func PrepushInstallAction ¶
PrepushInstallAction installs the pre-push hook
func PrepushUninstallAction ¶
PrepushUninstallAction uninstalls the pre-push hook
func PrepushVerifyAction ¶
PrepushVerifyAction verifies that branches being pushed are not locked. It reads the refs being pushed from stdin (git pre-push hook protocol).