diff --git a/git_cl.py b/git_cl.py index ff66b6895a..349f35e3df 100755 --- a/git_cl.py +++ b/git_cl.py @@ -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. diff --git a/tests/git_cl_test.py b/tests/git_cl_test.py index b7a6b04012..35bf918f62 100755 --- a/tests/git_cl_test.py +++ b/tests/git_cl_test.py @@ -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,