aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2019-01-11 10:31:34 -0500
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2019-01-11 10:31:34 -0500
commit104e7374e1be8458e6d2e82478625a7bf8c822ff (patch)
tree5d74526c8f1ffed26470ca3cf01be317a25c8e58
parent806a9b690b54c19bd96e4c0eca507029b5ceb6be (diff)
downloadkorg-helpers-104e7374e1be8458e6d2e82478625a7bf8c822ff.tar.gz
Strip leading [prefixes] from series names
Usually, patchwork will strip those if it recognizes them as prefixes, but it will miss some of them. Be more agressive than patchwork here. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rwxr-xr-xgit-patchwork-bot.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/git-patchwork-bot.py b/git-patchwork-bot.py
index 9d59437..ddf1176 100755
--- a/git-patchwork-bot.py
+++ b/git-patchwork-bot.py
@@ -739,6 +739,11 @@ def housekeeping(rm, settings, nomail, dryrun):
if s_name is None:
# Ignoring this one, because we must have a name
continue
+
+ # Remove any [foo] from the front, for best matching.
+ # Usually, patchwork strips these, but not always.
+ s_name = re.sub(r'^\[\w+\]\s*', '', s_name)
+
ver = entry.get('version')
subm_id = entry.get('submitter').get('id')
patches = list()