Hi Experts, looking for your support on adding the CODEOWNERS with teams.yaml
Here is my team.yml
************************************ teams.yaml ********************************
developers: # Name of the Team
contributors: # Array of contributors by email address
- abc@domain.com
- def@domain.com
reviews: # Configuration for selecting PR reviewers
strategy: all # Reverse sort by # of open PR's they are reviewing (least_busy,all or random)
#select: 2
principals: # Name of the Team
contributors: # Array of principal Engineers by email address
- ghi@domain.com
- jkl@domain.com
reviews: # Configuration for selecting PR reviewers
strategy: all # Select all users, no filtering/sorting applied
associate_principals: # Name of the Team
contributors: # Array of associate principal Engineers by email address
- mno@domain.com
reviews: # Configuration for selecting PR reviewers
strategy: all # Select all users, no filtering/sorting applied
leads: # Name of the Team # Array of leads by email address
contributors: # Array of leads by email address
- pqr@domain.com
reviews: # Configuration for selecting PR reviewers
strategy: all # Select all users, no filtering/sorting applied
**********************************CODEOWNERS***************************************
# Use @ teams to prefix your team name and reference teams.yaml
* @ teams/developers @ teams/principals
*****************************************************************************************
NOTE: In code owner file i have intentionally gave a space in between at the rate and teams due to community post does not allow.
Not sure why its throwing error:
Hi Salim and welcome to the community!
Are you using CODEOWNERS in a Bitbucket Cloud repo or a Bitbucket Server/Data Center repo? Your tag has the question 'cloud', but your Bitbucket Cloud account doesn't have access to any repos. If you are unsure, the URL of a Bitbucket Cloud repo on your browser starts with https://bitbucket.org/ while Bitbucket Server/Data Center repos have a different custom URL.
CODEOWNERS with a teams.yaml file is a Bitbucket Cloud feature. If you are using Bitbucket Server/Data Center, the teams.yaml won't work. The native feature for Bitbucket Data Center is documented here (you can switch the dropdown with the version at the top right corner of that page to the one you are using):
In case you are using Bitbucket Cloud:
Kind regards,
Theodora
Hi Theodora
Thanks for your response.
Currently, I am using Bitbucket Server/Data Center. That may be the reason my implementation not working.
Thanks for the links shared.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.