From 15c063deb0a6a2473fa52a6a5f220acf823c5aa5 Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Thu, 17 Oct 2019 07:55:30 +0100 Subject: [PATCH] Add LGTM Action --- .github/workflows/lgtm.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/lgtm.yml diff --git a/.github/workflows/lgtm.yml b/.github/workflows/lgtm.yml new file mode 100644 index 0000000..a6ef930 --- /dev/null +++ b/.github/workflows/lgtm.yml @@ -0,0 +1,25 @@ +name: Send LGTM reaction +on: + issue_comment: + types: [created] + pull_request_review: + types: [submitted] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@1.0.0 + - uses: micnncim/action-lgtm-reaction@0.5.4 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + 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: '^(lgtm|LGTM)!?$' + override: true + source: lgtmapp