gitlab bot: code reviews: ignore closed MRs
This commit is contained in:
parent
e48b7867fe
commit
dd0fa00e8e
@ -72,8 +72,9 @@ class GitlabBot(object):
|
||||
for merge_request in merge_requests:
|
||||
log.debug("scanning merge request '%s'", merge_request.title)
|
||||
|
||||
if merge_request.state == 'merged':
|
||||
log.info("merge request '%s' is already merged, doing nothing", merge_request.title)
|
||||
if merge_request.state in ['merged', 'closed']:
|
||||
log.info("merge request '%s' is already %s, doing nothing", merge_request.title,
|
||||
merge_request.state)
|
||||
continue
|
||||
|
||||
request_state = _MergeRequestScanningState()
|
||||
|
Loading…
Reference in New Issue
Block a user