Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOnBranch ¶
func NewOnBranch(appIO io.IO, conf *configuration.Configuration, repo git.Repo) hooks.Condition
Types ¶
type OnBranch ¶
type OnBranch struct {
// contains filtered or unexported fields
}
OnBranch prevents an action from being executed you are not working on a specified branch.
Example configuration:
{
"run": "echo ARRRRRRR",
"conditions": [
{
"run": "CaptainHook::Status.OnBranch",
"options": {
"name": "main"
}
}
]
}
func (*OnBranch) IsApplicableFor ¶
Click to show internal directories.
Click to hide internal directories.