I have a master branch with merge permissions being set to only pull request only, with only a handful of users authorized to merge said pull requests.
The problem is that I am trying to automate delivery process, but I cannot merge a pull request into master with the /merge/ endpoint. The error I get is 400 - "merging a pull request requires write on origin and read on fork"
The setups tried are as follows:
1) OAUTH Consumer from the Team repository
2) OAUTH Consumer from my own user (who is explicitly stated that I am able to merge into master)
Now, if I authorize everybody to merge pull requests into master, REST API endpoint works fine. But I cannot leave it at this.