Merge pull request #1462 from jberry-suse/check_source_in_factory-repo-checker-allow

check_source_in_factory: allow repo-checker reviews.
This commit is contained in:
Ludwig Nussel 2018-03-19 16:14:24 +01:00 committed by GitHub
commit d2cec14e17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,9 +181,15 @@ class FactorySourceChecker(ReviewBot.ReviewBot):
self.logger.error("%s in state review but no reviews?", srref(req.reqid))
return False
for r in req.reviews:
if r.by_project and r.state == 'new' and r.by_project.startswith('openSUSE:Factory:Staging:'):
self.logger.info("%s review by %s ok", srref(req.reqid), r.by_project)
continue
if r.state == 'new':
if r.by_project and r.by_project.startswith('openSUSE:Factory:Staging:'):
self.logger.info("%s review by %s ok", srref(req.reqid), r.by_project)
continue
if r.by_user == 'repo-checker':
self.logger.info('%s review by %s ok', srref(req.reqid), r.by_user)
continue
if r.state != 'accepted':
if r.by_user:
self.logger.info("%s waiting for review by %s", srref(req.reqid), r.by_user)