From 65db2c4b4f0ae72393e1af612a6d10318b151d9f Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Sat, 14 Aug 2021 08:31:10 +0100 Subject: [PATCH] Match syntax used by Marge-Bot See https://gitlab.gnome.org/GNOME/gnome-initial-setup/-/commit/b12f252eae4c1f7be6e3de336458e538f9707a76.patch for an example. --- gitlab-changelog.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gitlab-changelog.py b/gitlab-changelog.py index a1c00f5..7e5d11b 100755 --- a/gitlab-changelog.py +++ b/gitlab-changelog.py @@ -100,6 +100,11 @@ def get_issues_and_merge_requests(commit, gl_project_name): if matches: issues.add(int(matches.group(1))) + # Part-of: + matches = re.search(r'^Part-of: $'.format(gl_project_name), line) + if matches: + merge_requests.add(int(matches.group(1))) + # https://gitlab.gnome.org/GNOME/glib/issues/1620 # https://gitlab.gnome.org/GNOME/glib/merge_requests/554 prefix = 'https://gitlab.gnome.org/{}/'.format(gl_project_name) -- GitLab