Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PullRequestcontribute access needed error

I am using custom task to create a pull request in release pipeline. But the task fails with error as below.

error: {"$id":"1","innerException":null,"message": You need the Git 'PullRequestContribute' permission to perform this action.

whereas, I have correctly given access for pull request contribute in repository security permissions.

enter image description here

like image 646
priya Avatar asked Mar 10 '26 21:03

priya


1 Answers

You need to grant the Build Service user permissions for this to work.

Here's how:

  1. Go to Project Settings and Repositories
  2. Select the Repository you'd like to configure these permissions for
  3. Go to Security
  4. You should see 2 standard users if you have Azure Pipelines setup. (1. The admin who set up the organisation and 2. A build service user named as '[PROJECT NAME] Build Service ([ORGANISATION NAME])) Example: 1. John Doe and 2. Business unit1 Build Service (MyBusiness)
  5. Select the Build Service user to change it's permissions
  6. Allow the user to Contribute, Contribute to pull requests, Create branch (if necessary)

All done.

like image 79
aiSolutions Avatar answered Mar 15 '26 04:03

aiSolutions



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!