Delete a Release through Release-CLI

Release notes

In this milestone we have added the ability to delete a release directly from the release-cli. This can be used for automating releases by updating any of the release attributes directly from the .gitlab-ci.yml file and leveraging the CI/CD pipeline to do so.

Problem to solve

As a user of the release-cli, I wish to be able to perform all release activities directly from the .gitlab-ci.yml file.

This issue tackles delete release, which can then be parsed to obtain a specific field, like description.

Proposal

The release-cli is a simple HTTP client that makes API requests, it would be great to extend it to interact with the rest of the Release API endpoints.

Extend the release-cli toDelete a release. Deleting a release doesn’t delete the associated tag. Maintainer level access to the project is required to delete a release.

DELETE /projects/:id/releases/:tag_name

Implementation guide

Add a Delete command to https://gitlab.com/gitlab-org/release-cli/-/blob/4f1425813377982df4b8001f256af949eb17f728/internal/app/app.go#L46 similar to existing Get command.

You can reach out to grouprelease [DEPRECATED] in GitLab for more guidance

This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.

Edited by 🤖 GitLab Bot 🤖