Bug 1392488 - Skip commit created by try fuzzy for sensible commit title. r?catlee
authorXidorn Quan <me@upsuper.org>
Mon, 04 Sep 2017 11:13:10 +1000 (2017-09-04)
changeset 5226 45e90cfbfd5ed06b4f34b37f54080ab4099dd3e9
parent 5214 ca9814bb3b71d0d4fb0208bf63cd7202caf1c2b4
child 5230 7c3e7084f7fa774f721adeb12d3e76557eb141bb
child 5236 994ad65b2abdbdb881cd6874d102d50d8a3d75e3
push id4430
push usercatlee@mozilla.com
push dateWed, 13 Sep 2017 13:13:00 +0000 (2017-09-13)
reviewerscatlee
bugs1392488
Bug 1392488 - Skip commit created by try fuzzy for sensible commit title. r?catlee MozReview-Commit-ID: 2XS42dAWDiz
status/generators.py
--- 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)