Forums

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

CODEOWNERS not working

Gaspar Oliveira
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!
May 28, 2026

Hi, 

I've followed this tutorial (https://support.atlassian.com/bitbucket-cloud/docs/set-up-and-use-code-owners/) on how to setup code owners on my repository but is not working. 

After creating the file and having it on the main branch, the owners are not visible on the right sidebar, the option to set code owners on a merge check and on a new pull-request the default reviewers from the CODEOWNERS file are added as default reviewers.

I've tried these configurations but with the same unsuccessful result:

- ./bitbucket/CODEOWNERS using user@email.com

- ./bitbucket/CODEOWNERS using user@email.com and teams.yaml

- ./bitbucket/CODEOWNERS using @TeamS/name and teams.yaml

 

Regarding my setup, I have Bitbucket Cloud with Premium price plan. The users login via Google SSO.

 

1 answer

1 accepted

1 vote
Answer accepted
Arkadiusz Wroblewski
Community Champion
May 28, 2026

Hello @Gaspar Oliveira 

The most likely issue is a "tiny tiny tiny" typo in your folder path. Bitbucket won't recognize `./bitbubeck/CODEOWNERS`; it must be exactly `.bitbucket/CODEOWNERS` at the repository root.🫣

image.png

Also, keep in mind that Bitbucket reads this file from the *target* branch, meaning the code ownership rules must already exist on your destination branch to trigger for new PRs. If your path is fine, double-check your syntax: workspace groups require the `@workspace-slug/group-slug` format, and custom teams via `teams.yaml` use `@teams/team-name`. Try testing a simple wildcard rule like `* email@example.com` to see if it hooks in.

Best,

Arkadiusz🤠

Gaspar Oliveira
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!
May 28, 2026

Hi @Arkadiusz Wroblewski 

thank you for the reply.

The typo was only on the post not that path 😅 i've updated the post to fix that.

I've also updated the usage of the teams on the post because it also had a typo.

My last attempt was to only have a single line on the CODEOWNERS file like:
/directory-name/** user@email.com

this is still not working, but I can try to set it do the wildcard to see if it triggers it.

Like Arkadiusz Wroblewski likes this
Gaspar Oliveira
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!
May 28, 2026

After setting the wildcard it worked. After that I was able to set the file with the necessary setup to work as I wanted.

Thank you for the help

Like # people like this
Arkadiusz Wroblewski
Community Champion
May 28, 2026

@Gaspar Oliveira 

No need to thank us! 😊

We're here for the community and for helping each other out.

Have a great day ☀️

Arkadiusz 🤠

Like # people like this

Suggest an answer

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

Atlassian Community Events