CSEDevOps/CreatePrComment
dependabot[bot] 126ca38ef4
Bump ansi-regex from 4.1.0 to 4.1.1 in /CreatePrComment (#28)
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>
2022-04-02 14:33:55 -07:00
..
docs/images PRCommentTask codebase from Tsuyoshi's repo (#20) 2022-02-15 14:11:43 -08:00
src PRCommentTask codebase from Tsuyoshi's repo (#20) 2022-02-15 14:11:43 -08:00
task PRCommentTask codebase from Tsuyoshi's repo (#20) 2022-02-15 14:11:43 -08:00
tests PRCommentTask codebase from Tsuyoshi's repo (#20) 2022-02-15 14:11:43 -08:00
.gitignore PRCommentTask codebase from Tsuyoshi's repo (#20) 2022-02-15 14:11:43 -08:00
CONTRIBUTION.md PRCommentTask codebase from Tsuyoshi's repo (#20) 2022-02-15 14:11:43 -08:00
LICENSE PRCommentTask codebase from Tsuyoshi's repo (#20) 2022-02-15 14:11:43 -08:00
LICENSE.md PRCommentTask codebase from Tsuyoshi's repo (#20) 2022-02-15 14:11:43 -08:00
README.md PRCommentTask codebase from Tsuyoshi's repo (#20) 2022-02-15 14:11:43 -08:00
package-lock.json Bump ansi-regex from 4.1.0 to 4.1.1 in /CreatePrComment (#28) 2022-04-02 14:33:55 -07:00
package.json npm updates (#26) 2022-02-15 14:50:37 -08:00
tsconfig.json PRCommentTask codebase from Tsuyoshi's repo (#20) 2022-02-15 14:11:43 -08:00
vss-extension-icon.png PRCommentTask codebase from Tsuyoshi's repo (#20) 2022-02-15 14:11:43 -08:00
vss-extension.json PRCommentTask codebase from Tsuyoshi's repo (#20) 2022-02-15 14:11:43 -08:00

README.md

Create PR Comment Task

Comment

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.

CreatePRCommentTask

Details

Task 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.

ServiceConnection

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.