gitlab bot: don't bother scanning merged requests
This commit is contained in:
parent
5fc2c0c7f6
commit
98bea53906
@ -72,9 +72,9 @@ class GitlabBot(object):
|
||||
for merge_request in merge_requests:
|
||||
log.debug("scanning merge request '%s'", merge_request.title)
|
||||
|
||||
# moved this method into here
|
||||
# # check to see if the merge request needs a reviewer or a merge
|
||||
# approve_count, approvers, send_reset = self.get_code_review_acceptance_count(merge_request)
|
||||
if merge_request.state == 'merged':
|
||||
log.info("merge request '%s' is already merged, doing nothing", merge_request.title)
|
||||
continue
|
||||
|
||||
request_state = _MergeRequestScanningState()
|
||||
notes = sorted(self.client.project_mergerequest_notes.list(project_id=merge_request.project_id,
|
||||
|
Loading…
Reference in New Issue
Block a user