ソースを参照

gclient_eval.py: Add "new_usages_require_review" to DEPS file schema

Bug: 365797506
Change-Id: I332e169fd4e5756d92fd3acc2b27eef4c647cda7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5920788
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Andrew Grieve 10 ヶ月 前
コミット
da85282643
1 ファイル変更5 行追加0 行削除
  1. 5 0
      gclient_eval.py

+ 5 - 0
gclient_eval.py

@@ -244,6 +244,11 @@ _GCLIENT_SCHEMA = schema.Schema(
         # Also see 'skip_child_includes' and 'specific_include_rules'.
         # Also see 'skip_child_includes' and 'specific_include_rules'.
         schema.Optional('include_rules'): [schema.Optional(str)],
         schema.Optional('include_rules'): [schema.Optional(str)],
 
 
+        # Commits that add include_rules entries on the paths with this set
+        # will require an OWNERS review from them.
+        schema.Optional('new_usages_require_review'):
+        bool,
+
         # Optionally discards rules from parent directories, similar to
         # Optionally discards rules from parent directories, similar to
         # "noparent" in OWNERS files. For example, if
         # "noparent" in OWNERS files. For example, if
         # //base/allocator/partition_allocator has "noparent = True" then it
         # //base/allocator/partition_allocator has "noparent = True" then it