shayki5 / azure-devops-create-pr-task

Azure Pipelines task to create PR in Azure DevOps or GitHub during a build or release pipeline
https://marketplace.visualstudio.com/items?itemName=ShaykiAbramczyk.CreatePullRequest
MIT License
58 stars 35 forks source link

[warning]Can't Bypass #103

Closed natanefabene closed 3 years ago

natanefabene commented 3 years ago

I am using the By Pass policy for Pull Request. But it's returning me

2021-06-08T16:57:48.7728193Z ##[warning]Can't Bypass PR 26. 2021-06-08T16:57:48.7738586Z ##[debug]Processed: ##vso[task.logissue type=warning]Can't Bypass PR 26. 2021-06-08T16:57:48.7741288Z ##[warning]{"$id":"1","innerException":null,"message":"Invalid argument value.\r\nParameter name: The pull request to update was not valid.","typeName":"Microsoft.TeamFoundation.SourceControl.WebServer.InvalidArgumentValueException, Microsoft.TeamFoundation.SourceControl.WebServer","typeKey":"InvalidArgumentValueException","errorCode":0,"eventId":0} 2021-06-08T16:57:48.7743388Z ##[debug]Processed: ##vso[task.logissue type=warning]{"$id":"1","innerException":null,"message":"Invalid argument value.\r\nParameter name: The pull request to update was not valid.","typeName":"Microsoft.TeamFoundation.SourceControl.WebServer.InvalidArgumentValueException, Microsoft.TeamFoundation.SourceControl.WebServer","typeKey":"InvalidArgumentValueException","errorCode":0,"eventId":0} 2021-06-08T16:57:48.7774612Z ##[warning]The remote server returned an error: (400) Bad Request.

The "Bypass policies when completing pull requests" is allow to Build Service.

image

natanefabene commented 3 years ago

The problem was Bypass Reason. I removed it and it worked.