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 error evaluating unprotected branches #302

Merged
merged 1 commit into from
Mar 22, 2022

Conversation

bluekeyes
Copy link
Member

A change in go-github v42 (google/go-github#2092) added a new error type when a branch is not protected instead of using the standard 404 error returned by GitHub. This meant our logic failed to detect that protection was missing and reported an error as if the API call failed.

A change in go-github v42 added a new error type when a branch is not
protected instead of using the standard 404 error returned by GitHub.
This meant our logic failed to detect that protection was missing and
reported an error as if the API call failed.
@bluekeyes bluekeyes requested a review from a team March 22, 2022 19:30
@bluekeyes bluekeyes merged commit 0702758 into develop Mar 22, 2022
@bluekeyes bluekeyes deleted the bkeyes/fix-branch-protection branch March 22, 2022 20:25
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.

2 participants