After a bit of fiddling with the CODEOWNERS file, I managed to get it to work for pull requests created through the web UI, but it's not being respected when creating pull requests through the REST API (at least not when using an access token). Is that expected, is it a bug or did I do something wrong?
If this is normal behavior, it should at least be mentionned in the documentation.
Community moderators have prevented the ability to post new answers.
OK, so when I went to open the support ticket, the AI generated answer was that this is a known problem and that there is already a Jira issue about it.
https://jira.atlassian.com/browse/BCLOUD-23663
I should have checked there first, sorry about that.
Welcome to the community!
Thanks for reporting this. To help us investigate, could you please confirm whether the same CODEOWNERS rule adds reviewers when a pull request is created through the Bitbucket web UI, but not when it is created through the REST API or otherwise?
Regards,
SYahrul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Syarhul,
Yes, I confirm that this is the observed behavior, see screenshots below.
Edit: This is two PR created from the exact same branch, targeting the same ref for main. The first one has been created through the API and doesn't have the specified reviewer, the second one is from the web UI and the reviewers was automatically added like it's supposed to.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Noted. Could you please submit a support ticket through our support portal and include the affected repository along with the codeowners configuration?
This information will help us investigate the issue further. Since this is a public forum, understanding your codeowner config is essential for us to reproduce and continue the investigation.
Regards,
Syahrul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Syahrul,
Sure, I will open a support ticket for this.
Thanks for you help.
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.