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/templates
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 Remove some unnecessary template helpers (#33069) 2 months ago
api/packages/pypi Fix links in PyPI Simple Repository API page (#30594) 10 months ago
base Fix dropdown menu header and mobile view (#33108) 2 months ago
custom Add footer extra links template (#9576) 5 years ago
devtest De-emphasize signed commits (#31160) 2 months ago
explore Refactor template ctx and render utils (#32422) 4 months ago
mail Remove unnecessary SanitizeHTML from code (#29575) 12 months ago
org Fix form width (#33151) 2 months ago
package feat: link to nuget dependencies (#26554) 2 months ago
projects Refactor repo-projects.ts (#32892) 2 months ago
repo Validate that the tag doesn't exist when creating a tag via the web (#33241) 1 month ago
shared Fix bleve fuzziness search (#33078) 2 months ago
status Remove urls from translations (#31950) 6 months ago
swagger Let API create and edit system webhooks, attempt 2 (#33180) 1 month ago
user Fix form width (#33151) 2 months ago
webhook Fix incorrect tailwind migration (#30007) 11 months ago
home.tmpl Remove urls from translations (#31950) 6 months ago
install.tmpl Supplement and Improvement for #32558 (#32585) 3 months ago
post-install.tmpl Optimize the installation page (#32994) 2 months ago