1,478 bytes added ,  12 April 2019
port some more rules to template
(wip)
(port some more rules to template)
Line 25: Line 25:
}}
}}
{{AutonagRule
{{AutonagRule
   | Rule name = Remove <code>leave-open</code> keyword on closed bug
   | Rule name = Remove <code>leave-open</code> keyword on closed bug
   | Purpose  = Clean up a mismatch in metadata
   | Purpose  = Clean up a mismatch in metadata
   | Action    = If a bug is closed but the <code>leave-open</code> keyword is still set, remove it
   | Action    = If a bug is closed but the <code>leave-open</code> keyword is still set, remove it
   | Example  = 1382185
   | Example  = 1382185
   | Source    = leave_open.py  
   | Source    = leave_open.py  
}}
{{AutonagRule
  | Rule name = [meta] in title but not in keywords
  | Purpose  = Improve metedata quality
  | Action    = Adds the <code>meta</code> keyword if the bug title starts by [META]
  | Example  = 1435799
  | Source    = meta_summary_missing.py
}}
{{AutonagRule
  | Rule name = Update Firefox Status flags for bugs reopened during Nightly cycle
  | Purpose  = Avoids potential issues for sheriffs and release managers
  | Action    = Set <code>firefox-status</code> flag back from ''fixed'' to ''affected''
  | Example  = 1495962
  | Source    = nightly_reopened.py
}}
{{AutonagRule
  | Rule name = Bug with no assignee but a patch landed
  | Purpose  = Attribute unassigned bug to the developer that fixed it
  | Action    = The ASSIGNEE field on the bug is changed from nobody@mozilla.org to the author of the patch that landed in mozilla-central
  | Example  = 1514338
  | Source    = no_assignee.py
}}
{{AutonagRule
  | Rule name = Close crash bugs with no crashes over 12 weeks
  | Purpose  = Reduce the backlog of bugs to check for Release Managers
  | Action    = Crash bugs without any crash reports for more than 12 weeks
  | Example  = 1470864
  | Source    = no_crashes.py
}}
{{AutonagRule
  | Rule name = Remove <code>stalled</code> keyword on closed bugs
  | Purpose  = Fix inconsistency between metadata and bug status
  | Action    = If a bug is marked as <code>FIXED</code> and also has a <code>stalled</code keyword set, the keyword is removed
  | Example  = 1491624
  | Source    = stalled.py
}}
{{AutonagRule
  | Rule name = Has meta keyword but not [meta] in the bug title
  | Purpose  = Having [meta] in the bug title helps with quick search results
  | Action    = If a bug has the meta keyword set, [meta] is added to the bug title
  | Example  = 1257692
  | Source    = summary_meta_missing.py
}}
{{AutonagRule
  | Rule name = Set a Firefox status flag for beta if there is one for nightly and release
  | Purpose  = Fix inconsistency in Firefox status flags that can lead to a bug going undetected by Release Managers during the beta cycle
  | Action    = If a status exist for Firefox N-1 and for Firefox N+1, guess a value for Firefox N
  | Example  = 1500273
  | Source    = missing_beta_status.py
}}
{{AutonagRule
  | Rule name = Increase priority of bugs tracked y Release Managers
  | Purpose  = Priotitizes bugs needing an action for shipping quality software
  | Action    = If a bug is tracked by a Release Manager, update the priority (P2 for nightly, P1 for the rest)
  | Example  = 1515946,1508277,1512493
  | Source    = mismatch_priority_tracking_release.py
  | Note      = There are multiple files mismatch-priority-tracking-*.py, one per channel
}}
}}


|-
| meta_summary_missing.py
| Has [meta] in the description but not the keyword
| Keyword helps a lot in search
| {{Bug|1435799}}
|-
| nightly_reopened.py
| If a bug is reopened in nightly, the status flags aren’t automatically updated
| Avoids some potential issues for sheriff and release managers
| {{bug|1495962}}
|-
| no_assignee.py
| no assignees and a patch which landed in m-c
| Bugs without assignee is making our life harder
| {{bug|1514338}}
|-
| no_crashes.py
| Crash bugs without any crash reports for more than 12 weeks
| Mitigate the backlog
| {{bug|1470864}}
|-
| stalled.py
| But closed but has the stalled keyword
| If the bug is closed, it isn't stalled anymore
| {{bug|1491624}}
|-
| summary_meta_missing.py
| Has the meta keyword but [meta] is missing in the description
| Having [meta] in the summary help with search of bugs
| {{bug|1257692}}
|-
| missing_beta_status.py
| Status flags are set for nightly and release but not for beta
| Inconsistency in status flags
| {{bug|1500273}}
|-
| mismatch-priority-tracking-*.py
| If a bug is tracked by a release manager, update the priority (P2 for nightly, P1 for the rest)
| Show that it is important
| {{bug|1515946}} <br> {{bug|1508277}} <br> {{bug|1512493}}
|-
| regression.py  
| regression.py  
| Bug without the regression keyword
| Bug without the regression keyword
Confirmed users
1,321

edits