Пример #1
0
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
}
Пример #2
0
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
}