I have such CODEOWNERS file in the root of my project:
@@@Business @user1 @Nick
* @@Business
!cool-api*business-props* @@Business
I thought that with such a configuration, approval from users in the "Business" group would be required for all files in the project except for files that match the pattern cool-api*business-props*
(this is my goal). However, with this configuration, absolutely all files, including those that match the pattern cool-api*business-props*
, require approval from users in the "Business" group. What configuration will allow me to achieve the goal where all files, except those that match the specific pattern, need approval from the "Business" group?
Hi @LolaRumpler and welcome to the Atlassian community!
If you use the app Code Owners for Bitbucket Cloud, the required syntax for your goal is as follows:
@@@Business @user1 @User
* @@Business
!cool-api/business-props/**
You can try this out in our Code Owners Playground.
For more information, please check our app docs.
Hope that helps.
Best,
Michael from Mibex (app vendor)
Hi @LolaRumpler and welcome to the community!
The definition you have in your CODEOWNERS files looks similar to the definitions used by this app:
If your question concerns this specific app, please create a question in the Apps group via
Bitbucket Cloud recently added a built-in CODEOWNERS feature. The set-up and configuration are slightly different than the app's. You can find the documentation for this feature here:
If you experience any issues with Bitbucket's built-in CODEOWNERS feature, please feel free to let me know.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi guys!
I use Code Owners for Bitbucket Cloud and yes, I finnaly came up with the decision:
@@@Business @user1 @User
* @@Business
!cool-api*business-props*
Thank you for your answers!
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.