Closed lukelloydagi closed 1 month ago
If i'm not mistaken, the comment is created as resolved if there are no MegaLinter errors, but as Active if there are errors :)
so it does 👏🏻
so it does 👏🏻
this code looks strange with "fixed" or 1 as status, but it seems to work 🤣
Describe the solution you'd like AzureCommentReporter currently creates the PR comment as resolved, however it would be more useful to have the comment created as active. This allows for branch policies requiring comments to be resolved to be blocked until the MegaLinter output has been reviewed / alongside a peer review.
Would it be better to have the active vs resolved status as a toggle/environment variable to allow users to select what works for them?
Additional context https://learn.microsoft.com/en-us/azure/devops/repos/git/review-pull-requests?view=azure-devops&tabs=browser#change-comment-status
https://learn.microsoft.com/en-us/rest/api/azure/devops/git/pull-request-threads/create?view=azure-devops-rest-7.1&tabs=HTTP#commentthreadstatus