check_tags_in_requests: replace check_action__default() with built-in.

This commit is contained in:
Jimmy Berry 2018-04-16 18:28:28 -05:00
parent 202d139743
commit f751f4768a

View File

@ -67,6 +67,7 @@ See also https://en.opensuse.org/openSUSE:Packaging_Patches_guidelines#Current_s
Note that not all of the tags listed there are necessarily supported Note that not all of the tags listed there are necessarily supported
by OBS on which this bot relies. by OBS on which this bot relies.
""" """
self.request_default_return = True
def isNewPackage(self, tgt_project, tgt_package): def isNewPackage(self, tgt_project, tgt_package):
try: try:
@ -143,13 +144,6 @@ by OBS on which this bot relies.
def check_action_maintenance_release(self, req, a): def check_action_maintenance_release(self, req, a):
return self.checkTagInRequest(req, a) return self.checkTagInRequest(req, a)
def check_action__default(self, req, a):
# accept all other requests
self.logger.debug("auto accept request type %s"%a.type)
return True
class CommandLineInterface(ReviewBot.CommandLineInterface): class CommandLineInterface(ReviewBot.CommandLineInterface):