Commit 9be098b5 by Corentin Wallez Committed by Commit Bot

PRESUBMIT.py: Don't require "Bug:" for autoroller CLs.

BUG=angleproject:3659 Change-Id: I29d77939953e3661ea979f8f7a9f44566079e567 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1692881 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 1cde0eab
...@@ -20,6 +20,11 @@ def _CheckChangeHasBugField(input_api, output_api): ...@@ -20,6 +20,11 @@ def _CheckChangeHasBugField(input_api, output_api):
"""Requires that the changelist have a Bug: field.""" """Requires that the changelist have a Bug: field."""
bugs = input_api.change.BugsFromDescription() bugs = input_api.change.BugsFromDescription()
if not bugs: if not bugs:
# Autorollers don't always add Bug: tags, especially for external projects that don't use
# Monorail. Detect Autoroller CLs using the committer email address.
if 'angle-autoroll@' in input_api.change.author_email:
return []
return [ return [
output_api.PresubmitError( output_api.PresubmitError(
'If this change has an associated bug, add Bug: angleproject:[bug number].') 'If this change has an associated bug, add Bug: angleproject:[bug number].')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment