Add tables in email and fix how-do-you-triage url (#334)

This commit is contained in:
calixteman 2019-01-31 13:42:00 +01:00 коммит произвёл Sylvestre Ledru
Родитель 55189d9e7e
Коммит b4034a967a
37 изменённых файлов: 307 добавлений и 103 удалений

Просмотреть файл

@ -17,7 +17,7 @@ class HasRegressionRange(BzCleaner):
return 'has_reg_range'
def template(self):
return 'has_reg_range_email.html'
return 'has_reg_range.html'
def subject(self):
return 'Bugs with has_regression_range=yes but no regression keyword'

Просмотреть файл

@ -17,7 +17,7 @@ class LeaveOpen(BzCleaner):
return 'leave-open'
def template(self):
return 'leave_open_email.html'
return 'leave_open.html'
def subject(self):
return 'Closed bugs with leave-open keyword'

Просмотреть файл

@ -54,7 +54,7 @@ class MismatchPrioTrackBeta(BzCleaner):
def get_autofix_change(self):
return {
'comment': {
'body': 'Changing the priority to p1 as the bug is tracked by a release manager for the current beta.\nSee [How Do You Triage](https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage) for more information'
'body': 'Changing the priority to p1 as the bug is tracked by a release manager for the current beta.\nSee [How Do You Triage](https://mozilla.github.io/bug-handling/triage-bugzilla#how-do-you-triage) for more information'
},
'priority': 'p1',
}

Просмотреть файл

@ -55,7 +55,7 @@ class MismatchPrioTrackESR(BzCleaner):
def get_autofix_change(self):
return {
'comment': {
'body': 'Changing the priority to p1 as the bug is tracked by a release manager for the current esr.\nSee [How Do You Triage](https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage) for more information'
'body': 'Changing the priority to p1 as the bug is tracked by a release manager for the current esr.\nSee [How Do You Triage](https://mozilla.github.io/bug-handling/triage-bugzilla#how-do-you-triage) for more information'
},
'priority': 'p1',
}

Просмотреть файл

@ -54,7 +54,7 @@ class MismatchPrioTrackNightly(BzCleaner):
def get_autofix_change(self):
return {
'comment': {
'body': 'Changing the priority to p2 as the bug is tracked by a release manager for the current nightly.\nSee [How Do You Triage](https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage) for more information'
'body': 'Changing the priority to p2 as the bug is tracked by a release manager for the current nightly.\nSee [How Do You Triage](https://mozilla.github.io/bug-handling/triage-bugzilla#how-do-you-triage) for more information'
},
'priority': 'p2',
}

Просмотреть файл

@ -54,7 +54,7 @@ class MismatchPrioTrackRelease(BzCleaner):
def get_autofix_change(self):
return {
'comment': {
'body': 'Changing the priority to p1 as the bug is tracked by a release manager for the current release.\nSee [How Do You Triage](https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage) for more information'
'body': 'Changing the priority to p1 as the bug is tracked by a release manager for the current release.\nSee [How Do You Triage](https://mozilla.github.io/bug-handling/triage-bugzilla#how-do-you-triage) for more information'
},
'priority': 'p1',
}

Просмотреть файл

@ -28,7 +28,7 @@ class NoAssignee(BzCleaner):
return 'no-assignee'
def template(self):
return 'no_assignee_email.html'
return 'no_assignee.html'
def subject(self):
return 'Bugs with no assignees'

Просмотреть файл

@ -45,7 +45,7 @@ class oldP1Bug(BzCleaner):
def get_autofix_change(self):
return {
'comment': {
'body': 'Moving to p2 because no activity for at least {} weeks.\nSee [How Do You Triage](https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage) for more information'.format(
'body': 'Moving to p2 because no activity for at least {} weeks.\nSee [How Do You Triage](https://mozilla.github.io/bug-handling/triage-bugzilla#how-do-you-triage) for more information'.format(
self.nweeks
)
},

Просмотреть файл

@ -45,7 +45,7 @@ class oldP2Bug(BzCleaner):
def get_autofix_change(self):
return {
'comment': {
'body': 'Moving to p3 because no activity for at least {} year(s).\nSee [How Do You Triage](https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage) for more information'.format(
'body': 'Moving to p3 because no activity for at least {} year(s).\nSee [How Do You Triage](https://mozilla.github.io/bug-handling/triage-bugzilla#how-do-you-triage) for more information'.format(
self.nweeks / 52
)
},

Просмотреть файл

@ -16,7 +16,7 @@ class Stalled(BzCleaner):
return 'stalled'
def template(self):
return 'stalled_email.html'
return 'stalled.html'
def subject(self):
return 'Closed bugs with stalled keyword'

Просмотреть файл

@ -9,6 +9,7 @@ from .p1_no_assignee import P1NoAssignee
from .p2_no_activity import P2NoActivity
from .p2_merge_day import P2MergeDay
class WorkflowMultiNag(MultiNaggers):
def __init__(self):
super(WorkflowMultiNag, self).__init__(

Просмотреть файл

@ -54,7 +54,7 @@ class P2MergeDay(BzCleaner):
def get_autofix_change(self):
return {
'comment': {
'body': 'Set the priority to P1 since today is the merge day.\nSee [How Do You Triage](https://mozilla.github.io/bug-handling/triage-bugzilla) for more information.'
'body': 'Set the priority to P1 since today is the merge day.\nSee [How Do You Triage](https://mozilla.github.io/bug-handling/triage-bugzilla#how-do-you-triage) for more information.'
},
'priority': 'P1',
}

Просмотреть файл

@ -56,7 +56,7 @@ class P3P4P5(BzCleaner):
def get_autofix_change(self):
return {
'comment': {
'body': 'Resolve the bug as INACTIVE since there is no activity for {} months.\nSee [How Do You Triage](https://mozilla.github.io/bug-handling/triage-bugzilla) for more information.'.format(
'body': 'Resolve the bug as INACTIVE since there is no activity for {} months.\nSee [How Do You Triage](https://mozilla.github.io/bug-handling/triage-bugzilla#how-do-you-triage) for more information.'.format(
self.nmonths
)
},

Просмотреть файл

@ -1,7 +1,21 @@
<p>The following bugs are assigned but status=UNCONFIRMED:
<ul>
{% for bugid, summary in bugids -%}
<li><a href="https://bugzilla.mozilla.org/{{ bugid }}">{{ bugid }}</a>: {{ summary|e }}</li>
{% endfor -%}
</ul>
<p>The following {{ plural('bug is', bugids, pword='bugs are') }} assigned but status is UNCONFIRMED:
<table border="1">
<thead>
<tr>
<th>Bug</th><th>Summary</th>
</tr>
</thead>
<tbody>
{% for i, (bugid, summary) in enumerate(bugids) -%}
<tr {% if i % 2 == 0 %}bgcolor="#E0E0E0"{% endif -%}>
<td>
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id={{ bugid }}">{{ bugid }}</a>
</td>
<td>
{{ summary | e }}
</td>
</tr>
{% endfor -%}
</tbody>
</table>
</p>

Просмотреть файл

@ -1,4 +1,4 @@
<p>The following bugs have both regression and feature as keywords:
<p>The following {{ plural('bug has', bugids, pword='bugs have') }} both regression and feature as keywords:
<ul>
{% for bugid in bugids -%}
<li><a href="https://bugzilla.mozilla.org/{{ bugid }}">{{ bugid }}</a></li>

Просмотреть файл

@ -0,0 +1,7 @@
<p>The following {{ plural('bug has', bugids, pword='bugs have') }} has_regression_range=yes but the regression keyword hasn't been set:
<ul>
{% for bugid in bugids -%}
<li><a href="https://bugzilla.mozilla.org/{{ bugid }}">{{ bugid }}</a></li>
{% endfor -%}
</ul>
</p>

Просмотреть файл

@ -1,4 +1,4 @@
<p>The following bugs have has_regression_range=yes but the regression keyword hasn't been set:
<p>The following {{ plural('bug has', bugids, pword='bugs have') }} been closed although the leave-open keyword is there:
<ul>
{% for bugid in bugids -%}
<li><a href="https://bugzilla.mozilla.org/{{ bugid }}">{{ bugid }}</a></li>

Просмотреть файл

@ -1,7 +1,21 @@
<p>The following {{ plural('bug has', bugids, pword='bugs have') }} leave-open keyword and no activity for the last {{ extra['nmonths'] }} months:
<ul>
{% for bugid, summary in bugids -%}
<li><a href="https://bugzilla.mozilla.org/{{ bugid }}">{{ bugid }}</a>: {{ summary | e }}</li>
{% endfor -%}
</ul>
<p>The following {{ plural('bug has', bugids, pword='bugs have') }} leave-open keyword and no activity for the last {{ extra['nmonths'] }} {{ plural('month', bugids) }}:
<table border="1">
<thead>
<tr>
<th>Bug</th><th>Summary</th>
</tr>
</thead>
<tbody>
{% for i, (bugid, summary) in enumerate(bugids) -%}
<tr {% if i % 2 == 0 %}bgcolor="#E0E0E0"{% endif -%}>
<td>
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id={{ bugid }}">{{ bugid }}</a>
</td>
<td>
{{ summary | e }}
</td>
</tr>
{% endfor -%}
</tbody>
</table>
</p>

Просмотреть файл

@ -1,7 +1,21 @@
<p>The following {{ plural('bug has', bugids, pword='bugs have') }} meta keyword, not depending on bugs and no activity for the last {{ extra['nmonths'] }} months:
<ul>
{% for bugid, summary in bugids -%}
<li><a href="https://bugzilla.mozilla.org/{{ bugid }}">{{ bugid }}</a>: {{ summary | e }}</li>
{% endfor -%}
</ul>
<p>The following {{ plural('bug has', bugids, pword='bugs have') }} meta keyword, not depending on bugs and no activity for the last {{ extra['nmonths'] }} {{ plural('month', bugids) }}:
<table border="1">
<thead>
<tr>
<th>Bug</th><th>Summary</th>
</tr>
</thead>
<tbody>
{% for i, (bugid, summary) in enumerate(bugids) -%}
<tr {% if i % 2 == 0 %}bgcolor="#E0E0E0"{% endif -%}>
<td>
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id={{ bugid }}">{{ bugid }}</a>
</td>
<td>
{{ summary | e }}
</td>
</tr>
{% endfor -%}
</tbody>
</table>
</p>

Просмотреть файл

@ -1,7 +1,21 @@
<p>The following bugs have meta keyword but not [meta] in the title:
<ul>
{% for bugid, summary in bugids -%}
<li><a href="https://bugzilla.mozilla.org/{{ bugid }}">{{ bugid }}</a>: {{ summary|e }}</li>
{% endfor -%}
</ul>
<p>The following {{ plural('bug has', bugids, pword='bugs have') }} meta keyword but not [meta] in the title:
<table border="1">
<thead>
<tr>
<th>Bug</th><th>Summary</th>
</tr>
</thead>
<tbody>
{% for i, (bugid, summary) in enumerate(bugids) -%}
<tr {% if i % 2 == 0 %}bgcolor="#E0E0E0"{% endif -%}>
<td>
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id={{ bugid }}">{{ bugid }}</a>
</td>
<td>
{{ summary | e }}
</td>
</tr>
{% endfor -%}
</tbody>
</table>
</p>

Просмотреть файл

@ -1,4 +1,4 @@
<p>The following bugs are tracked but with a bad priority:
<p>The following {{ plural('bug is', bugids, pword='bugs are') }} tracked but with a bad priority:
<ul>
{% for bugid in bugids -%}
<li><a href="https://bugzilla.mozilla.org/{{ bugid }}">{{ bugid }}</a></li>

Просмотреть файл

@ -1,7 +1,21 @@
<p>The following bugs have a missing beta status:
<ul>
{% for bugid, summary in bugids -%}
<li><a href="https://bugzilla.mozilla.org/{{ bugid }}">{{ bugid }}</a>: {{ summary | e }}</li>
{% endfor -%}
</ul>
<p>The following {{ plural('bug has', bugids, pword='bugs have') }} a missing beta status:
<table border="1">
<thead>
<tr>
<th>Bug</th><th>Summary</th>
</tr>
</thead>
<tbody>
{% for i, (bugid, summary) in enumerate(bugids) -%}
<tr {% if i % 2 == 0 %}bgcolor="#E0E0E0"{% endif -%}>
<td>
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id={{ bugid }}">{{ bugid }}</a>
</td>
<td>
{{ summary | e }}
</td>
</tr>
{% endfor -%}
</tbody>
</table>
</p>

Просмотреть файл

@ -1,7 +1,21 @@
<p>The following {{ plural('bug has', bugids, pword='bugs have') }} been reopened although the nightly status flag is still wontfix or fixed:
<ul>
{% for bugid, summary in bugids -%}
<li><a href="https://bugzilla.mozilla.org/{{ bugid }}">{{ bugid }}</a>: {{ summary | e }}</li>
{% endfor -%}
</ul>
<table border="1">
<thead>
<tr>
<th>Bug</th><th>Summary</th>
</tr>
</thead>
<tbody>
{% for i, (bugid, summary) in enumerate(bugids) -%}
<tr {% if i % 2 == 0 %}bgcolor="#E0E0E0"{% endif -%}>
<td>
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id={{ bugid }}">{{ bugid }}</a>
</td>
<td>
{{ summary | e }}
</td>
</tr>
{% endfor -%}
</tbody>
</table>
</p>

Просмотреть файл

Просмотреть файл

@ -1,4 +1,4 @@
<p>The following bugs have no crashes in last {{ extra['nweeks'] }} weeks:
<p>The following {{ plural('bug has', bugids, pword='bugs have') }} no crashes in last {{ extra['nweeks'] }} {{ plural('week', extra['nweeks']) }}:
<ul>
{% for bugid in bugids -%}
<li><a href="https://bugzilla.mozilla.org/{{ bugid }}">{{ bugid }}</a></li>

Просмотреть файл

@ -1,7 +1,21 @@
<p>The following bugs have a p1 priority but no activity activity in last {{ extra['nweeks'] }} weeks:
<ul>
{% for bugid, summary in bugids -%}
<li><a href="https://bugzilla.mozilla.org/{{ bugid }}">{{ bugid }}</a>: {{ summary|e }}</li>
{% endfor -%}
</ul>
<p>The following {{ plural('bug has', bugids, pword='bugs have') }} a p1 priority but no activity in last {{ extra['nweeks'] }} {{ plural('week', extra['nweeks']) }}:
<table border="1">
<thead>
<tr>
<th>Bug</th><th>Summary</th>
</tr>
</thead>
<tbody>
{% for i, (bugid, summary) in enumerate(bugids) -%}
<tr {% if i % 2 == 0 %}bgcolor="#E0E0E0"{% endif -%}>
<td>
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id={{ bugid }}">{{ bugid }}</a>
</td>
<td>
{{ summary | e }}
</td>
</tr>
{% endfor -%}
</tbody>
</table>
</p>

Просмотреть файл

@ -1,7 +1,21 @@
<p>The following bugs have a p2 priority but no activity activity in last {{ extra['nyears'] }} year()s:
<ul>
{% for bugid, summary in bugids -%}
<li><a href="https://bugzilla.mozilla.org/{{ bugid }}">{{ bugid }}</a>: {{ summary|e }}</li>
{% endfor -%}
</ul>
<p>The following {{ plural('bug has', bugids, pword='bugs have') }} a p2 priority but no activity in last {{ extra['nyears'] }} {{ plural('year', extra['nyears']) }}:
<table border="1">
<thead>
<tr>
<th>Bug</th><th>Summary</th>
</tr>
</thead>
<tbody>
{% for i, (bugid, summary) in enumerate(bugids) -%}
<tr {% if i % 2 == 0 %}bgcolor="#E0E0E0"{% endif -%}>
<td>
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id={{ bugid }}">{{ bugid }}</a>
</td>
<td>
{{ summary | e }}
</td>
</tr>
{% endfor -%}
</tbody>
</table>
</p>

Просмотреть файл

@ -1,7 +1,21 @@
<p>The following bugs have only one or two words in the summary:
<ul>
{% for bugid, summary in bugids -%}
<li><a href="https://bugzilla.mozilla.org/{{ bugid }}">{{ bugid }}</a>: {{ summary|e }}</li>
{% endfor -%}
</ul>
<p>The following {{ plural('bug has', bugids, pword='bugs have') }} only one or two words in the summary:
<table border="1">
<thead>
<tr>
<th>Bug</th><th>Summary</th>
</tr>
</thead>
<tbody>
{% for i, (bugid, summary) in enumerate(bugids) -%}
<tr {% if i % 2 == 0 %}bgcolor="#E0E0E0"{% endif -%}>
<td>
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id={{ bugid }}">{{ bugid }}</a>
</td>
<td>
{{ summary | e }}
</td>
</tr>
{% endfor -%}
</tbody>
</table>
</p>

Просмотреть файл

@ -1,7 +1,21 @@
<p>The following bugs are probably a regression and don't have regression keyword:
<ul>
{% for bugid, summary in bugids -%}
<li><a href="https://bugzilla.mozilla.org/{{ bugid }}">{{ bugid }}</a>: {{ summary|e }}</li>
{% endfor -%}
</ul>
<p>The following {{ plural('bug is', bugids, pword='bugs are') }} probably a regression and don't have regression keyword:
<table border="1">
<thead>
<tr>
<th>Bug</th><th>Summary</th>
</tr>
</thead>
<tbody>
{% for i, (bugid, summary) in enumerate(bugids) -%}
<tr {% if i % 2 == 0 %}bgcolor="#E0E0E0"{% endif -%}>
<td>
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id={{ bugid }}">{{ bugid }}</a>
</td>
<td>
{{ summary | e }}
</td>
</tr>
{% endfor -%}
</tbody>
</table>
</p>

Просмотреть файл

@ -1,7 +1,21 @@
<p>The following bugs have a needinfo on the reporter and have no activity in last {{ extra['nweeks'] }} weeks:
<ul>
{% for bugid, summary in bugids -%}
<li><a href="https://bugzilla.mozilla.org/{{ bugid }}">{{ bugid }}</a>: {{ summary|e }}</li>
{% endfor -%}
</ul>
<p>The following {{ plural('bug has', bugids, pword='bugs have') }} a needinfo on the reporter and no activity in last {{ extra['nweeks'] }} {{ plural('week', extra['nweeks']) }}:
<table border="1">
<thead>
<tr>
<th>Bug</th><th>Summary</th>
</tr>
</thead>
<tbody>
{% for i, (bugid, summary) in enumerate(bugids) -%}
<tr {% if i % 2 == 0 %}bgcolor="#E0E0E0"{% endif -%}>
<td>
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id={{ bugid }}">{{ bugid }}</a>
</td>
<td>
{{ summary | e }}
</td>
</tr>
{% endfor -%}
</tbody>
</table>
</p>

Просмотреть файл

@ -1,4 +1,4 @@
<p>The following bugs have been closed although the leave-open keyword is there:
<p>The following bugs have been closed although the stalled keyword is there:
<ul>
{% for bugid in bugids -%}
<li><a href="https://bugzilla.mozilla.org/{{ bugid }}">{{ bugid }}</a></li>

Просмотреть файл

@ -1,7 +1,21 @@
<p>The following bugs haven't the meta keyword but have [meta] in the title:
<ul>
{% for bugid, summary in bugids -%}
<li><a href="https://bugzilla.mozilla.org/{{ bugid }}">{{ bugid }}</a>: {{ summary|e }}</li>
{% endfor -%}
</ul>
<p>The following {{ plural('bug hasn\'t', bugids, pword='bugs haven\'t') }} the meta keyword but {{ plural('has', bugids, pword='have') }} [meta] in the title:
<table border="1">
<thead>
<tr>
<th>Bug</th><th>Summary</th>
</tr>
</thead>
<tbody>
{% for i, (bugid, summary) in enumerate(bugids) -%}
<tr {% if i % 2 == 0 %}bgcolor="#E0E0E0"{% endif -%}>
<td>
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id={{ bugid }}">{{ bugid }}</a>
</td>
<td>
{{ summary | e }}
</td>
</tr>
{% endfor -%}
</tbody>
</table>
</p>

Просмотреть файл

@ -1,4 +1,4 @@
<p>The following bugs have topcrash as keyword but the severity isn't high enough:
<p>The following {{ plural('bug has', bugids, pword='bugs have') }} topcrash as keyword but the severity isn't high enough:
<ul>
{% for bugid in bugids -%}
<li><a href="https://bugzilla.mozilla.org/{{ bugid }}">{{ bugid }}</a></li>

Просмотреть файл

@ -1,4 +1,4 @@
<p>The following bugs are tracked in a release but the bug severity is small:
<p>The following {{ plural('bug is', bugids, pword='bugs are') }} tracked in a release but the bug severity is small:
<ul>
{% for bugid in bugids -%}
<li><a href="https://bugzilla.mozilla.org/{{ bugid }}">{{ bugid }}</a></li>

Просмотреть файл

@ -1,7 +1,21 @@
<p>The following bugs does not affect the release but affect beta or nightly without the regression keyword:
<ul>
{% for bugid, summary in bugids -%}
<li><a href="https://bugzilla.mozilla.org/{{ bugid }}">{{ bugid }}</a>: {{ summary|e }}</li>
{% endfor -%}
</ul>
<p>The following {{ plural('bug doesn\'t', bugids, pword='bugs don\'t') }} affect the release but {{ plural('affects', bugids, pword='affect') }} beta or nightly without the regression keyword:
<table border="1">
<thead>
<tr>
<th>Bug</th><th>Summary</th>
</tr>
</thead>
<tbody>
{% for i, (bugid, summary) in enumerate(bugids) -%}
<tr {% if i % 2 == 0 %}bgcolor="#E0E0E0"{% endif -%}>
<td>
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id={{ bugid }}">{{ bugid }}</a>
</td>
<td>
{{ summary | e }}
</td>
</tr>
{% endfor -%}
</tbody>
</table>
</p>

Просмотреть файл

@ -1,7 +1,21 @@
<p>The following bugs are in untriagged with an important severity
<ul>
{% for bugid, summary in bugids -%}
<li><a href="https://bugzilla.mozilla.org/{{ bugid }}">{{ bugid }}</a>: {{ summary|e }}</li>
{% endfor -%}
</ul>
<p>The following {{ plural('bug is', bugids, pword='bugs are') }} in untriagged with an important severity:
<table border="1">
<thead>
<tr>
<th>Bug</th><th>Summary</th>
</tr>
</thead>
<tbody>
{% for i, (bugid, summary) in enumerate(bugids) -%}
<tr {% if i % 2 == 0 %}bgcolor="#E0E0E0"{% endif -%}>
<td>
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id={{ bugid }}">{{ bugid }}</a>
</td>
<td>
{{ summary | e }}
</td>
</tr>
{% endfor -%}
</tbody>
</table>
</p>

Просмотреть файл

@ -1,4 +1,4 @@
<p>The following bugs have Version set but not status_firefox:
<p>The following {{ plural('bug has', bugids, pword='bugs have') }} Version set but not status_firefox:
<ul>
{% for bugid in bugids -%}
<li><a href="https://bugzilla.mozilla.org/{{ bugid }}">{{ bugid }}</a></li>