You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
LGTM Reaction
v0.5.4
Send LGTM reaction as image or GIF when we say lgtm
.
Currently supports LGTM.app and GIPHY.
Key | Value | Required |
---|---|---|
GITHUB_TOKEN |
${{ secrets.GITHUB_TOKEN }} |
true |
GIPHY_API_KEY |
${{ secrets.GIPHY_API_KEY }} |
true if jobs.<job_id>.steps.with.source == giphy |
GITHUB_REPOSITORY |
${{ github.repository }} |
true |
GITHUB_ISSUE_NUMBER |
${{ github.event.issue.number }} |
true if on.issue_comment.types == [created] |
GITHUB_COMMENT_BODY |
${{ github.event.comment.body }} |
true if on.issue_comment.types == [created] |
GITHUB_COMMENT_ID |
${{ github.event.comment.id }} |
true if on.issue_comment.types == [created] |
GITHUB_PULL_REQUEST_NUMBER |
${{ github.event.pull_request.number }} |
true if on.pull_request_review.types == [submitted] |
GITHUB_REVIEW_BODY |
${{ github.event.review.body }} |
true if on.pull_request_review.types == [submitted] |
GITHUB_REVIEW_ID |
${{ github.event.review.id }} |
true if on.pull_request_review.types == [submitted] |
Key | Default | Required | Note |
---|---|---|---|
trigger |
'["^lgtm$", "^[gG]ood [jJ]ob!?$"]' |
false |
|
override |
false |
false |
|
source |
lgtmapp |
false |
lgtmapp or giphy |
jobs.<job_id>.steps.with.trigger
should be a JSON string array of regexp.
name: Send LGTM reaction
on:
issue_comment:
types: [created]
pull_request_review:
types: [submitted]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: micnncim/action-lgtm-reaction@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIPHY_API_KEY: ${{ secrets.GIPHY_API_KEY }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_ISSUE_NUMBER: ${{ github.event.issue.number }}
GITHUB_COMMENT_BODY: ${{ github.event.comment.body }}
GITHUB_COMMENT_ID: ${{ github.event.comment.id }}
GITHUB_PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }}
GITHUB_REVIEW_BODY: ${{ github.event.review.body }}
GITHUB_REVIEW_ID: ${{ github.event.review.id }}
with:
trigger: '[".*looks good to me.*"]'
override: true
source: 'giphy'