Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix an issue that prevents check from succeeding for external authors #65

Merged
merged 1 commit into from
Jan 27, 2023

Conversation

zmb3
Copy link
Contributor

@zmb3 zmb3 commented Jan 26, 2023

The Go GitHub API that we use returns an error for repsonses with an HTTP status code not in the 200-299 range. This caused us to return an error rather than assume the user is an external author.

I noticed this when reviewing the logs of a recent run: https://github.com/gravitational/teleport/actions/runs/4018334113/jobs/6903826941

The Go GitHub API that we use returns an error for repsonses with
an HTTP status code not in the 200-299 range. This caused us to
return an error rather than assume the user is an external author.
@zmb3 zmb3 requested review from a team January 26, 2023 21:57
Copy link
Contributor

@jentfoo jentfoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, but one question

bot/internal/github/github.go Show resolved Hide resolved
@zmb3 zmb3 merged commit 3f5d9f1 into main Jan 27, 2023
@zmb3 zmb3 deleted the zmb3/fix-github-error-handling branch January 27, 2023 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants