Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

CODEOWNERS, and assigning PR reviews based on the team the author is on.

Ian Greulich
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 28, 2025

I have started using CODEOWNERS and teams.yml files to direct auto PR review requests, and it works quite well.

My dev team is splitting from one big team to two small teams, but who can work where is not changing. That is to say both teams still own all the code.

What I need to be able to do is direct a PR to only select as it's reviewers devs from the other members of the same team.

I have not found a way to do that with the CODEOWNERS file based on the information I have read here - https://support.atlassian.com/bitbucket-cloud/docs/set-up-and-use-code-owners/

Is that something like that is possible?

1 answer

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 29, 2025

G'day, @Ian Greulich 

Welcome to the community!

If I understand this correctly, you want to streamline the code review process by assigning pull requests to only the members of the same smaller team? If yes, I believe this is not directly supported by CODEOWNERS as it's traditionally used for assigning reviews based on file ownership, not dynamic team-based logic.

Perhaps you can consider splitting them into a different groups rather than one big groups.

Regards,
Syahrul

Ian Greulich
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 30, 2025

> Perhaps you can consider splitting them into a different groups rather than one big groups.

Unfortunately that is not an option.

Is it disappointing in how rigid CODEOWNERS truly is.

Oh well.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events