aboutsummaryrefslogtreecommitdiffhomepage
path: root/PRESUBMIT.py
diff options
context:
space:
mode:
authorGravatar rmistry <rmistry@google.com>2015-03-12 09:48:10 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-03-12 09:48:10 -0700
commitf91b717a996553a4ed65b8bf805e56549cd6fde3 (patch)
tree4a01989d43690d93c20c04d34ab042b1e3fd2d96 /PRESUBMIT.py
parenta10ea431cf9e283696bab1cac1457d4fa92f9c06 (diff)
Ignore public API checks if COMMIT=false is in the description
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r--PRESUBMIT.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index d62249a605..ae5a218316 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -254,6 +254,11 @@ def _CheckLGTMsForPublicAPI(input_api, output_api):
# It is a revert CL, ignore the public api owners check.
return results
+ if re.search(r'^COMMIT=false$', issue_properties['description'], re.M):
+ # Ignore public api owners check for COMMIT=false CLs since they are not
+ # going to be committed.
+ return results
+
match = re.search(r'^TBR=(.*)$', issue_properties['description'], re.M)
if match:
tbr_entries = match.group(1).strip().split(',')