diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2019-01-11 10:31:34 -0500 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2019-01-11 10:31:34 -0500 |
commit | 104e7374e1be8458e6d2e82478625a7bf8c822ff (patch) | |
tree | 5d74526c8f1ffed26470ca3cf01be317a25c8e58 | |
parent | 806a9b690b54c19bd96e4c0eca507029b5ceb6be (diff) | |
download | korg-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-x | git-patchwork-bot.py | 5 |
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() |