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/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..d178bd7
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1,18 @@
+# Below is a list of people and organizations that have contributed
+# to the Chrome DevTools project. Names should be added to the list
+# like so:
+#
+#   Name/Organization <email address>
+
+Google Inc. <*@google.com>
+The Chromium Authors <*@chromium.org>
+Cloudflare, Inc. <*@cloudflare.com>
+Igalia, S.L. <*@igalia.com>
+Microsoft <*@microsoft.com>
+Samsung <*@samsung.com>
+
+Alexander Stammbach <[email protected]>
+Ergün Erdoğmuş <[email protected]>
+Gautham Banasandra <[email protected]>
+Jeffrey Chen <[email protected]>
+PhistucK <[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))