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
Wiktor Kwapisiewicz b78c955958
Fix tags view (#23243)
This PR fixes several issues reported in
https://github.com/go-gitea/gitea/issues/23221.

It does three things:
1. Fixes the `DefaultBranch` variable that has not been set.
2. Sets `Title` and `Message` for newly created tags from the Tag
message. This makes it easier to create releases from tags that have
messages and for those that don't it doesn't have any effect.
3. Makes UI changes so that tags look more like proper releases.

Before:

![2023-03-02-12-31-19](https://user-images.githubusercontent.com/1718963/222416890-941a74d4-9cd0-4c45-a59e-199d2580cd8c.png)

After:

![2023-03-02-12-31-31](https://user-images.githubusercontent.com/1718963/222416919-abce2009-8955-4cd0-9bed-1374582e04f7.png)

I purposefully didn't reformat the template so that the diff is cleaner
but can do so if that's welcome.

Thanks for your time!

---------

Signed-off-by: Wiktor Kwapisiewicz <wiktor@metacode.biz>
2 years ago
..
actions Create commit status when event is `pull_request_sync` (#23683) 2 years ago
agit add user rename endpoint to admin api (#22789) 2 years ago
asymkey Add context cache as a request level cache (#22294) 2 years ago
attachment Preserve file size when creating attachments (#23406) 2 years ago
auth Handle OpenID discovery URL errors a little nicer when creating/editing sources (#23397) 2 years ago
automerge Add force_merge to merge request and fix checking mergable (#23010) 2 years ago
context Add missing tabs to org projects page (#22705) 2 years ago
convert Add absent repounits to create/edit repo API (#23500) 2 years ago
cron Add Cargo package registry (#21888) 2 years ago
externalaccount Implement FSFE REUSE for golang files (#21840) 2 years ago
forms Add Swift package registry (#22404) 2 years ago
gitdiff Fix broken code editor diff preview (#23307) 2 years ago
issue Webhooks: for issue close/reopen action, add commit ID that caused it (#22583) 2 years ago
lfs Use minio/sha256-simd for accelerated SHA256 (#23052) 2 years ago
mailer Preserve file size when creating attachments (#23406) 2 years ago
markup Implement FSFE REUSE for golang files (#21840) 2 years ago
migrations Introduce path Clean/Join helper functions (#23495) 2 years ago
mirror Fill head commit to in payload when notifying push commits for mirroring (#23215) 2 years ago
org Implement FSFE REUSE for golang files (#21840) 2 years ago
packages Introduce path Clean/Join helper functions (#23495) 2 years ago
pull Disable sending email after push a commit to a closed PR (#23462) 2 years ago
release Preserve file size when creating attachments (#23406) 2 years ago
repository Fix tags view (#23243) 2 years ago
task Implement FSFE REUSE for golang files (#21840) 2 years ago
user add user rename endpoint to admin api (#22789) 2 years ago
webhook Fix incorrect `HookEventType` of pull request review comments (#23650) 2 years ago
wiki Improve utils of slices (#22379) 2 years ago