diff --git a/.github/BOTMETA.yml b/.github/BOTMETA.yml index 0925ea8cbe6..53f2be5de61 100644 --- a/.github/BOTMETA.yml +++ b/.github/BOTMETA.yml @@ -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 diff --git a/test/sanity/code-smell/botmeta.py b/test/sanity/code-smell/botmeta.py index 2e930e8f1c6..7ae48d67e5f 100755 --- a/test/sanity/code-smell/botmeta.py +++ b/test/sanity/code-smell/botmeta.py @@ -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"),