Adding pull request support via API v2
Colin Powell
Branch: powellc/bitbucket-cli:feature/add-pull-requests
Branch: zhemao/bitbucket-cli:master
Merged
Merged pull request
Merge branch 'feature/add-pull-requests' of bitbucket.org:powellc/bitbucket-cli into feature/add-pull-requests
Hey there.
So the changes below are a first attempt at adding a pull request command, which would look something like:
bb pull_request --owner powellc feature/add-pull-requests master
There are a lot of rough edges to it, as I've never built out CLI tools with python. Furthermore, the post data is currently spitting back an error from BitBucket. I tried using the same data in Postman on Chrome to make sure the submission was being made correctly and got the same response.
I then tried the actual sample POST from the BitBucket API v2 documentation and it spit back the same error. So my feeling is that my implementation is correct and that there's something wonky with BitBucket. I've got a support request in