Documentation
¶
Overview ¶
Package actions decodes the Actions context to interpret the user's intent and act.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionEnvironment ¶
type ActionEnvironment interface {
// contains filtered or unexported methods
}
ActionEnvironment smuggles *Environment out of structs that embed one.
type Environment ¶
type Environment struct {
GitHubEventName string `env:"GITHUB_EVENT_NAME"`
GitHubEventPath string `env:"GITHUB_EVENT_PATH"`
GitHubRepository string `env:"GITHUB_REPOSITORY"`
InputLogLevel string `env:"INPUT_LOG_LEVEL" envDefault:"info"`
}
Environment includes Actions environment https://docs.github.com/en/free-pro-team@latest/actions/reference/environment-variables
func (*Environment) LogLevel ¶
func (e *Environment) LogLevel() logrus.Level
LogLevel returns the logrus level
func (*Environment) ParseEvent ¶
func (e *Environment) ParseEvent() (interface{}, error)
ParseEvent returns deserialized GitHub webhook payload, or an error.
type Handlers ¶
type Handlers struct {
IssueComment func(context.Context, *github.IssueCommentEvent) error
PullRequest func(context.Context, *github.PullRequestEvent) error
Release func(context.Context, *github.ReleaseEvent) error
RepositoryDispatch func(context.Context, *github.RepositoryDispatchEvent) error
Schedule func(context.Context) error
WorkflowDispatch func(context.Context) error
}
Click to show internal directories.
Click to hide internal directories.