githaven-fork/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)
2023-04-10 16:44:02 +08:00
..
home.go Add missing tabs to org projects page (#22705) 2023-03-10 09:18:20 -06:00
main_test.go Support org/user level projects (#22235) 2023-01-20 19:42:33 +08:00
members.go Fix leaving organization bug on user settings -> orgs (#21983) 2022-11-30 17:00:00 +08:00
org_labels.go Add loading yaml label template files (#22976) 2023-03-02 01:44:23 +02:00
org_runners.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00
org.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
projects_test.go Support org/user level projects (#22235) 2023-01-20 19:42:33 +08:00
projects.go Improve GetBoards and getDefaultBoard (#22981) 2023-04-09 22:07:23 +08:00
setting_oauth2.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
setting_packages.go Add Cargo package registry (#21888) 2023-02-05 18:12:31 +08:00
setting_secrets.go Add user secrets (#22191) 2023-02-01 20:53:04 +08:00
setting.go Make label templates have consistent behavior and priority (#23749) 2023-04-10 16:44:02 +08:00
teams.go Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00