1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

botmeta support: core (#45917)

* botmeta enforce `support: core`
This commit is contained in:
John R Barker 2018-09-25 18:37:01 +01:00 committed by GitHub
parent 6056b89675
commit f4f5d941e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

2
.github/BOTMETA.yml vendored
View file

@ -37,6 +37,8 @@ automerge: True
files: files:
.github/BOTMETA.yml: .github/BOTMETA.yml:
labels: botmeta labels: botmeta
# Changes to BOTMETA MUST always be reviewed by Core Team
support: core
$modules/cloud/amazon/: $modules/cloud/amazon/:
ignored: erydo seiffert simplesteph ignored: erydo seiffert simplesteph
$modules/cloud/amazon/aws_api_gateway.py: willthames $modules/cloud/amazon/aws_api_gateway.py: willthames

View file

@ -59,6 +59,11 @@ def main():
# No way to get line numbers # No way to get line numbers
print('%s:%d:%d: %s' % (path, 0, 0, humanize_error(botmeta, error))) print('%s:%d:%d: %s' % (path, 0, 0, humanize_error(botmeta, error)))
# Ensure botmeta is always support:core
botmeta_support = botmeta.get('files', {}).get('.github/BOTMETA.yml', {}).get('support', '')
if botmeta_support != 'core':
print('%s:%d:%d: .github/BOTMETA.yml MUST be support: core' % (path, 0, 0))
# We have two macros to define locations, ensure they haven't been removed # We have two macros to define locations, ensure they haven't been removed
module_utils_path = botmeta.get('macros', {}).get('module_utils', '') module_utils_path = botmeta.get('macros', {}).get('module_utils', '')
modules_path = botmeta.get('macros', {}).get('modules', '') modules_path = botmeta.get('macros', {}).get('modules', '')