Skip to content

lawliet89/comment-when-approved-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

comment-when-approved-action

This github action posts a comment to pull requests when they get approved. Inspired by pullreminders/label-when-approved-action.

Usage

Create a new yaml file like the following script and add it to your .github/workflow.

on: pull_request_review
name: Comment on approved pull requests
jobs:
  commentWhenApproved:
    name: Comment when approved
    runs-on: ubuntu-latest
    steps:
    - name: Comment when approved
      uses: basisai/comment-when-approved-action@master
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        COMMENT: "Awesome!"
        REACTION: "heart"
        TRIGGER_LABELS: "some label"

Environment Variables:

  • COMMENT: Required. The content of the comment
  • REACTION: Optional. The github reaction to be added to the comment
  • TRIGGER_LABELS: Optional. Only pull requests with these labels will trigger this action. Labels should be separated by a comma.

Demo

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.8%
  • Dockerfile 10.2%