Template:BugBotRule: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(example is optional)
m (action if/else)
Line 19: Line 19:
     <td style="border: 1px solid lavender; padding: 0 0.5em;">{{{ Purpose }}}</td>
     <td style="border: 1px solid lavender; padding: 0 0.5em;">{{{ Purpose }}}</td>
   </tr>
   </tr>
{{#if:{{{Action|}}}|
   <tr>
   <tr>
     <th style="border: 1px solid lavender; background-color: greenyellow; padding: 0 0.5em;">Action</th>
     <th style="border: 1px solid lavender; background-color: greenyellow; padding: 0 0.5em;">Action</th>
     <td style="border: 1px solid lavender; padding: 0 0.5em;">{{{ Action }}}</td>
     <td style="border: 1px solid lavender; padding: 0 0.5em;">{{{ Action }}}</td>
   </tr>
   </tr>
| <tr>
    <th style="border: 1px solid lavender; background-color: greenyellow; padding: 0 0.5em;">Action</th>
    <td style="border: 1px solid lavender; padding: 0 0.5em;">No action yet.</td>
  </tr>
}}
{{#if:{{{Example|}}}|
{{#if:{{{Example|}}}|
   <tr>
   <tr>

Revision as of 11:45, 16 April 2019

This is the "AutonagRule" template. It should be called in the following format:

{{AutonagRule
  | Rule name = Bug assigned but marked as <code>UNCONFIRMED</code>
  | Purpose   = Mitigate an issue in Bugzilla (bugs reported by new users are not tagged as <code>NEW</code>)
  | Action    = Change the status from unconfirmed to assigned if there is an assignee
  | Example   = 1495908
  | Source    = assignee_but_unconfirmed.py 
  | Note      = optional parameter, adds an explanation line 
}}

Edit the page to see the template text.