Skip to content

Post LGTM Image

Actions
Post image if you comment LGTM
v3.0.0
Latest
Star (1)

Tags

 (2)

Post LGTM Image

last commit release version Node.js CI/CD codecov CodeFactor License

日本語版のガイドはこちらです。

Post image if you comment "LGTM"

TOC

Usage

See action.yml

Basic

name: Send LGTM Image
on:
  issue_comment:
    types: [created]
  pull_request_review:
    types: [submitted]
jobs:
  post:
    runs-on: ubuntu-latest
    permissions:
      issues: write
      pull-requests: write
    steps:
      - uses: ddradar/lgtm-action@v3.0.0
        with:
          image-url: '{ Your LGTM image URL }'
          search-pattern: |
            ^(lgtm|LGTM)$
            ^:\+1:$
name: Send Random LGTM Image
on:
  issue_comment:
    types: [created]
  pull_request_review:
    types: [submitted]
jobs:
  post:
    runs-on: ubuntu-latest
    if: (!contains(github.actor, '[bot]')) # Exclude bot comment
    permissions:
      issues: write
      pull-requests: write
    steps:
      - uses: ddradar/choose-random-action@v3
        id: act
        with:
          contents: |
            https://example.com/your-lgtm-image-1.jpg
            https://example.com/your-lgtm-image-2.jpg
            https://example.com/your-lgtm-image-3.jpg
      - uses: ddradar/lgtm-action@v3.0.0
        with:
          image-url: ${{ steps.act.outputs.selected }}

Options

Name Required? Description Default
image-url Yes Set your image URL -
search-pattern No Set regexp pattern this action reacts.
This action uses Multi-line(RegExp.prototype.multiline) search.
^(lgtm|LGTM)$
token No GitHub Access Token to post issue comment. (requires issues:write and pull-requests:write permission) ${{ github.token }}

Screenshots

  1. Post "LGTM" or "lgtm" issue comment. Send issue comment
  2. Or review comment. Send review comment
  3. Post LGTM image automatically. LGTM image post

License

MIT License

Contributing

See guide.

Post LGTM Image is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Post image if you comment LGTM
v3.0.0
Latest

Tags

 (2)

Post LGTM Image is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.