Commit 899785a9 authored by Andrii Shyshkalov's avatar Andrii Shyshkalov Committed by LUCI CQ

[cv][git-cl] treat autogenerated CV comments just like CQ.

R=ehmaldonado

Change-Id: If06db13e41a07786aa5a244e95aa3911d9367d6d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3010275
Auto-Submit: Andrii Shyshkalov <tandrii@google.com>
Commit-Queue: Josip Sokcevic <sokcevic@google.com>
Reviewed-by: 's avatarJosip Sokcevic <sokcevic@google.com>
parent c2d5451d
......@@ -1804,8 +1804,9 @@ class Changelist(object):
messages = sorted(data.get('messages', []), key=lambda m: m.get('date'))
while messages:
m = messages.pop()
if m.get('tag', '').startswith('autogenerated:cq:'):
# Ignore replies from CQ.
if (m.get('tag', '').startswith('autogenerated:cq') or
m.get('tag', '').startswith('autogenerated:cv')):
# Ignore replies from LUCI CV/CQ.
continue
if m.get('author', {}).get('_account_id') == owner:
# Most recent message was by owner.
......
......@@ -2694,7 +2694,7 @@ class TestGitCl(unittest.TestCase):
u'date': u'2017-03-15 20:08:45.000000000',
u'id': u'f5a6c25ecbd3b3b54a43ae418ed97eff046dc50b',
u'message': u'Patch Set 1:\n\nDry run: CQ is trying the patch...',
u'tag': u'autogenerated:cq:dry-run'
u'tag': u'autogenerated:cv:dry-run'
},
{
u'_revision_number': 2,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment