Gitlab CI "include" doesn't support hidden jobs with aliases

When including files with hidden jobs I receive an error instead of correctly merging the files, ie:

my_include_file.yml

.my_job: &my_job |
    echo "This feature is broken"

.gitlab-ci.yml

include:
    - 'https://gitlab.com/my_group/my_repo/raw/master/my_directory/my_include_file.yml'
my job:
    script:
        - *my_job

Has this: This GitLab CI configuration is invalid: Unknown alias: my_job instead of working as expected and documented. Guessing this is because your workflow has it run the linter before merging the files.