Эх сурвалжийг харах

[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>
Andrii Shyshkalov 4 жил өмнө
parent
commit
899785a9c6
2 өөрчлөгдсөн 4 нэмэгдсэн , 3 устгасан
  1. 3 2
      git_cl.py
  2. 1 1
      tests/git_cl_test.py

+ 3 - 2
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.

+ 1 - 1
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,