Skip to content

A GitHub action for posting comments in pull requests

License

Notifications You must be signed in to change notification settings

dannyskoog/pull-request-comment

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Pull Request Comment

A GitHub action for posting comments in pull requests

Usage

Basic

Always post a new comment.

on: pull_requestjobs: new_comment: runs-on: ubuntu-lateststeps: - uses: dannyskoog/pull-request-comment@v1with: message: This is a new comment

Upsert comment

Use the marker input to update an existing comment. If not found - a new comment will be posted.

on: pull_requestjobs: upsert_comment: runs-on: ubuntu-lateststeps: - uses: dannyskoog/pull-request-comment@v1with: message: This is a new commentmarker: <!-- some-unique-text --> - run: sleep 5sshell: bash - uses: dannyskoog/pull-request-comment@v1with: message: This comment was updatedmarker: <!-- some-unique-text -->

Inputs

NameDescriptionRequiredDefault
messageBody of the comment
markerHidden text to look for in existing comments
tokenGitHub access token to use when posting the comment${{github.token }}

Contributing

Build

The build steps transpiles the src/main.ts to dist/index.js which is used in a NodeJS environment. It is handled by vercel/ncc compiler.

$ npm run build

About

A GitHub action for posting comments in pull requests

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •