Skip to content

Commit

Permalink
update check-run name
Browse files Browse the repository at this point in the history
  • Loading branch information
morphy2k committed Aug 31, 2019
1 parent 97d33ff commit 0c57563
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import (
"golang.org/x/oauth2"
)

const name = "Revive Action"

const (
envRepo = "GITHUB_REPOSITORY"
envAction = "GITHUB_ACTION"
Expand Down Expand Up @@ -72,7 +74,7 @@ func init() {

func createCheck() *github.CheckRun {
opts := github.CreateCheckRunOptions{
Name: actionName,
Name: name,
HeadSHA: headSHA,
Status: github.String("in_progress"),
}
Expand Down Expand Up @@ -102,7 +104,7 @@ func (c conclusion) String() string {

func completeCheck(check *github.CheckRun, concl conclusion) {
opts := github.UpdateCheckRunOptions{
Name: actionName,
Name: name,
HeadSHA: github.String(headSHA),
Conclusion: github.String(concl.String()),
}
Expand Down Expand Up @@ -174,7 +176,7 @@ func createAnnotations(failures []*failure) []*github.CheckRunAnnotation {

func pushFailures(check *github.CheckRun, failures []*failure, total int, wg *sync.WaitGroup) {
opts := github.UpdateCheckRunOptions{
Name: actionName,
Name: name,
HeadSHA: github.String(headSHA),
Output: &github.CheckRunOutput{
Title: github.String("Result"),
Expand Down

0 comments on commit 0c57563

Please sign in to comment.