func successStatus(gh *octokat.Client, repo octokat.Repo, sha, context, description string) error { _, err := gh.SetStatus(repo, sha, &octokat.StatusOptions{ State: "success", Context: context, Description: description, }) return err }
func failureStatus(gh *octokat.Client, repo octokat.Repo, sha, context, description, targetURL string) error { _, err := gh.SetStatus(repo, sha, &octokat.StatusOptions{ State: "failure", Context: context, Description: description, URL: targetURL, }) return err }