Hello,
I'm using bitbucket API to create a bot that is executed inside pipelines and does the following:
Im having problems with the last step. I am able to create the pull request if I don't include any reviewers. However If I try to include everyone on our team, I get an error like this:
"statusCode": 400,
"body": {
"type": "error",
"error": {
"fields": {
"reviewers": [
"xxx is the author and cannot be included as a reviewer."
]}
,"message": "Bad request"
}
}
Where xxx is me in this case.
How can I determine who is the author that should be excluded ? If I check the commit history from the API the latest commit was made by the bot, so technically I'm not the author of the PR. It this because I'm the author of the parent commit ?
This is being triggered from bitbucket pipelines.
Can this be related with the fact that I'm using my own account with an app password to make the request to the API ?
Thanks in advance
At the end the problem was that the user making the API call to create the pull request was being included as reviewer. It has nothing to do with commit authoring.
Regards
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.