Add AUTHORS file and presubmit check

Change-Id: Id5407ff374ddd1c0b8bf66acda0195c77ab796a9
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1971417
Commit-Queue: Benedikt Meurer <[email protected]>
Reviewed-by: Benedikt Meurer <[email protected]>
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 044d37f..cd350d2 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -40,6 +40,11 @@
     [ 'OWNERS' ],
 ]
 
+# Bypass the AUTHORS check for these accounts.
+_KNOWN_ROBOTS = set('%s-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com' % s for s in ('devtools-ci')) | set(
+    '%[email protected]' % s for s in ('findit-for-me',))
+
+
 def _CheckChangesAreExclusiveToDirectory(input_api, output_api):
     if input_api.change.DISABLE_THIRD_PARTY_CHECK != None:
         return []
@@ -214,6 +219,9 @@
 def _CommonChecks(input_api, output_api):
     """Checks common to both upload and commit."""
     results = []
+    author = input_api.change.author_email
+    if author and author not in _KNOWN_ROBOTS:
+        results.extend(input_api.canned_checks.CheckAuthorizedAuthor(input_api, output_api))
     results.extend(input_api.canned_checks.CheckOwnersFormat(input_api, output_api))
     results.extend(input_api.canned_checks.CheckOwners(input_api, output_api))
     results.extend(input_api.canned_checks.CheckChangeHasNoCrAndHasOnlyOneEol(input_api, output_api))