Template:BugBotRule: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(css)
(css)
Line 16: Line 16:
<table style="vertical-align: top; border-collapse: collapse; text-align: left; width: calc(100% - 20px); margin: 0 10px;">
<table style="vertical-align: top; border-collapse: collapse; text-align: left; width: calc(100% - 20px); margin: 0 10px;">
   <tr>
   <tr>
     <th style="border: 1px solid lightskyblue; background-color: lightskyblue; width: 8em; padding: 0 0.5em;">Purpose</th>
     <th style="border: 1px solid lavender; background-color: lavender; width: 8em; padding: 0 0.5em;">Purpose</th>
     <td style="border: 1px solid lightskyblue; padding: 0 0.5em;">{{{ Purpose }}}</td>
     <td style="border: 1px solid lavender; padding: 0 0.5em;">{{{ Purpose }}}</td>
   </tr>
   </tr>
   <tr>
   <tr>
     <th style="border: 1px solid lightskyblue; 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 lightskyblue; padding: 0 0.5em;">{{{ Action }}}</td>
     <td style="border: 1px solid lavender; padding: 0 0.5em;">{{{ Action }}}</td>
   </tr>
   </tr>
   <tr>
   <tr>
     <th style="border: 1px solid lightskyblue; background-color: aliceblue; padding: 0 0.5em;">Example</th>
     <th style="border: 1px solid lavender; background-color: aliceblue; padding: 0 0.5em;">Example</th>
     <td style="border: 1px solid lightskyblue; padding: 0 0.5em;">[https://bugzil.la/{{{Example}}} Bug {{{Example}}}]</td>
     <td style="border: 1px solid lavender; padding: 0 0.5em;">[https://bugzil.la/{{{Example}}} Bug {{{Example}}}]</td>
   </tr>
   </tr>
   <tr>
   <tr>
     <th style="border: 1px solid lightskyblue; padding: 0 0.5em;">Code</th>
     <th style="border: 1px solid lavender; padding: 0 0.5em;">Code</th>
     <td style="border: 1px solid lightskyblue; padding: 0 0.5em;"><code>[https://github.com/mozilla/relman-auto-nag/blob/master/auto_nag/scripts/{{{ Source }}} {{{ Source }}}]</code></td>
     <td style="border: 1px solid lavender; padding: 0 0.5em;"><code>[https://github.com/mozilla/relman-auto-nag/blob/master/auto_nag/scripts/{{{ Source }}} {{{ Source }}}]</code></td>
   </tr>
   </tr>
{{#if:{{{Note|}}}|
{{#if:{{{Note|}}}|
   <tr>
   <tr>
     <th style="border: 1px solid lightskyblue; background-color: lightyellow; padding: 0 0.5em;">Note</th>
     <th style="border: 1px solid lavender; background-color: lightyellow; padding: 0 0.5em;">Note</th>
     <td style="border: 1px solid lightskyblue; padding: 0 0.5em;">{{{ Note }}}</td>
     <td style="border: 1px solid lavender; padding: 0 0.5em;">{{{ Note }}}</td>
   </tr>
   </tr>
}}
}}
</table>
</table>
</includeonly>
</includeonly>

Revision as of 18:05, 12 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.