From f6f3c7a46e8382ca58e61baaedddf24b543ff7c6 Mon Sep 17 00:00:00 2001 From: Johann Date: Fri, 16 Jul 2021 16:30:54 +0000 Subject: [PATCH] [docs] update links to developer guide Change-Id: I906654a06f2833c8ca4089aa7eae3bab104f013a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3020735 Auto-Submit: Johann Koenig Commit-Queue: Anthony Polito Reviewed-by: Anthony Polito --- WATCHLISTS | 2 +- presubmit_canned_checks.py | 17 ++++++++++------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/WATCHLISTS b/WATCHLISTS index 0c10ff84f..184ddbbb2 100755 --- a/WATCHLISTS +++ b/WATCHLISTS @@ -3,7 +3,7 @@ # found in the LICENSE file. # Watchlist Rules -# Refer: http://dev.chromium.org/developers/contributing-code/watchlists +# Refer: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/infra/watchlists.md { diff --git a/presubmit_canned_checks.py b/presubmit_canned_checks.py index 0ef5bb987..16f7fc1d2 100644 --- a/presubmit_canned_checks.py +++ b/presubmit_canned_checks.py @@ -143,13 +143,16 @@ def CheckAuthorizedAuthor(input_api, output_api, bot_allowlist=None): if not any(input_api.fnmatch.fnmatch(author.lower(), valid) for valid in valid_authors): input_api.logging.info('Valid authors are %s', ', '.join(valid_authors)) - return [error_type( - ('%s is not in AUTHORS file. If you are a new contributor, please visit' - '\n' - 'https://www.chromium.org/developers/contributing-code and read the ' - '"Legal" section\n' - 'If you are a chromite, verify the contributor signed the CLA.') % - author)] + return [ + error_type(( + # pylint: disable=line-too-long + '%s is not in AUTHORS file. If you are a new contributor, please visit\n' + 'https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/contributing.md#Legal-stuff\n' + # pylint: enable=line-too-long + 'and read the "Legal stuff" section\n' + 'If you are a chromite, verify that the contributor signed the CLA.') % + author) + ] return []