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

Modify github approval verification logic #29

Merged
merged 2 commits into from Feb 12, 2018
Merged

Conversation

ryanmcnamara
Copy link
Contributor

If reviews are not required for a repo, then only consider review status
as failed if someone has explicitly disapproved the repo

Fixes #27

If reviews are not required for a repo, then only consider review status
as failed if someone has explicitly disapproved the repo

Fixes #27
@dsw2127
Copy link

dsw2127 commented Feb 7, 2018

Is there any update on this? Would love to see this fix in bulldozer!

Copy link
Member

@bluekeyes bluekeyes left a comment

Choose a reason for hiding this comment

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

I think I've convinced myself that this is correct, but we should make sure to test thoroughly in staging after this merges.

github/github.go Outdated
logger.WithFields(logrus.Fields{
"repo": repo.GetFullName(),
"pr": pr.GetNumber(),
}).Info("Pull request has 0 reviewers and 0 reviews, considering status true")
}).Info("Review not required and not one has disapproved, considering status true")
Copy link
Member

Choose a reason for hiding this comment

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

and no one has disapproved

@ajlake ajlake merged commit 467be24 into master Feb 12, 2018
@ajlake ajlake deleted the rm/github-reviews branch February 12, 2018 20:12
ajlake added a commit that referenced this pull request Feb 12, 2018
@bluekeyes bluekeyes mentioned this pull request Feb 12, 2018
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.

None yet

4 participants