Skip to content

Show more specific error message when user attempts to create release with new protected tag

Background

This is a follow up to #327505 (closed). See the discussion in this comment.

Current state

Currently, if a user attempts to create a new release from the New Release page with a new tag that matches a protected tag pattern, the page shows a generic "Something went wrong" error.

This happens because the user doesn't have permission to create a protected tag, but it's not obvious to the user why this is.

Proposal

In this case, show a more specific error message:

You don't have permission to create a tag named <tag name> because it would be a protected tag.

Other related issues

#235815 (closed)

Edited by Nathan Friend