unsplash/comment-on-pr

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

152

stars

71

commits

Ruby

primary language

Feb 27, 2023

updated

README

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, pull_request and pull_request_review 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@v1.3.0
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          msg: "Check out this message!"
          check_for_duplicate_msg: false  # OPTIONAL
          delete_prev_regex_msg: "[0-9]"  # OPTIONAL
          duplicate_msg_pattern: "[A-Z]"  # OPTIONAL

Contributors

aaronklaassen

42 commits

tobloef

9 commits

TimmyCarbone

3 commits

unsplash/comment-on-pr

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

152

stars

71

commits

Ruby

primary language

Feb 27, 2023

updated

README

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, pull_request and pull_request_review 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@v1.3.0
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          msg: "Check out this message!"
          check_for_duplicate_msg: false  # OPTIONAL
          delete_prev_regex_msg: "[0-9]"  # OPTIONAL
          duplicate_msg_pattern: "[A-Z]"  # OPTIONAL

Contributors

aaronklaassen

42 commits

tobloef

9 commits

TimmyCarbone

3 commits

Languages

Ruby

76.7%

Dockerfile

23.3%