I'm trying to create a pull request from the command line, and if I don't specify reviewers then it seems to work without issue.
However, if I specify a reviewer (which I really want to do), then I see an error
{"type": "error", "error": {"fields": {"reviewers": ["John Doe does not have access to view this pull request"]}, "message": "reviewers: John Doe does not have access to view this pull request"}}
The command I am issuing is:
curl https://api.bitbucket.org/2.0/repositories/theprojectrepo/myrepo/pullrequests -u fakeuser:fakepassword --request POST --header "Content-Type: application/json" -d @@/Users/me/Desktop/pullrequest.jso
The contents of /Users/me/Desktop/pullrequest.json is:
{
"title": "The PR Title",
"description": "A PR created from the command line",
"source": {
"branch": {
"name": "mybranch"
},
"repository": {
"full_name": "theprojectrepo/myrepo"
}
},
"destination": {
"branch": {
"name": "develop"
}
},
"reviewers": [
{
"uuid": "{b779f9a3...000ff510f1c1}"
}
],
"close_source_branch": false
}
Any ideas as to why I'm seeing the error and how to resolve it?
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.