Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
message-circle

GitHub Action

Comment on Issue

1.0.2alpha1 Pre-release

Comment on Issue

message-circle

Comment on Issue

Comments on an issue with the provided message

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Comment on Issue

uses: ben-z/actions-comment-on-issue@1.0.2alpha1

Learn more about this action in ben-z/actions-comment-on-issue

Choose a version

Comment Pull Request - GitHub Actions

A GitHub action that comments with a given message the pull request linked to the pushed branch. You can even put dynamic data thanks to Contexts and expression syntax.

Usage

on: pull_request

jobs:
  example_comment_pr:
    runs-on: ubuntu-latest
    name: An example job to comment a PR
    steps:
      - name: Checkout
        uses: actions/checkout@v1

      - name: Comment PR
        uses: thollander/actions-comment-pull-request@master
        with:
          message: 'Example of message !'
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

See examples in opened PR !

ℹ️ : Make sure to listen to pull_request events. Otherwise, it will not be able to comment the PR and you'll have an error.

Contributing

Build

The build steps transpiles the src/main.ts to lib/main.js which is used in the Docker container. It is handled by Typescript compiler.

$ npm run build