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

Support custom line delimiter #7

Open dennis-sig opened 5 months ago

dennis-sig commented 5 months ago

First of all, thanks for making this super-useful extension!

We use the extension to dynamically creates comments based on the output from another task. We load this output into a variable using ##vso[task.setvariable variable=FOO;] as described here, and then feed this variable into the pr-auto-comment task.

This works for single-line comments, but it only comments the first line in case of multi-line values. pr-auto-comment can handle multi-line values just fine, the problem is the variable doesn't accept multi-line values. Would it be possible to add support for a custom line delimiter, similar to how you already support custom comment delimiters? Alternatively, it could also be this is already possible and we're just missing something, but there is not a ton of examples out there.