Skip to content

Enabling Auto DevOps on an empty project gives you wrong information

Description

If I have an empty project, and I enable Auto DevOps in CI/CD > Settings, I got the following message saying that a new pipeline has been created:

image

This is actually not true, because since I don't have code, a pipeline is not created at all. We should try to recognize if a pipeline is going to be created and show a consistent message.

Proposal

When the users saves the Auto DevOps settings, check if the repository is empty and in this case show a different message. This banner alert should be our orange warning banner not the success green banner.

"This repository is currently empty. A new Auto DevOps pipeline will be created after a new file has been pushed to a branch."

Edited by Taurie Davis