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
pull/64020/head
John R Barker 5 years ago committed by GitHub
parent ef7d060a3f
commit 1e8765f0d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

@ -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"),

Loading…
Cancel
Save