Skip to content

Clearing Release Notes Deletes Release

Summary

Deleting the release notes for a tag and saving these changes deletes the release.

Steps to reproduce

  1. Navigate to Repository > Tags, edit the release notes for a tag, and click "Save changes" to create a release.
  2. Verify the release was created in Project > Releases.
  3. Navigate to Repository > Tags, and edit the release notes for the same tag. Delete all the text for the tag's release notes.

Step1

  1. Click the "Save changes" button for the tag.

Step2

  1. Verify that the release is no longer displayed in Project > Releases. The row has also been removed from the releases table in the database.

Relevant code

https://gitlab.com/gitlab-org/gitlab-ce/blob/867a1acc9046ed15afffe8ebc04e93a3628de1d2/app/controllers/projects/tags/releases_controller.rb#L21