| Index: presubmit_canned_checks.py
|
| diff --git a/presubmit_canned_checks.py b/presubmit_canned_checks.py
|
| index bba7737284127cceb244d60255f6bee10c4244c6..a35cf59f2c8ca73b613a9386575fc43ea05546c5 100644
|
| --- a/presubmit_canned_checks.py
|
| +++ b/presubmit_canned_checks.py
|
| @@ -854,7 +854,11 @@ def CheckOwners(input_api, output_api, source_file_filter=None):
|
| if input_api.tbr:
|
| return [output_api.PresubmitNotifyResult(
|
| '--tbr was specified, skipping OWNERS check')]
|
| - if not input_api.change.issue:
|
| + if input_api.change.issue:
|
| + if _GetRietveldIssueProps(input_api, None).get('cq_dry_run', False):
|
| + return [output_api.PresubmitNotifyResult(
|
| + 'This is a CQ dry run, skipping OWNERS check')]
|
| + else:
|
| return [output_api.PresubmitError("OWNERS check failed: this change has "
|
| "no Rietveld issue number, so we can't check it for approvals.")]
|
| needed = 'LGTM from an OWNER'
|
|
|