Merge pull request #1466 from jberry-suse/check_source-default-handler

check_source: make use of ReviewBot request_default_return.
This commit is contained in:
Ludwig Nussel 2018-03-19 16:35:16 +01:00 committed by GitHub
commit d372c5132c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,7 @@ class CheckSource(ReviewBot.ReviewBot):
# ReviewBot options. # ReviewBot options.
self.only_one_action = True self.only_one_action = True
self.request_default_return = True
self.maintbot = MaintenanceChecker(*args, **kwargs) self.maintbot = MaintenanceChecker(*args, **kwargs)
@ -276,10 +277,6 @@ class CheckSource(ReviewBot.ReviewBot):
self.review_messages['declined'] = "This is an incorrect request, it's a linked package to %s/%s" % (linked_project, linked_package) self.review_messages['declined'] = "This is an incorrect request, it's a linked package to %s/%s" % (linked_project, linked_package)
return False return False
def check_action__default(self, request, action):
self.review_messages['accepted'] = 'Unhandled request type %s.' % (action.type)
return True
class CommandLineInterface(ReviewBot.CommandLineInterface): class CommandLineInterface(ReviewBot.CommandLineInterface):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):