forked from go-gitea/gitea
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main'
* upstream/main: [skip ci] Updated translations via Crowdin Modify OAuth login ui and fix display name, iconurl related logic (go-gitea#25030) Fix open redirect check for more cases (go-gitea#25143) Update js dependencies (go-gitea#25137) Remove duplicated functions when deleting a branch (go-gitea#25128) Add codeowners feature (go-gitea#24910) Fix strange UI behavior of cancelling dismiss review modal (go-gitea#25133) Fix `MilestoneIDs` when querying issues (go-gitea#25125) Fix incorrect git ignore rule and add missing license files (go-gitea#25135) Change branch name from master to main in some documents' links (go-gitea#25126) Remove incorrect element ID on "post-install" page (go-gitea#25104) [skip ci] Updated translations via Crowdin Improve notification icon and navbar (go-gitea#25111) fix swagger documentation for multiple files API endpoint (go-gitea#25110) Fix webauthn regression and improve code (go-gitea#25113) Add details summary for vertical menus in settings to allow toggling (go-gitea#25098) Fix 500 error caused by notifications without an issue such as repo transfers (go-gitea#25101)
- Loading branch information
Showing
134 changed files
with
2,264 additions
and
2,190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
date: "2023-05-24T16:00:00+00:00" | ||
title: "Code Owners" | ||
slug: "code-owners" | ||
weight: 30 | ||
toc: false | ||
draft: false | ||
aliases: | ||
- /en-us/code-owners | ||
menu: | ||
sidebar: | ||
parent: "usage" | ||
name: "Code Owners" | ||
weight: 30 | ||
identifier: "code-owners" | ||
--- | ||
|
||
# Code Owners | ||
|
||
Gitea maintains code owner files. It looks for it in the following locations in this order: | ||
|
||
- `./CODEOWNERS` | ||
- `./docs/CODEOWNERS` | ||
- `./.gitea/CODEOWNERS` | ||
|
||
And stops at the first found file. | ||
|
||
File format: `<regexp rule> <@user or @org/team> [@user or @org/team]...` | ||
|
||
Regexp specified in golang Regex format. | ||
Regexp can start with `!` for negative rules - match all files except specified. | ||
|
||
Example file: | ||
|
||
``` | ||
.*\\.go @user1 @user2 # This is comment | ||
# Comment too | ||
# You can assigning code owning for users or teams | ||
frontend/src/.*\\.js @org1/team1 @org1/team2 @user3 | ||
# You can use negative pattern | ||
!frontend/src/.* @org1/team3 @user5 | ||
# You can use power of go regexp | ||
docs/(aws|google|azure)/[^/]*\\.(md|txt) @user8 @org1/team4 | ||
!/assets/.*\\.(bin|exe|msi) @user9 | ||
``` | ||
|
||
### Escaping | ||
|
||
You can escape characters `#`, ` ` (space) and `\` with `\`, like: | ||
|
||
``` | ||
dir/with\#hashtag @user1 | ||
path\ with\ space @user2 | ||
path/with\\backslash @user3 | ||
``` | ||
|
||
Some character (`.+*?()|[]{}^$\`) should be escaped with `\\` inside regexp, like: | ||
|
||
``` | ||
path/\\.with\\.dots | ||
path/with\\+plus | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.