...
Code Block | ||
---|---|---|
| ||
# Put this in a file called CODEOWNERS or .bitbucket/CODEOWNERS in the root directory
# of your repository.
# Every rule line is a file pattern that is followed by one or more Code Owners.
# Scala code is owned by Martin Odersky
**/*.scala @martin_odersky
# Define group
@@@Java_Experts @james_gosling @brian_goetz
# Java files are owned by group members of Java_Experts
**/*.java @@Java_Experts
# You can also use Bitbucket groups which
# start with '@@' compared to single users.
# This will add all members of the Bitbucket group JS_Experts.
*.js @@JS_Experts
# You can also specify code owners by email address if you prefer:
docs/* docs@example.com
# Ordering is important! The last matching file pattern has the highest precedence.
# So if only files in the jvm sub-directories are in the pull request, Bill Joy
# will be the code owner.
jvm/**/*.java @bill_joy |
...
Info |
---|
To configure behavior settings of Code Owners, see CODEOWNERS settings |
Note |
---|
Alternative file location: |
Add merge checks
You can enforce approvals by a minimum number of reviewers assigned by Code Owners before merging.
...