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.
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)
1 year ago
..
home.go Add missing tabs to org projects page (#22705) 1 year ago
main_test.go Support org/user level projects (#22235) 2 years ago
members.go Fix leaving organization bug on user settings -> orgs (#21983) 2 years ago
org.go Implement FSFE REUSE for golang files (#21840) 2 years ago
org_labels.go Add loading yaml label template files (#22976) 1 year ago
org_runners.go Implement actions (#21937) 1 year ago
projects.go Improve GetBoards and getDefaultBoard (#22981) 1 year ago
projects_test.go Support org/user level projects (#22235) 2 years ago
setting.go Make label templates have consistent behavior and priority (#23749) 1 year ago
setting_oauth2.go Implement FSFE REUSE for golang files (#21840) 2 years ago
setting_packages.go Add Cargo package registry (#21888) 1 year ago
setting_secrets.go Add user secrets (#22191) 1 year ago
teams.go Add context cache as a request level cache (#22294) 1 year ago