diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2019-05-22 09:15:11 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2019-05-22 09:15:11 -0400 |
commit | 35564bad48b15a50aaea34c6be3f310639b2f333 (patch) | |
tree | 3d4326392131a9e9f49d9dc922d67ef4274f5c53 | |
parent | 40ccde6b0dcffc74ad5f4a90e65d4c970c17d650 (diff) | |
download | korg-helpers-35564bad48b15a50aaea34c6be3f310639b2f333.tar.gz |
Be more inclusive when stripping prefixes
If we only have [\w+], then we don't match prefixes like [for-next,v2],
and therefore miss series we can auto-supersede. Do a lazy wildcard
match instead.
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rwxr-xr-x | git-patchwork-bot.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-patchwork-bot.py b/git-patchwork-bot.py index ddf1176..c646efe 100755 --- a/git-patchwork-bot.py +++ b/git-patchwork-bot.py @@ -742,7 +742,7 @@ def housekeeping(rm, settings, nomail, dryrun): # 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) + s_name = re.sub(r'^\[\.*?\]\s*', '', s_name) ver = entry.get('version') subm_id = entry.get('submitter').get('id') |