The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot merge pull request with REST API due to a permission problem

Marcin Kalinowski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 23, 2018

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.

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 26, 2018

Hi Marcin

Can you share the code you're using so we can have a look?

Have you tried with any of the other authorized users and are getting the same error?

Let us know!
Ana

TAGS
AUG Leaders

Atlassian Community Events