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

Can't Bypass Policy if Set Auto Complete is true #119

Closed mwazzangrg closed 2 years ago

mwazzangrg commented 2 years ago

Hi team, this is a great plugin!

I'm having an issue with Bypass Policy and Set Auto Complete

Basically I need to tick both. The problem is that when I tick Set Auto Complete box, Bypass Policy box disappears.

Is this a bug or by design?

What I need is to bypass the policy, complete the PR and delete the original branch.

shayki5 commented 2 years ago

Hi! It's by design, when you choose "Bypass" it's auto complete the PR and bypass the policies. I don't know what happenes to the source branch, need to check.

mwazzangrg commented 2 years ago

Thanks Shayki

shayki5 commented 2 years ago

@mwazzangrg try click on "Auto complete" check the "Delete source branch" and then click on "Bypass", maybe it will save the configuration and will delete the branch. can you check?

mwazzangrg commented 2 years ago

Thanks @shayki5 Just tried it, it worked!!