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

Auto-approve the PR #189

Open plavoie-nms opened 2 days ago

plavoie-nms commented 2 days ago

We have a policy of requiring one reviewer per PR, and the release should be able to auto-approve and auto-complete the PR. The bypass option does not work because it bypasses the build validation too, and it should not.

Is it possible for the task to approve the PR ?

shayki5 commented 1 day ago

So do you want only bypass the review but not the build?

plavoie-nms commented 1 day ago

Yes, to meet the minimum reviewer count, the pipeline needs to approve its own PR.

shayki5 commented 1 day ago

I think it's impossible :( Or auto-complete and you need to approve manually or bypass all the policies.