Module: tools Branch: master Commit: 7c516c48a1abfb30b197ed855ef9074b8f00058b URL: https://source.winehq.org/git/tools.git/?a=commit;h=7c516c48a1abfb30b197ed85...
Author: Jeremy White jwhite@codeweavers.com Date: Wed Apr 27 14:06:05 2022 -0500
Send no email for merged requests.
This avoids sending a v2 that duplicates the original submission with only signed off by lines.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
gitlab/gitlab-to-mail/gitlabtomail.py | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/gitlab/gitlab-to-mail/gitlabtomail.py b/gitlab/gitlab-to-mail/gitlabtomail.py index fb51f71..250f87a 100755 --- a/gitlab/gitlab-to-mail/gitlabtomail.py +++ b/gitlab/gitlab-to-mail/gitlabtomail.py @@ -546,6 +546,10 @@ def main(): iid = mr['iid']
log(f"MR{iid} updated - processing") + if mr['merged_at']: + log(f"MR{iid} merged - skipping") + continue +
# We jump through some hoops because the fetch_mr_patches # entry point on GitLab does not allow one