gerrit: todo: switch to attention set
Replace our ad-hoc queries with the new attenion set logic.
BUG=None
TEST=`gerrit todo` matches the dashboard
Change-Id: I9c5e50cef410b83b6fd00a89a95d276e9ec61c31
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/2679280
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Alex Klein <saklein@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Auto-Submit: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Alex Klein <saklein@chromium.org>
diff --git a/scripts/gerrit.py b/scripts/gerrit.py
index 6e65ceb..d3790ad 100644
--- a/scripts/gerrit.py
+++ b/scripts/gerrit.py
@@ -294,9 +294,7 @@
@staticmethod
def __call__(opts):
"""Implement the action."""
- cls = FilteredQuery(opts, ('reviewer:self status:open NOT owner:self '
- 'label:Code-Review=0,user=self '
- 'NOT label:Verified<0'))
+ cls = FilteredQuery(opts, 'attention:self')
PrintCls(opts, cls)