forgejo/modules
Hester Gong 8d9f8e10b1
Fix tags sort by creation time (descending) on branch/tag dropdowns ()
This PR fixes the tags sort issue mentioned in 
The tags on dropdown shoud be sorted in descending order of time but are
not. Because when getting tags, it execeutes `git tag sort
--sort=-taggerdate`. Git supports two types of tags: lightweight and
annotated, and `git tag sort --sort=-taggerdate` dosen't work with
lightweight tags, which will not give correct result. This PR add
`GetTagNamesByRepoID ` to get tags from the database so the tags are
sorted.

Also adapt this change to the droplist when comparing branches. 

Dropdown places:

<img width="369" alt="截屏2023-03-15 14 25 39"
src="https://user-images.githubusercontent.com/17645053/225224506-65a72e50-4c11-41d7-8187-a7e9c7dab2cb.png">

<img width="675" alt="截屏2023-03-15 14 25 27"
src="https://user-images.githubusercontent.com/17645053/225224526-65ce8008-340c-43f6-aa65-b6bd9e1a1bf1.png">
2023-03-16 12:01:10 -05:00
..
actions Convert GitHub event on actions and fix some pull_request events. () 2023-03-14 20:50:51 +08:00
activitypub Add Chef package registry () 2023-02-06 09:49:21 +08:00
analyze Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
auth Fix various bugs for "install" page () 2023-03-04 10:12:02 +08:00
avatar Use minio/sha256-simd for accelerated SHA256 () 2023-02-22 14:21:46 -05:00
base Use minio/sha256-simd for accelerated SHA256 () 2023-02-22 14:21:46 -05:00
cache Improve cache context () 2023-03-08 11:57:05 -06:00
charset Fix isAllowed of escapeStreamer () 2023-02-09 20:51:36 +08:00
container Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
context Fix tags sort by creation time (descending) on branch/tag dropdowns () 2023-03-16 12:01:10 -05:00
csv Add context when rendering labels or emojis () 2023-03-05 22:59:05 +01:00
doctor add path prefix to ObjectStorage.Iterator () 2023-03-13 18:23:51 +08:00
emoji Fix unstable emoji sort () 2023-01-05 13:58:51 +02:00
eventsource Move convert package to services () 2022-12-29 10:57:15 +08:00
generate Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
git Handle files starting with colons in WalkGitLog () 2023-03-16 11:03:04 -05:00
gitgraph Add context cache as a request level cache () 2023-02-15 21:37:34 +08:00
graceful Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
hcaptcha Consume hcaptcha and pwn deps () 2023-01-29 09:49:51 -06:00
highlight test_env: hardcode major go version in use () 2023-03-14 16:09:01 -04:00
hostmatcher Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
html Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
httpcache Set X-Gitea-Debug header once () 2023-03-08 15:40:04 -05:00
httplib Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
indexer Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
issue/template Allow issue templates to not render title () 2023-01-26 22:45:49 -06:00
json Update gitea-vet to check FSFE REUSE () 2022-12-02 22:14:57 +08:00
label Reduce duplicate and useless code in options () 2023-03-08 17:31:27 +08:00
lfs Use minio/sha256-simd for accelerated SHA256 () 2023-02-22 14:21:46 -05:00
log Improve trace logging for pulls and processes () 2023-02-03 18:11:48 -05:00
markup Add context when rendering labels or emojis () 2023-03-05 22:59:05 +01:00
mcaptcha Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
metrics include build info in Prometheus metrics () 2023-02-08 19:54:01 +02:00
migration Scoped labels () 2023-02-18 21:17:39 +02:00
mirror Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
nosql Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
notification Implement actions () 2023-01-31 09:45:19 +08:00
options Use CleanPath instead of path.Clean () 2023-03-08 20:17:39 +08:00
packages Add Swift package registry () 2023-03-13 15:28:39 -05:00
paginator Update gitea-vet to check FSFE REUSE () 2022-12-02 22:14:57 +08:00
pprof Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
private Implement actions () 2023-01-31 09:45:19 +08:00
process Improve trace logging for pulls and processes () 2023-02-03 18:11:48 -05:00
proxy Use proxy for pull mirror () 2023-02-11 08:39:50 +08:00
proxyprotocol Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
public Use CleanPath instead of path.Clean () 2023-03-08 20:17:39 +08:00
queue Properly flush unique queues on startup () 2023-02-28 17:55:43 -05:00
recaptcha Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
references Use correct captured group range when parsing cross-reference () 2023-01-31 10:08:05 +01:00
regexplru Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
repository Fix pull request update showing too many commits with multiple branches () 2023-03-09 12:14:22 -06:00
secret Use minio/sha256-simd for accelerated SHA256 () 2023-02-22 14:21:46 -05:00
session Update gitea-vet to check FSFE REUSE () 2022-12-02 22:14:57 +08:00
setting Move pidfile creation from setting to web cmd package () 2023-03-16 15:22:54 +08:00
sitemap Fix sitemap () 2022-12-30 23:31:00 +08:00
ssh Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
storage add path prefix to ObjectStorage.Iterator () 2023-03-13 18:23:51 +08:00
structs add admin API email endpoints () 2023-03-14 03:54:40 -04:00
svg Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
sync Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
system Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
templates Allow both fullname and username search when DEFAULT_SHOW_FULL_NAME is true () 2023-03-16 11:32:25 -05:00
test Rename repo.GetOwner to repo.LoadOwner () 2023-02-18 20:11:03 +08:00
timeutil Check for zero time instant in TimeStamp.IsZero() () 2022-12-20 10:04:55 +08:00
translation Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
turnstile Add new captcha: cloudflare turnstile () 2023-02-05 15:29:03 +08:00
typesniffer Do not recognize text files as audio () 2023-03-07 22:40:41 -05:00
updatechecker Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
upload Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
uri Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
user Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
util Use CleanPath instead of path.Clean () 2023-03-08 20:17:39 +08:00
validation Map OIDC groups to Orgs/Teams () 2023-02-08 14:44:42 +08:00
watcher Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
web Map OIDC groups to Orgs/Teams () 2023-02-08 14:44:42 +08:00
webhook Restructure webhook module () 2023-01-01 23:23:15 +08:00