From 9a5440a442fa45299937dd996acfbbddac1f2c00 Mon Sep 17 00:00:00 2001 From: Joanna Wang Date: Wed, 20 Mar 2024 22:50:15 +0000 Subject: [PATCH] Revert "Include host and project in code-owners not enabled error." This reverts commit 4d2728b03e2c567c95dac8899855dc9b0f706b86. Reason for revert: Won't work if gerrit=None Original change's description: > Include host and project in code-owners not enabled error. > > Bug: 329231688 > Change-Id: I36bb24f167854f40718ec49559d9aaa640fa1a44 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5384365 > Auto-Submit: Joanna Wang > Commit-Queue: Joanna Wang > Reviewed-by: Scott Lee > Commit-Queue: Scott Lee Bug: 329231688 Change-Id: I49d23611b62f1979578ae52861a2007a1d34778e No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5381788 Commit-Queue: Rubber Stamper Auto-Submit: Joanna Wang Bot-Commit: Rubber Stamper --- presubmit_canned_checks.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/presubmit_canned_checks.py b/presubmit_canned_checks.py index 16a5b7012..05cc5768e 100644 --- a/presubmit_canned_checks.py +++ b/presubmit_canned_checks.py @@ -1550,8 +1550,7 @@ def CheckOwnersFormat(input_api, output_api): return [ output_api.PresubmitError( - f'code-owners is not enabled on {input_api.gerrit.host}/{input_api.gerrit.project}. ' - 'Ask your host enable it on your gerrit ' + 'code-owners is not enabled. Ask your host enable it on your gerrit ' 'host. Read more about code-owners at ' 'https://chromium-review.googlesource.com/' 'plugins/code-owners/Documentation/index.html.') @@ -1571,8 +1570,7 @@ def CheckOwners(input_api, output_api, source_file_filter=None, allow_tbr=True): return [ output_api.PresubmitError( - f'code-owners is not enabled on {input_api.gerrit.host}/{input_api.gerrit.project}. ' - 'Ask your host enable it on your gerrit ' + 'code-owners is not enabled. Ask your host enable it on your gerrit ' 'host. Read more about code-owners at ' 'https://chromium-review.googlesource.com/' 'plugins/code-owners/Documentation/index.html.')