Skip to content

Commit

Permalink
BOTMETA support migrated_to (ansible#63952)
Browse files Browse the repository at this point in the history
* BOTMETA support migrated_to

Allow BOTMETA to define if this part of the codebase has moved
into a Collection on Galaxy.
See also ansible#63935

* Enforce migrated_to URL format

* pep8
  • Loading branch information
gundalow authored Oct 28, 2019
1 parent ef7d060 commit 1e8765f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/BOTMETA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion test/sanity/code-smell/botmeta.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
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
Expand Down Expand Up @@ -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"),
Expand Down

0 comments on commit 1e8765f

Please sign in to comment.