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:
parent
ef7d060a3f
commit
1e8765f0d9
2 changed files with 7 additions and 1 deletions
2
.github/BOTMETA.yml
vendored
2
.github/BOTMETA.yml
vendored
|
@ -27,6 +27,8 @@
|
||||||
# ignored - these people should never be notified
|
# ignored - these people should never be notified
|
||||||
# deprecated - this file is deprecated but probably not yet renamed
|
# deprecated - this file is deprecated but probably not yet renamed
|
||||||
# keywords - used to identify this file based on the issue description
|
# 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
|
# support - used for files without internal ANSIBLE_METADATA, see
|
||||||
# https://github.com/ansible/ansible/labels?q=support for full list
|
# https://github.com/ansible/ansible/labels?q=support for full list
|
||||||
# labels - list of GitHub labels to apply. Path components of 'file' parent key
|
# labels - list of GitHub labels to apply. Path components of 'file' parent key
|
||||||
|
|
|
@ -9,7 +9,7 @@ import re
|
||||||
import sys
|
import sys
|
||||||
import yaml
|
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 voluptuous.humanize import humanize_error
|
||||||
|
|
||||||
from ansible.module_utils.six import string_types
|
from ansible.module_utils.six import string_types
|
||||||
|
@ -38,6 +38,10 @@ def main():
|
||||||
'keywords': Any(list_string_types, *string_types),
|
'keywords': Any(list_string_types, *string_types),
|
||||||
'labels': Any(list_string_types, *string_types),
|
'labels': Any(list_string_types, *string_types),
|
||||||
'maintainers': 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),
|
'notified': Any(list_string_types, *string_types),
|
||||||
'supershipit': Any(list_string_types, *string_types),
|
'supershipit': Any(list_string_types, *string_types),
|
||||||
'support': Any("core", "network", "community"),
|
'support': Any("core", "network", "community"),
|
||||||
|
|
Loading…
Reference in a new issue