|
@@ -1548,9 +1548,15 @@ def CheckOwnersFormat(input_api, output_api):
|
|
|
if input_api.gerrit and input_api.gerrit.IsCodeOwnersEnabledOnRepo():
|
|
|
return []
|
|
|
|
|
|
+ host = "none"
|
|
|
+ project = "none"
|
|
|
+ if input_api.gerrit:
|
|
|
+ host = input_api.gerrit.host
|
|
|
+ project = input_api.gerrit.project
|
|
|
return [
|
|
|
output_api.PresubmitError(
|
|
|
- 'code-owners is not enabled. Ask your host enable it on your gerrit '
|
|
|
+ f'code-owners is not enabled on {host}/{project}. '
|
|
|
+ '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.')
|
|
@@ -1568,9 +1574,15 @@ def CheckOwners(input_api, output_api, source_file_filter=None, allow_tbr=True):
|
|
|
if input_api.gerrit and input_api.gerrit.IsCodeOwnersEnabledOnRepo():
|
|
|
return []
|
|
|
|
|
|
+ host = "none"
|
|
|
+ project = "none"
|
|
|
+ if input_api.gerrit:
|
|
|
+ host = input_api.gerrit.host
|
|
|
+ project = input_api.gerrit.project
|
|
|
return [
|
|
|
output_api.PresubmitError(
|
|
|
- 'code-owners is not enabled. Ask your host enable it on your gerrit '
|
|
|
+ f'code-owners is not enabled on {host}/{project}. '
|
|
|
+ '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.')
|