Documentation
¶
Index ¶
- func CheckRunEvent() (*github.CheckRunEvent, error)
- func CheckSuiteEvent() (*github.CheckSuiteEvent, error)
- func CreateClient(instToken, baseURL, uploadURL string) (*github.Client, error)
- func Event() []byte
- func EventName() string
- func EventPath() string
- func GetPullRequest(issue *github.IssuesEvent) (*github.PullRequest, error)
- func IssueEvent() (*github.IssuesEvent, error)
- func IssueNumberOwnerRepo() (int, string, string, error)
- func ParseEvent() (interface{}, error)
- func PullRequest() (*github.PullRequest, string, string, error)
- func PullRequestEvent() (*github.PullRequestEvent, error)
- func RunCmd(cmd string, args []string) (string, string, error)
- type StringSlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckRunEvent ¶
func CheckRunEvent() (*github.CheckRunEvent, error)
func CheckSuiteEvent ¶
func CheckSuiteEvent() (*github.CheckSuiteEvent, error)
func CreateClient ¶
CreateClient uses either of the belows to authenticate to the Github API: - installation toke: `"token " + os.Getenv("GITHUB_TOKEN")` - personal access token: `"bearer " + os.Getenv("GITHUB_TOKEN")`
func GetPullRequest ¶
func GetPullRequest(issue *github.IssuesEvent) (*github.PullRequest, error)
func IssueEvent ¶
func IssueEvent() (*github.IssuesEvent, error)
func ParseEvent ¶
func ParseEvent() (interface{}, error)
func PullRequest ¶
func PullRequest() (*github.PullRequest, string, string, error)
func PullRequestEvent ¶
func PullRequestEvent() (*github.PullRequestEvent, error)
Types ¶
type StringSlice ¶
type StringSlice []string
func (*StringSlice) Set ¶
func (f *StringSlice) Set(value string) error
func (*StringSlice) String ¶
func (f *StringSlice) String() string
Click to show internal directories.
Click to hide internal directories.