mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-11 19:39:02 +00:00
Document: https://gitea.com/gitea/docs/pulls/634 ([doc PR preview](https://gitea.com/gitea/docs/src/commit/955ae7d75c3377a15fafe465d85e484fc8dc7d2a/docs/usage/repository/code-owners.md)) 1. If the pattern starts with `*` or contains `/*`, use our glob package to parse it as glob to regexp * Make it easier to use. Otherwise it's really ugly to keep writing a lot of backslash escapes 2. Add GitLab-style "section" support * Fix #28926 ```codeowners [Section] @user *.js ``` 3. Add our annotation support, at the moment only need to support review-request=true/false * Fix #40241 ```codeowners ## review-request=false # this is global *.js $user ## review-request=true # this is line-level [Section] @user ## review-request=true # this is section-level *.md ``` 4. Add GitHub/GitLab-style "show codeowner when viewing a file" * Fix #28137