Reputation: 33
I have this task that is supposed to add file contents to the PR comment:
- task: GitHubComment@0
inputs:
gitHubConnection: 'Github PR comment'
repositoryName: 'myrepo/'
comment: |
Validation Failed
<details>
<summary>Report Details</summary>
```xml
$(XML_REPORT)
```
</details>
condition: eq(variables['addGithubComment'], 'true')
displayName: 'Update github comment'
However, GitHub doesn't seem to add all the contents on the PR comment.
I was wondering if it's possible to attach the file directly to the comment instead of adding the file contents to the comment as text.
Upvotes: 1
Views: 15