Skip to content

Comment to a PR with a message. By default, comments if message is not already present.

License

Notifications You must be signed in to change notification settings

smartlyio/comment-to-pr-action

Repository files navigation

Comment to PR action

This action will add a comment to a PR. If exclusive flag is not explicitly set to false, the comment will only be created if there is not already an identical comment present.

Inputs

comment

Required The text of the comment.

GITHUB_TOKEN

Required The token to access the repo, same one as is available in the action.

exclusive

Optional Do not comment if there is already an identical comment. Default true.

Example usage

uses: smartlyio/comment-to-pr-action@v3
with:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  comment: 'The kittens have decreed that this PR is acceptable!'

Development

Development scripts

  • Run typescript: npm run compile
  • Run test: npm run test
  • Run linters: npm run lint

Run all the above: npm run all

Release new version

Follow these steps to release a new version

  1. Create release branch: git checkout -b v{next-version}
  2. Compile your index.js file. ncc build index.js
  3. Push the required changes to git: git add dist/index.js git commit -m "New version with great changes" git push

About

Comment to a PR with a message. By default, comments if message is not already present.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published