Skip to content

Commit

Permalink
MOD: support checkout v2
Browse files Browse the repository at this point in the history
  • Loading branch information
fezho committed Jan 10, 2020
1 parent 94583ea commit 99bdb6b
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions goveralls.go
Expand Up @@ -320,21 +320,12 @@ func process() error {
return err
}

commitRef := "HEAD"
if os.Getenv("GITHUB_EVENT_NAME") == "pull_request" {
// ghPR := getGithubEvent()["pull_request"].(map[string]interface{})
// ghHead := ghPR["head"].(map[string]interface{})
// commitRef = ghHead["sha"].(string)
log.Printf("github event value: %+v", getGithubEvent())
commitRef = fmt.Sprintf("refs/pull/%s/merge", pullRequest)
}

j := Job{
RunAt: time.Now(),
RepoToken: repotoken,
ServicePullRequest: pullRequest,
Parallel: parallel,
Git: collectGitInfo(commitRef),
Git: collectGitInfo("HEAD"),
SourceFiles: sourceFiles,
ServiceName: *service,
}
Expand Down

0 comments on commit 99bdb6b

Please sign in to comment.