tylermurry / ado-pr-auto-comment

An easy way to automatically add comments to an Azure DevOps pull request
MIT License
3 stars 4 forks source link

Task doesn't check if the run is actually a PR #4

Open DavidDeSloovere opened 3 years ago

DavidDeSloovere commented 3 years ago

Thanks for the extension!

We are using 1 pipeline for PR builds and release builds. The task will fail if the build is not triggered from a PR.

This can be added to the task: condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))

Would be great if it was mentioned in the readme, or better if the task has built in check.

tylermurry commented 3 years ago

This is a sensible recommendation. I will likely have a PR out for this by the end of this week unless you beat me to it 😃

DavidDeSloovere commented 3 years ago

I might give it a shot. Looks like a good way to get to know this extension model. Might not get to it this week though, so give me some time ;-)

lg2de commented 1 year ago

@tylermurry , where can we find the PR you planned to create? Do you still working on this nice extension?