Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventWithTypes ¶
type EventWithTypes struct {
Types StringOrList `yaml:"types"`
}
type EventWithoutTypes ¶
type EventWithoutTypes struct {
}
type GitHubWorkflow ¶
type Job ¶
type Job struct {
Name string `yaml:"name,omitempty"`
Needs *StringOrList `yaml:"needs,omitempty"`
RunsOn *StringOrList `yaml:"runs-on,omitempty"`
Env map[string]interface{} `yaml:"env,omitempty"`
If string `yaml:"if,omitempty"`
Steps []*Step `yaml:"steps,omitempty"`
Container *Container `yaml:"container,omitempty"`
}
type MultiEvent ¶
type MultiEvent struct {
CheckRun *EventWithTypes `yaml:"check_run,omitempty"`
CheckSuite *EventWithTypes `yaml:"check_suite,omitempty"`
Create *EventWithoutTypes `yaml:"create,omitempty"`
Delete *EventWithoutTypes `yaml:"delete,omitempty"`
Deployment *EventWithoutTypes `yaml:"deployment,omitempty"`
DeploymentStatus *EventWithoutTypes `yaml:"deployment_status,omitempty"`
Fork *EventWithoutTypes `yaml:"fork,omitempty"`
Gollum *EventWithoutTypes `yaml:"gollum,omitempty"`
IssueComment *EventWithTypes `yaml:"issue_comment,omitempty"`
Issues *EventWithTypes `yaml:"issues,omitempty"`
Label *EventWithTypes `yaml:"label,omitempty"`
Milestone *EventWithTypes `yaml:"milestone,omitempty"`
PageBuild *EventWithoutTypes `yaml:"page_build,omitempty"`
Project *EventWithTypes `yaml:"project,omitempty"`
ProjectCard *EventWithTypes `yaml:"project_card,omitempty"`
ProjectColumn *EventWithTypes `yaml:"project_column,omitempty"`
Public *EventWithoutTypes `yaml:"public,omitempty"`
PullRequest *PushPullEvent `yaml:"pull_request,omitempty"`
PullRequestReview *EventWithTypes `yaml:"pull_request_review,omitempty"`
PullRequestReviewComment *EventWithTypes `yaml:"pull_request_review_comment,omitempty"`
Push *PushPullEvent `yaml:"push,omitempty"`
RegistryPackage *EventWithTypes `yaml:"registry_package,omitempty"`
Release *EventWithTypes `yaml:"release,omitempty"`
Status *EventWithoutTypes `yaml:"status,omitempty"`
Watch *EventWithTypes `yaml:"watch,omitempty"`
Schedule *ScheduleEvent `yaml:"schedule,omitempty"`
RepositoryDispatch *EventWithoutTypes `yaml:"repository_dispatch,omitempty"`
}
func (*MultiEvent) UnmarshalYAML ¶
func (me *MultiEvent) UnmarshalYAML(unmarshal func(interface{}) error) error
type PushPullEvent ¶
type PushPullEvent struct {
Types StringOrList `yaml:"types"`
Branches []string `yaml:"branches,omitempty"`
BranchesIgnore []string `yaml:"branches-ignore,omitempty"`
Tags []string `yaml:"tags,omitempty"`
TagsIgnore []string `yaml:"tags-ignore,omitempty"`
Paths []string `yaml:"paths,omitempty"`
PathsIgnore []string `yaml:"paths-ignore,omitempty"`
}
type ScheduleEvent ¶
type ScheduleEvent struct {
Crons []Cron `yaml:"-"`
}
type Step ¶
type Step struct {
Name string `yaml:"name,omitempty"`
If string `yaml:"if,omitempty"`
Uses yaml.Node `yaml:"uses,omitempty"`
Run string `yaml:"run,omitempty"`
Shell string `yaml:"shell,omitempty"`
With *With `yaml:"with,omitempty"`
ContinueOnError *bool `yaml:"continue-on-error,omitempty"`
TimeoutMinutes int `yaml:"timeout-minutes,omitempty"`
}
type StringOrList ¶
type StringOrList struct {
Type StringOrListType
StrVal *string
ListVal []string
}
func (*StringOrList) UnmarshalYAML ¶
func (sl *StringOrList) UnmarshalYAML(unmarshal func(interface{}) error) error
type Trigger ¶
type Trigger struct {
Type TriggerType
StringOrListVal *StringOrList
MultiEventVal *MultiEvent
}
func (*Trigger) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.