Filter environments by used vs. unused
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Proposal
Whether due to gaps in environment creation workflows or abandoned tasks, projects can end up with several "orphaned" environments with no deployments, which are very unlikely to ever be used. It would be helpful to be able to filter by environments with no deployments in the Operate > Environments UI.
Workaround
You can create a script with the GitLab API that:
- Returns all the environments in a project
- Loops through each environment ID:
- Makes a call to get the environment's details
- Checks the response for
"last_deployment": null
Edited by 🤖 GitLab Bot 🤖