1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-02 15:09:33 -05:00
gitea/templates/repo
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
..
actions workflow_dispatch use workflow from trigger branch (#33098) 2025-01-05 21:47:18 +08:00
branch Refactor context RefName and RepoAssignment (#33226) 2025-01-13 01:07:05 +00:00
cite Fix Citation modal responsiveness and clipboard copy (#29799) 2024-03-15 02:38:13 +00:00
code Fix sync fork for consistency (#33147) 2025-01-10 05:29:55 +00:00
diff add submodule diff links (#33097) 2025-01-08 01:38:30 +00:00
editor Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
find Fix word overflow in file search page (#32695) 2024-12-03 16:52:25 +00:00
graph De-emphasize signed commits (#31160) 2024-12-28 04:18:30 +08:00
issue Fix unpin hint on the pinned pull requests (#33207) 2025-01-12 00:05:33 +00:00
migrate Fix form width (#33151) 2025-01-08 23:57:18 +08:00
projects Fix incorrect project page CSS class (#32510) 2024-11-15 01:30:26 +00:00
pulls Fix form width (#33151) 2025-01-08 23:57:18 +08:00
release Validate that the tag doesn't exist when creating a tag via the web (#33241) 2025-01-14 09:27:35 +08:00
settings Remove unused CSS styles and move some styles to proper files (#33217) 2025-01-12 05:16:22 +00:00
tag Refactor DateUtils and merge TimeSince (#32409) 2024-11-04 11:30:00 +00:00
wiki Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
activity.tmpl Implement recent commits graph (#29210) 2024-02-24 10:22:51 +00:00
blame.tmpl Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
branch_dropdown.tmpl Fix branch dropdown not display ref name (#33159) 2025-01-09 18:43:49 +00:00
clone_buttons.tmpl Rearrange Clone Panel (#31142) 2024-12-11 21:54:30 +08:00
clone_panel.tmpl Refactor context RefName and RepoAssignment (#33226) 2025-01-13 01:07:05 +00:00
code_frequency.tmpl Refactor web routes (#30519) 2024-04-17 08:31:37 +00:00
commit_load_branches_and_tags.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-24 18:23:38 +00:00
commit_page.tmpl Fix dropdown menu header and mobile view (#33108) 2025-01-05 21:20:22 +00:00
commit_sign_badge.tmpl De-emphasize signed commits (#31160) 2024-12-28 04:18:30 +08:00
commit_status.tmpl Restore warning commit status (#27504) 2023-10-08 22:16:06 +00:00
commit_statuses.tmpl fix toggle commit body button ui when latest commit message is long (#32997) 2024-12-29 08:04:56 +08:00
commits_list_small.tmpl De-emphasize signed commits (#31160) 2024-12-28 04:18:30 +08:00
commits_list.tmpl De-emphasize signed commits (#31160) 2024-12-28 04:18:30 +08:00
commits_search_dropdown.tmpl Unify search boxes (#29530) 2024-03-14 23:24:59 +00:00
commits_table.tmpl Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
commits.tmpl Fix branch dropdown not display ref name (#33159) 2025-01-09 18:43:49 +00:00
contributors.tmpl Add "n commits" link to contributors in contributors graph page (#32799) 2024-12-12 19:02:54 +00:00
create_helper.tmpl Remove incorrect and unnecessary Escape from templates (#29394) 2024-02-25 14:02:20 +00:00
create.tmpl Fix form width (#33151) 2025-01-08 23:57:18 +08:00
empty.tmpl Fix repo empty guide (#33114) 2025-01-06 12:07:52 +08:00
file_info.tmpl Improve detecting empty files (#31332) 2024-06-13 01:06:46 +00:00
forks.tmpl Refactor find forks and fix possible bugs that weak permissions check (#32528) 2024-11-18 03:06:25 +00:00
graph.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-24 18:23:38 +00:00
header.tmpl Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
home_sidebar_bottom.tmpl Tweak repo sidebar (#32847) 2024-12-15 10:01:46 +00:00
home_sidebar_top.tmpl Move repo size to sidebar (#33155) 2025-01-09 07:45:51 +00:00
home.tmpl Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
icon.tmpl Replace 10 more gt- classes with tw- (#29945) 2024-03-22 13:45:10 +00:00
latest_commit.tmpl fix toggle commit body button ui when latest commit message is long (#32997) 2024-12-29 08:04:56 +08:00
navbar.tmpl Implement recent commits graph (#29210) 2024-02-24 10:22:51 +00:00
packages.tmpl Fix inconsistent user profile layout across tabs (#25625) 2023-07-06 18:59:24 +00:00
pulse.tmpl Remove unused CSS styles and move some styles to proper files (#33217) 2025-01-12 05:16:22 +00:00
recent_commits.tmpl Refactor web routes (#30519) 2024-04-17 08:31:37 +00:00
release_tag_header.tmpl Refactor web routes (#30519) 2024-04-17 08:31:37 +00:00
search_name.tmpl Clean template/helper.go (#23922) 2023-04-07 03:31:41 -04:00
search.tmpl Unify search boxes (#29530) 2024-03-14 23:24:59 +00:00
star_unstar.tmpl code optimization (#31315) 2024-06-11 21:07:10 +08:00
sub_menu.tmpl Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
unicode_escape_prompt.tmpl Replace some gt- classes with tw- (#29570) 2024-03-04 03:33:20 +00:00
upload.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
user_cards.tmpl Update the list of watchers and stargazers when clicking watch/unwatch or star/unstar (#32570) 2024-11-22 18:51:51 +00:00
view_file.tmpl Refactor context RefName and RepoAssignment (#33226) 2025-01-13 01:07:05 +00:00
view_list.tmpl add submodule diff links (#33097) 2025-01-08 01:38:30 +00:00
watch_unwatch.tmpl Tweak repo buttons on mobile and labeled button border-radius (#30503) 2024-04-16 17:46:12 +02:00
watchers.tmpl Fix user-cards format (#24428) 2023-04-29 15:43:01 -04:00