Add toolbox as an exception for license check
BUG=b/221096364
TEST=manual
RELEASE_NOTES=None
Change-Id: I650b1e34263a04fbc399fca6f2d471a29c893f95
Reviewed-on: https://cos-review.googlesource.com/c/cos/repohooks/+/29726
Reviewed-by: Roy Yang <royyang@google.com>
Tested-by: Rayan Dasoriya <dasoriya@google.com>
diff --git a/pre-upload.py b/pre-upload.py
index 229b718..cf67632 100755
--- a/pre-upload.py
+++ b/pre-upload.py
@@ -108,6 +108,7 @@
r'^(.*/)?OWNERS(\..*)?$',
r'^(.*/)?README(\..*)?$',
r'^(.*/)?LICENSE(\..*)?$',
+ r'^(.*/)?toolbox$',
]
_CONFIG_FILE = 'PRESUBMIT.cfg'
@@ -796,7 +797,8 @@
'cos-patch: security-critical\n'
'cos-patch: bug\n'
'cos-patch: lts-refresh\n'
- 'For valid values, please check go/cos-lts-policy-dev-guide#commit-message-tagging.')
+ 'For valid values, please check \
+ go/cos-lts-policy-dev-guide#commit-message-tagging.')
return HookFailure(msg)
# Check that 'cos-patch' is in the same paragraph as Change-Id.