Skip to content

Commit

Permalink
fix: change if in process check run event (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
FagnerRoger authored Dec 20, 2021
1 parent 66148e2 commit 15fb190
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/github/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ func (w *Worker) processIssueCommentEvent(p *ghwebhooks.IssueCommentPayload) {
}

func (w *Worker) processCheckRunEvent(p *ghwebhooks.CheckRunPayload) {
owner, _ := getOwner(&w.Config)
pullRequest, err := w.GetPullRequest(*owner, p.Repository.Name, int(p.CheckRun.PullRequests[0].Number))
if err != nil {
return
}
if p.CheckRun.App.ID == int64(w.Config.Github.AppID) {
owner, _ := getOwner(&w.Config)
pullRequest, err := w.GetPullRequest(*owner, p.Repository.Name, int(p.CheckRun.PullRequests[0].Number))
if err != nil {
return
}
w.processCheckRun(owner, pullRequest, p)
}
}

0 comments on commit 15fb190

Please sign in to comment.