You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suggestion, maybe something to consider for a follow-up (as it could apply to multiple locations in the codebase). Using `github.CheckResponse(...)` to validate the response for errors (check things like unauthorised, rate-limited, etc.)
checkRuns, resp, err := c.client.Checks.ListCheckRunsForRef(ctx, owner, repoName, ref, opt)
if err := github.CheckResponse(resp.Response); err != nil {
// process the error(s)
}
Originally posted by @jvrplmlmn in #21 (comment)
Here are the docs for this
The text was updated successfully, but these errors were encountered: