66 lines
831 B
Go
66 lines
831 B
Go
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package hooks
|
|
|
|
|
|
type HookEvent struct {
|
|
Type string `json:"type"`
|
|
Repo string `json:"repo"`
|
|
RepoPath string `json:"repo_path"`
|
|
Args []string `json:"args"`
|
|
Stdin string `json:"stdin"`
|
|
Env map[string]string `json:"env"`
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var hookNames = []string{
|
|
|
|
"pre-receive",
|
|
"update",
|
|
"post-receive",
|
|
"post-update",
|
|
"proc-receive",
|
|
"push-to-checkout",
|
|
"reference-transaction",
|
|
|
|
"pre-applypatch",
|
|
"post-applypatch",
|
|
"pre-commit",
|
|
"pre-merge-commit",
|
|
"prepare-commit-msg",
|
|
"commit-msg",
|
|
"post-commit",
|
|
"pre-rebase",
|
|
"post-checkout",
|
|
"post-merge",
|
|
"pre-push",
|
|
"pre-auto-gc",
|
|
"post-rewrite",
|
|
"sendemail-validate",
|
|
"fsmonitor-watchman",
|
|
"p4-pre-submit",
|
|
"p4-post-changelist",
|
|
"p4-prepare-changelist",
|
|
"p4-changelist",
|
|
}
|