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/modules
wxiaoguang 4e33481357
Make label templates have consistent behavior and priority (#23749)
Fix https://github.com/go-gitea/gitea/issues/23715

Other related PRs:

* #23717
* #23716
* #23719

This PR is different from others, it tries to resolve the problem fundamentally (and brings more benefits)

Although it looks like some more lines are added, actually many new lines are for tests.

----

Before, the code was just "guessing" the file type and try to parse them.

<details>

![image](https://user-images.githubusercontent.com/2114189/228002245-57d58e27-1078-4da9-bf42-5bc0b264c6ce.png)

</details>

This PR:

* Always remember the original option file names, and always use correct parser for them.

* Another benefit is that we can sort the Label Templates now (before there was a map, its key order is undefined)

![image](https://user-images.githubusercontent.com/2114189/228002432-931b9f18-3908-484b-a36b-04760c9ad132.png)
2 years ago
..
actions Do not crash when parsing an invalid workflow file (#23972) 2 years ago
activitypub Add Chef package registry (#22554) 2 years ago
analyze Implement FSFE REUSE for golang files (#21840) 2 years ago
auth Fix various bugs for "install" page (#23194) 2 years ago
avatar Use minio/sha256-simd for accelerated SHA256 (#23052) 2 years ago
base Use a general Eval function for expressions in templates. (#23927) 2 years ago
cache Improve cache context (#23330) 2 years ago
charset Use data-tooltip-content for tippy tooltip (#23649) 2 years ago
container Implement FSFE REUSE for golang files (#21840) 2 years ago
context Group template helper functions, remove `Printf`, improve template error messages (#23982) 2 years ago
csv Add context when rendering labels or emojis (#23281) 2 years ago
doctor Check LFS/Packages settings in dump and doctor command (#23631) 2 years ago
emoji Fix unstable emoji sort (#22346) 2 years ago
eventsource Move `convert` package to services (#22264) 2 years ago
generate Implement FSFE REUSE for golang files (#21840) 2 years ago
git Remove `Repository.getFilesChanged` to fix Actions `paths` and `paths-ignore` filter (#23920) 2 years ago
gitgraph Add context cache as a request level cache (#22294) 2 years ago
graceful Implement FSFE REUSE for golang files (#21840) 2 years ago
hcaptcha Consume hcaptcha and pwn deps (#22610) 2 years ago
highlight test_env: hardcode major go version in use (#23464) 2 years ago
hostmatcher Implement FSFE REUSE for golang files (#21840) 2 years ago
html Implement FSFE REUSE for golang files (#21840) 2 years ago
httpcache Set `X-Gitea-Debug` header once (#23361) 2 years ago
httplib Refactor internal API for git commands, use meaningful messages instead of "Internal Server Error" (#23687) 2 years ago
indexer Add meilisearch support (#23136) 2 years ago
issue/template Allow issue templates to not render title (#22589) 2 years ago
json Update gitea-vet to check FSFE REUSE (#22004) 2 years ago
label Make label templates have consistent behavior and priority (#23749) 2 years ago
lfs Make minio package support legacy MD5 checksum (#23768) 2 years ago
log Improve trace logging for pulls and processes (#22633) 2 years ago
markup Append `(comment)` when a link points at a comment rather than the whole issue (#23734) 2 years ago
mcaptcha Implement FSFE REUSE for golang files (#21840) 2 years ago
metrics include build info in Prometheus metrics (#22819) 2 years ago
migration Scoped labels (#22585) 2 years ago
mirror Implement FSFE REUSE for golang files (#21840) 2 years ago
nosql Implement FSFE REUSE for golang files (#21840) 2 years ago
notification Implement actions (#21937) 2 years ago
options Introduce path Clean/Join helper functions (#23495) 2 years ago
packages Display image size for multiarch container images (#23821) 2 years ago
paginator Update gitea-vet to check FSFE REUSE (#22004) 2 years ago
pprof Implement FSFE REUSE for golang files (#21840) 2 years ago
private Refactor internal API for git commands, use meaningful messages instead of "Internal Server Error" (#23687) 2 years ago
process Improve trace logging for pulls and processes (#22633) 2 years ago
proxy Use proxy for pull mirror (#22771) 2 years ago
proxyprotocol Implement FSFE REUSE for golang files (#21840) 2 years ago
public Fix incorrect CORS failure detection logic (#23844) 2 years ago
queue Properly flush unique queues on startup (#23154) 2 years ago
recaptcha Implement FSFE REUSE for golang files (#21840) 2 years ago
references Use correct captured group range when parsing cross-reference (#22672) 2 years ago
regexplru Implement FSFE REUSE for golang files (#21840) 2 years ago
repository Make label templates have consistent behavior and priority (#23749) 2 years ago
secret Use minio/sha256-simd for accelerated SHA256 (#23052) 2 years ago
session Use Get/Set instead of Rename when Regenerate session id (#23975) 2 years ago
setting Add ONLY_SHOW_RELEVANT_REPOS back, fix explore page bug, make code more strict (#23766) 2 years ago
sitemap Fix sitemap (#22272) 2 years ago
ssh Implement FSFE REUSE for golang files (#21840) 2 years ago
storage Make minio package support legacy MD5 checksum (#23768) 2 years ago
structs Add activity feeds API (#23494) 2 years ago
svg Keep (add if not existing) xmlns attribute for generated SVG images (#23410) 2 years ago
sync Implement FSFE REUSE for golang files (#21840) 2 years ago
system Implement FSFE REUSE for golang files (#21840) 2 years ago
templates Make bindata static build parse builtin templates correctly (#24003) 2 years ago
test Group template helper functions, remove `Printf`, improve template error messages (#23982) 2 years ago
timeutil Use data-tooltip-content for tippy tooltip (#23649) 2 years ago
translation Append `(comment)` when a link points at a comment rather than the whole issue (#23734) 2 years ago
turnstile Add new captcha: cloudflare turnstile (#22369) 2 years ago
typesniffer Do not recognize text files as audio (#23355) 2 years ago
updatechecker Implement FSFE REUSE for golang files (#21840) 2 years ago
upload Implement FSFE REUSE for golang files (#21840) 2 years ago
uri Implement FSFE REUSE for golang files (#21840) 2 years ago
user Implement FSFE REUSE for golang files (#21840) 2 years ago
util Merge template functions "dict/Dict/mergeinto" (#23932) 2 years ago
validation Map OIDC groups to Orgs/Teams (#21441) 2 years ago
watcher Implement FSFE REUSE for golang files (#21840) 2 years ago
web Map OIDC groups to Orgs/Teams (#21441) 2 years ago
webhook Restructure `webhook` module (#22256) 2 years ago