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/routers/web/org
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
..
home.go Add missing tabs to org projects page (#22705) 2 years 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) 2 years ago
org_runners.go Implement actions (#21937) 2 years ago
projects.go Improve GetBoards and getDefaultBoard (#22981) 2 years ago
projects_test.go Support org/user level projects (#22235) 2 years ago
setting.go Make label templates have consistent behavior and priority (#23749) 2 years ago
setting_oauth2.go Implement FSFE REUSE for golang files (#21840) 2 years ago
setting_packages.go Add Cargo package registry (#21888) 2 years ago
setting_secrets.go Add user secrets (#22191) 2 years ago
teams.go Add context cache as a request level cache (#22294) 2 years ago