Skip to content

Commit

Permalink
Fix parameters to check run list API call (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluekeyes authored Apr 7, 2020
1 parent 1469837 commit ba60daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pull/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ func (ghc *GitHubContext) getCheckStatuses() (map[string]string, error) {
// get all pages of results
statuses := make(map[string]string)
for {
checkRuns, resp, err := ghc.client.Checks.ListCheckRunsForRef(ghc.ctx, ghc.owner, ghc.owner, ghc.HeadSHA(), opt)
checkRuns, resp, err := ghc.client.Checks.ListCheckRunsForRef(ghc.ctx, ghc.owner, ghc.repo, ghc.HeadSHA(), opt)
if err != nil {
return nil, errors.Wrapf(err, "failed to get check runs for page %d", opt.Page)
}
Expand Down

0 comments on commit ba60daa

Please sign in to comment.