Include remote jobs with url which doesn't end by .yml

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Problem to solve

As a gitlab user I want to use the include: option in my .gitlab-ci.yml file with a link which doesn't finish by .yml but redirect on a valid yaml file.
So I can use any redirection link to include job in my .gitlab-ci.yml configuration file

Intended users

User experience goal

The user should be able to use any link to include job in .gitlab-ci.yml if the file retrieved though the link is a valid yaml file.

Proposal

The link itself shouldn't be checked to ensure that it ends with .yml because it's not relevant in case of redirections.

What does success look like, and how can we measure that?

Given the fact that the link https://example.com/myjob redirect on a valid yaml job file https://example.com/gitlab/jobs/myjob_v1.yml: I should be able to use the link https://example.com/myjob in the include: clause of my .gitlab-ci.yml. It shouldn't produce an error.

Edited by 🤖 GitLab Bot 🤖