Skip to content

Latest commit

 

History

History
42 lines (36 loc) · 2.13 KB

File metadata and controls

42 lines (36 loc) · 2.13 KB

github/comment-reaction

usages test-github-comment-reaction

React to the given comment with an emoji (default +1).

Inputs

Name Description Required Default
comment-id The GitHub commentId false ${{ github.event.comment.id }}
emoji The GitHub emoji (see https://docs.github.com/en/rest/reactions?apiVersion=2022-11-28#about-reactions) false +1
github-token The GitHub access token. false ${{ github.token }}
repository The GitHub repository (format: ORG/REPO) false ${{ github.repository }}

Usage

on:
  issue_comment:
    types:
      - created
jobs:
  react:
    runs-on: ubuntu-latest
    if: ${{ github.event.issue.pull_request }}
    permissions:
      pull-requests: write
    steps:
      - uses: elastic/oblt-actions/github/comment-reaction@v1
        with:
          emoji: '-1'
      # ...