Hi Viet,
This is totally expected behaviour. Check out BSERV-9860, where one of the Bitbucket Server dev team responded to a similar request.
The tl;dr reason is that default reviewers are suggested, not enforced. Even when creating a PR via the UI, default reviewers can be removed before creating the pull request.
If you need to include them on PR's created via the API I'd recommend retrieving the default reviewers via this api so you can then include them when creating the PR.
Cheers,
Dave Chevell
Thank you, Dave.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Dave ChevellIs this the endpoint you would suggest to access all default reviewers for a particular repo/source branch/target branch?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Dave Chevell the solution link shared over BSERV-9860 is not found. Could you please advise an alternative? I have the same request and need to add default reviewers while creating PRs via API.
https://developer.atlassian.com/static/rest/bitbucket-server/latest/bitbucket-default-reviewers-rest.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Take a look at this https://github.com/sourcegraph/sourcegraph/issues/14746
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Plan, prioritize, and deliver marketing projects seamlessly. See how Jira supports your team's success. Start today!
Start now! 🚦Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.