Coder Social home page Coder Social logo

keisukeyamashita / action-lgtm-reaction Goto Github PK

View Code? Open in Web Editor NEW

This project forked from micnncim/action-lgtm-reaction

0.0 2.0 0.0 7.94 MB

Action to send LGTM reaction as image when we say LGTM

Home Page: https://github.com/marketplace/actions/lgtm-reaction

License: MIT License

Dockerfile 2.12% Go 97.88%

action-lgtm-reaction's Introduction

LGTM Reaction

CI Release Marketplace

Send LGTM reaction as image or GIF when we say lgtm.

Currently supports LGTM.app and GIPHY.

Usage

Create Workflow

jobs.<job_id>.steps.env

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]

jobs.<job_id>.steps.with

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.

Example

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'

Projects using this action

License

MIT License

action-lgtm-reaction's People

Contributors

gep13 avatar micnncim avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.