Giter VIP home page Giter VIP logo

Comments (6)

shayki5 avatar shayki5 commented on September 25, 2024

Hi @swonge!
Can you run the pipeline with the variable system.debug = true and share here the logs?

from azure-devops-create-pr-task.

swonge avatar swonge commented on September 25, 2024

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.

swonge avatar swonge commented on September 25, 2024

Press the wrong button, please reopen this case

from azure-devops-create-pr-task.

shayki5 avatar shayki5 commented on September 25, 2024

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.

swonge avatar swonge commented on September 25, 2024

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.

shayki5 avatar shayki5 commented on September 25, 2024

it's great! thanks for the update!

from azure-devops-create-pr-task.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.