Bug 1392488 - Skip commit created by try fuzzy for sensible commit title. r?catlee
MozReview-Commit-ID: 2XS42dAWDiz
--- a/status/generators.py
+++ b/status/generators.py
@@ -45,16 +45,20 @@ Summary:
return msgdict
def getSensibleCommitTitle(titles):
"""
Returns the first non-trychooser title with unnecessary cruft removed.
"""
for title in titles:
+ # Skip try fuzzy commit.
+ if title.startswith("Pushed via 'mach try fuzzy'"):
+ continue
+
# Remove trychooser syntax.
title = re.sub(r'\btry: .*', '', title)
# Remove MQ cruft.
title = re.sub(r'^(imported patch|\[mq\]:) ', '', title)
# Remove review, feedback, etc. annotations.
title = re.sub(r'\b(r|sr|f|a)[=\?].*', '', title)