126ca38ef4
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](https://github.com/chalk/ansi-regex/compare/v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
---|---|---|
.. | ||
docs/images | ||
src | ||
task | ||
tests | ||
.gitignore | ||
CONTRIBUTION.md | ||
LICENSE | ||
LICENSE.md | ||
README.md | ||
package-lock.json | ||
package.json | ||
tsconfig.json | ||
vss-extension-icon.png | ||
vss-extension.json |
README.md
Create PR Comment Task
Create a Pull Request comment if a CI is triggered by Pull Request.
How to use
Configuration
Install this extension to your project. Find the CreatePRCommentTask.
Details
Name | Description |
---|---|
Azure DevOps PAT | Select Azure DevOps Personal Access Token. or you can create new one |
Comment | If the pipeline is executed by Pull Request Validation, this task create a Pull Request Comment. |
On the Comment, you can use Variables. The variables will be substituted by the actual value. e.g. $(CWI.Id)
.
The comment becomes message body of your Pull Request Comment.
Personal Access Token Service Connection
Put your Azure DevOps Personal Access Token in PAT
. The PAT requires permission to write Code. For more detail, Pull Request Thread Comments - Create. Connection name
is just a label of this service connection. Server URL
is not used currently, however it might be good as memo which you use it for.
Example
Sample of the Comment.
CredScan reports a <a href="https://dev.azure.com/csedevops/DevSecOps/_workitems/edit/$(CWI.Id)">Bug</a>. Please review it.
Contribution
For more details here.