0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2025-01-11 14:14:51 +01:00
gitea/services
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)
2023-04-10 16:44:02 +08:00
..
actions Set ref to fully-formed of the tag when trigger event is release (#23944) 2023-04-07 16:40:40 -04:00
agit
asymkey
attachment
auth Drop "unrolled/render" package (#23965) 2023-04-08 14:21:50 +08:00
automerge
context
convert Add activity feeds API (#23494) 2023-04-04 21:35:31 +08:00
cron
externalaccount
forms Title can be empty when creating tag only (#23917) 2023-04-06 21:44:52 -04:00
gitdiff
issue
lfs
mailer
markup
migrations Update github.com/google/go-github to v51 (#23946) 2023-04-08 19:27:30 +08:00
mirror
org
packages
pull
release Delete deleted release attachments immediately from storage (#23913) 2023-04-06 18:01:36 -04:00
repository Make label templates have consistent behavior and priority (#23749) 2023-04-10 16:44:02 +08:00
task
user
webhook
wiki