Allow running pipelines only on branches that have .gitlab-ci.yml
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
If you try to run a pipeline using the Run Pipeline button in Pipelines -> Pipelines tab, you can select any branch of your repo and if there is no .config-ci.yml an error is shown telling you the file is missing.
In order to improve the user experience of this feature, it would be better than the list of branches you can choose in the dropdown contains only the ones that have a .gitlab-ci.yml file in that specific moment.
The same concept could be applied also to Pipelines -> Schedules, but here someone could say that the file could be added later, so maybe it makes more sense to allow any branch.
Edited by 🤖 GitLab Bot 🤖