diff --git a/goveralls.go b/goveralls.go index 19a5047..fb47fb6 100644 --- a/goveralls.go +++ b/goveralls.go @@ -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, }