Skip MR updates for GitLab

This commit is contained in:
Morgan McMillian 2022-08-21 09:15:33 -07:00
parent 44ccc9327c
commit cb53728bcd

View file

@ -232,7 +232,10 @@ def gl_mr_event(gateway, data):
else: else:
action = "?" action = "?"
body = f"[{project}] {username} {action} merge request !{oid}: {title}\n" body = f"[{project}] {username} {action} merge request !{oid}: {title}\n"
if action in ["open", "reopen"]:
body += f"{description}" body += f"{description}"
elif action == "update":
return
logging.debug(body) logging.debug(body)
mb_url = config["gitlab_gateway"] mb_url = config["gitlab_gateway"]