diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-30 20:46:16 -0200 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2009-02-15 10:14:21 +1100 |
commit | e4d886928c31037555fb457a4f7a08c8836b131f (patch) | |
tree | 792f41d93fc518253559115260c0c3f2c7377dcd | |
parent | ea39a9952e3fa647ebcb4bf16981ce941ec5236a (diff) | |
download | patchwork-e4d886928c31037555fb457a4f7a08c8836b131f.tar patchwork-e4d886928c31037555fb457a4f7a08c8836b131f.tar.gz |
Add extra patch meta tags (Tested/Reviewed/Nacked-by)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rw-r--r-- | apps/patchwork/models.py | 2 | ||||
-rw-r--r-- | apps/patchwork/templatetags/syntax.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/apps/patchwork/models.py b/apps/patchwork/models.py index 793cb4e..db1774e 100644 --- a/apps/patchwork/models.py +++ b/apps/patchwork/models.py @@ -288,7 +288,7 @@ class Comment(models.Model): headers = models.TextField(blank = True) content = models.TextField() - response_re = re.compile('^(Acked|Signed-off|Nacked)-by: .*$', re.M) + response_re = re.compile('^([Tt]ested|[Rr]eviewed|[Aa]cked|[Ss]igned-off|[Nn]acked)-by: .*$', re.M) def patch_responses(self): return ''.join([ match.group(0) + '\n' for match in \ diff --git a/apps/patchwork/templatetags/syntax.py b/apps/patchwork/templatetags/syntax.py index a538062..7b8c985 100644 --- a/apps/patchwork/templatetags/syntax.py +++ b/apps/patchwork/templatetags/syntax.py @@ -41,6 +41,8 @@ _patch_chunk_re = \ _comment_span_res = map(_compile, [ ('^\s*Signed-off-by: .*$', 'signed-off-by'), ('^\s*Acked-by: .*$', 'acked-by'), + ('^\s*Tested-by: .*$', 'tested-by'), + ('^\s*Reviewed-by: .*$', 'reviewed-by'), ('^\s*From: .*$', 'from'), ('^\s*>.*$', 'quote'), ]) |