[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: Josip Sokcevic <sokcevic@google.com>
changes/75/3010275/2
Andrii Shyshkalov 4 years ago committed by LUCI CQ
parent c2d5451de5
commit 899785a9c6

@ -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,

Loading…
Cancel
Save