Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { GitHub GitHub GithubEvent GithubEvent Inputs Inputs }
func LoadConfigFromEnv ¶
type GitHub ¶
type GitHub struct { Workflow string `env:"GITHUB_WORKFLOW"` Action string `env:"GITHUB_ACTION"` Actor string `env:"GITHUB_ACTOR"` Repository string `env:"GITHUB_REPOSITORY"` Commit string `env:"GITHUB_SHA"` EventName string `env:"GITHUB_EVENT_NAME"` EventPath string `env:"GITHUB_EVENT_PATH"` Ref string `env:"GITHUB_REF"` }
type GithubEvent ¶
type GithubEvent struct { PullRequest struct { Commits int `json:"commits"` } `json:"pull_request,omitempty"` Commits []interface{} `json:"commits,omitempty"` }
func (GithubEvent) TotalCommits ¶
func (e GithubEvent) TotalCommits() int
Click to show internal directories.
Click to hide internal directories.