Comments (6)
Hi @swonge!
Can you run the pipeline with the variable system.debug
= true
and share here the logs?
from azure-devops-create-pr-task.
Hi shayki5,
below please finds the log below, by PAT has "full access" privilege. Thanks for your help
2020-08-11T15:23:53.6036149Z ##[section]Starting: Create Pull Request
2020-08-11T15:23:53.9190803Z ==============================================================================
2020-08-11T15:23:53.9191600Z Task : Create Pull Request
2020-08-11T15:23:53.9192178Z Description : Automatically create a Pull Request for Azure DevOps or GitHub repository from Build or Release pipeline, supports also multi target branch.
2020-08-11T15:23:53.9192552Z Version : 1.2.164
2020-08-11T15:23:53.9192969Z Author : Shayki Abramczyk
2020-08-11T15:23:53.9193558Z Help : More Information
2020-08-11T15:23:53.9196247Z ==============================================================================
2020-08-11T15:23:55.8552292Z The Source Branch is: refs/heads/Test
2020-08-11T15:23:55.8558448Z The Target Branch is: refs/heads/Test_Clone
2020-08-11T15:23:55.8559743Z The Title is: Pull Request "Test" to "Test_Clone"
2020-08-11T15:23:55.8570087Z The Description is: Pull request Descriptions go here
2020-08-11T15:23:55.8592620Z Is Reviewers are:
2020-08-11T15:23:55.8738880Z Is Draft Pull Request: False
2020-08-11T15:23:56.3247012Z 1 new commits! perofrm a Pull Request...
2020-08-11T15:23:56.3588279Z {
2020-08-11T15:23:56.3591891Z "isDraft": "False",
2020-08-11T15:23:56.3594431Z "description": "Pull request Descriptions go here",
2020-08-11T15:23:56.3595881Z "WorkItemRefs": "",
2020-08-11T15:23:56.3597158Z "sourceRefName": "refs/heads/Test",
2020-08-11T15:23:56.3598522Z "targetRefName": "refs/heads/Test_Clone",
2020-08-11T15:23:56.3599723Z "reviewers": "",
2020-08-11T15:23:56.3600917Z "title": "Pull Request "Test" to "Test_Clone""
2020-08-11T15:23:56.3602411Z }
2020-08-11T15:23:56.5604687Z *************************
2020-08-11T15:23:56.5621678Z ******** Success ********
2020-08-11T15:23:56.5640539Z *************************
2020-08-11T15:23:56.5662612Z Pull Request 25 created.
2020-08-11T15:23:56.9168705Z ##[warning]Can't set Auto Complete to PR 25.
2020-08-11T15:23:56.9185335Z ##[warning]{"$id":"1","innerException":null,"message":"TF401027: You need the Git 'GenericContribute' permission to perform this action. Details: identity 'Build\5f052158-4968-450b-9fdc-0ab8d8272b6a', scope 'branch'.","typeName":"Microsoft.TeamFoundation.Git.Server.GitNeedsPermissionException, Microsoft.TeamFoundation.Git.Server","typeKey":"GitNeedsPermissionException","errorCode":0,"eventId":3000}
2020-08-11T15:23:56.9276925Z ##[warning]The remote server returned an error: (403) Forbidden.
2020-08-11T15:23:56.9853430Z ##[section]Finishing: Create Pull Request
from azure-devops-create-pr-task.
Press the wrong button, please reopen this case
from azure-devops-create-pr-task.
Hi @swonge,
You need to give to the user Project Collection Build Service
and Build Service
permissions Contribute to pull request
in the git repository, please see issue #28.
from azure-devops-create-pr-task.
it works after grant allow permissions to "Contribute to pull requests" and "Contribute" for Project Collection Build Service(account) account
from azure-devops-create-pr-task.
it's great! thanks for the update!
from azure-devops-create-pr-task.
Related Issues (20)
- Please consider adding support for Linux Azure DevOps agents HOT 1
- Reviewer Id is empty when the $body is constructed. HOT 7
- Add option to use pullrequest template HOT 3
- Can we use this task for Create a PR on Bitbucket? HOT 2
- Does not work under Linux x64 agent HOT 1
- Running Task in self-managed agent behind a Proxy HOT 6
- Getting 403 Forbidden in the CreatePullRequestTask HOT 1
- Set the creator of the PR to the author of the commit instead of the Build Service User HOT 2
- Wildcard support in targetBranch HOT 7
- Create PR by other user than "project collection build service" HOT 9
- Running on Azure windows-latest agent pool still task is failing HOT 2
- Enhancement - Add work item via ID/URL HOT 1
- Getting error The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel HOT 13
- Automatically complete PR HOT 1
- 400 Bad Request to bypass PR policies HOT 4
- Feature request: add support for git tags
- Is "deleteSourch" a typo? HOT 1
- Version 1.2.363 breaks pipeline for branch with forward slash HOT 3
- Can't set Auto Complete to PR HOT 2
- Error (404) Not Found when adding reviewers on my PR (Azure DevOps) HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-devops-create-pr-task.