0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-12 08:52:41 +01:00
gitea/tests
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>
2025-01-14 09:27:35 +08:00
..
e2e Refactor env var related code (#33075) 2025-01-02 11:36:50 +08:00
fuzz Fix fuzz test (#33156) 2025-01-09 15:15:47 +08:00
gitea-lfs-meta
gitea-repositories-meta Remove some unnecessary template helpers (#33069) 2025-01-01 18:02:34 +08:00
integration Validate that the tag doesn't exist when creating a tag via the web (#33241) 2025-01-14 09:27:35 +08:00
testdata/data Add artifacts test fixture (#30300) 2024-11-01 10:29:54 +08:00
mssql.ini.tmpl Remove some unnecessary template helpers (#33069) 2025-01-01 18:02:34 +08:00
mysql.ini.tmpl Remove some unnecessary template helpers (#33069) 2025-01-01 18:02:34 +08:00
pgsql.ini.tmpl Remove some unnecessary template helpers (#33069) 2025-01-01 18:02:34 +08:00
sqlite.ini.tmpl Remove some unnecessary template helpers (#33069) 2025-01-01 18:02:34 +08:00
test_utils.go Add sub issue list support (#32940) 2024-12-24 01:54:19 +00:00