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.
forgejo/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)
1 year ago
..
actions Set `ref` to fully-formed of the tag when trigger event is `release` (#23944) 1 year ago
agit add user rename endpoint to admin api (#22789) 1 year ago
asymkey Add context cache as a request level cache (#22294) 1 year ago
attachment Preserve file size when creating attachments (#23406) 1 year ago
auth Drop "unrolled/render" package (#23965) 1 year ago
automerge Add force_merge to merge request and fix checking mergable (#23010) 1 year ago
context Use User.ID instead of User.Name in ActivityPub API for Person IRI (#23823) 1 year ago
convert Add activity feeds API (#23494) 1 year ago
cron Add Cargo package registry (#21888) 1 year ago
externalaccount Implement FSFE REUSE for golang files (#21840) 2 years ago
forms Title can be empty when creating tag only (#23917) 1 year ago
gitdiff Fix broken code editor diff preview (#23307) 1 year ago
issue Webhooks: for issue close/reopen action, add commit ID that caused it (#22583) 1 year ago
lfs Check `IsActionsToken` for LFS authentication (#23841) 1 year ago
mailer Preserve file size when creating attachments (#23406) 1 year ago
markup Implement FSFE REUSE for golang files (#21840) 2 years ago
migrations Update github.com/google/go-github to v51 (#23946) 1 year ago
mirror Fill head commit to in payload when notifying push commits for mirroring (#23215) 1 year ago
org Implement FSFE REUSE for golang files (#21840) 2 years ago
packages Introduce path Clean/Join helper functions (#23495) 1 year ago
pull [Patch] Fix closed PR also triggers Webhooks and actions (#23782) 1 year ago
release Delete deleted release attachments immediately from storage (#23913) 1 year ago
repository Make label templates have consistent behavior and priority (#23749) 1 year ago
task Implement FSFE REUSE for golang files (#21840) 2 years ago
user add user rename endpoint to admin api (#22789) 1 year ago
webhook Fix incorrect `HookEventType` of pull request review comments (#23650) 1 year ago
wiki Improve utils of slices (#22379) 2 years ago