Documentation
¶
Overview ¶
Package hookrelay runs the existing hook API without initializing the web application.
Index ¶
- Constants
- func DelegateMatches(mode string, getenv func(string) string) bool
- func Dispatch(ctx context.Context, mode string, args []string, input io.Reader, ...) int
- func LocalURL(raw string) bool
- func PublicEnvironment(environment []string) []string
- func Run(ctx context.Context, mode string, args []string, input io.Reader, ...) int
- func RunCustomHook(ctx context.Context, path string, args []string, input io.Reader, ...) int
- type BranchResult
- type Options
Constants ¶
View Source
const ( Protocol = "gitsss-hook/2" // DelegateChanged asks the shell dispatcher to execute the original script. DelegateChanged = 75 EnvPrefix = "GITSSS_HOOK_" )
Variables ¶
This section is empty.
Functions ¶
func Dispatch ¶
func Dispatch(ctx context.Context, mode string, args []string, input io.Reader, output, errorOutput io.Writer, getenv func(string) string) int
Dispatch avoids a shell only when both the dispatcher and its sole delegate are managed.
func PublicEnvironment ¶
Types ¶
type Options ¶
type Options struct {
OldCommitIDs []string
NewCommitIDs []string
RefFullNames []string
UserID int64
UserName string
GitObjectDirectory string
GitAlternativeObjectDirectories string
GitQuarantinePath string
GitPushOptions map[string]string
PullRequestID int64
PushTrigger string
DeployKeyID int64
IsWiki bool
ActionsTaskID int64
}
Click to show internal directories.
Click to hide internal directories.