kenke7 / comment-on-pr

A GitHub Action to comment on the relevant open PR when a commit is pushed.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Comment on PR via GitHub Action

A GitHub action to comment on the relevant open PR when a commit is pushed.

Usage

  • Requires the GITHUB_TOKEN secret.
  • Requires the comment's message in the msg parameter.
  • Supports push and pull_request event types.

Sample workflow

name: comment-on-pr example
on: pull_request
jobs:
  example:
    name: sample comment
    runs-on: ubuntu-latest
    steps:
      - name: comment PR
        uses: unsplash/comment-on-pr@master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          msg: "Check out this message!"
          check_for_duplicate_msg: false  # OPTIONAL 

About

A GitHub Action to comment on the relevant open PR when a commit is pushed.

License:MIT License


Languages

Language:Ruby 67.8%Language:Dockerfile 32.2%