BOTMETA support migrated_to (#63952)

* BOTMETA support migrated_to

Allow BOTMETA to define if this part of the codebase has moved
into a Collection on Galaxy.
See also https://github.com/ansible/ansible/pull/63935

* Enforce migrated_to URL format

* pep8
This commit is contained in:
John R Barker 2019-10-28 11:02:31 +00:00 committed by GitHub
parent ef7d060a3f
commit 1e8765f0d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

2
.github/BOTMETA.yml vendored
View file

@ -27,6 +27,8 @@
# ignored - these people should never be notified
# deprecated - this file is deprecated but probably not yet renamed
# keywords - used to identify this file based on the issue description
# migrated_to - Location on Galaxy,
# see https://docs.ansible.com/ansible/devel/dev_guide/developing_collections.html
# support - used for files without internal ANSIBLE_METADATA, see
# https://github.com/ansible/ansible/labels?q=support for full list
# labels - list of GitHub labels to apply. Path components of 'file' parent key

View file

@ -9,7 +9,7 @@ import re
import sys
import yaml
from voluptuous import Any, MultipleInvalid, Required, Schema
from voluptuous import All, Any, Match, MultipleInvalid, Required, Schema
from voluptuous.humanize import humanize_error
from ansible.module_utils.six import string_types
@ -38,6 +38,10 @@ def main():
'keywords': Any(list_string_types, *string_types),
'labels': Any(list_string_types, *string_types),
'maintainers': Any(list_string_types, *string_types),
'migrated_to': All(
Any(*string_types),
Match(r'^https://galaxy.ansible.com/'),
),
'notified': Any(list_string_types, *string_types),
'supershipit': Any(list_string_types, *string_types),
'support': Any("core", "network", "community"),