You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/services/forms
Kemal Zebari ecd463c2f1
Validate that the tag doesn't exist when creating a tag via the web (#33241)
Found while investigating #33210.

This line no longer makes sense because the form field "TagName" is
required, so this would mean that this code path would never be covered.
Because it isn't covered, we end up going down the "update release"
logic where we eventually set `Release.IsTag` to false (meaning it will
now be treated as a release instead of a tag).

This snapshot rewrites the condition to ensure that we aren't trying to
create a tag that already exists.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
1 month ago
..
admin.go
auth_form.go
org.go Fix: Allow org team names of length 255 in create team form (#31564) 8 months ago
package_form.go Add Arch package registry (#32692) 3 months ago
repo_branch_form.go
repo_form.go Validate that the tag doesn't exist when creating a tag via the web (#33241) 1 month ago
repo_form_test.go
repo_tag_form.go
runner.go
user_form.go Validate OAuth Redirect URIs (#32643) 3 months ago
user_form_auth_openid.go
user_form_hidden_comments.go Issue time estimate, meaningful time tracking (#23113) 3 months ago
user_form_test.go