Skip to content
thumbs-up

GitHub Action

lgtm-image-action

v1.0.0 Latest version

lgtm-image-action

thumbs-up

lgtm-image-action

Post LGTM image when reviewer approves pull request

Installation

Copy and paste the following snippet into your .yml file.

              

- name: lgtm-image-action

uses: lazy-actions/lgtm-image-action@v1.0.0

Learn more about this action in lazy-actions/lgtm-image-action

Choose a version

LGTM Image Action

lgtm

Feature

Post LGTM image when reviewer approves pull request.
The image is randomly selected from LGTMoon.

sample

Inputs

jobs.<job_id>.steps.with

Key Required Type Default Value Description
repo-token true string N/A ${{ secrets.GITHUB_TOKEN }}
favorite-image false string (comma separated) '' Your favorite image urls. If not, choose randomly from LGTMoon

Example

Basic

name: Auto LGTM Image Submitter

on:
  pull_request_review:
    types: [submitted]

jobs:
  build:
    if: ${{ github.event.review.state == 'approved' }}
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - uses: lazy-actions/lgtm-image-action@main
        with:
          repo-token: ${{ secrets.GITHUB_TOKEN }}

Use your favorite LGTM image

jobs:
  build:
    if: ${{ github.event.review.state == 'approved' }}
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - uses: lazy-actions/lgtm-image-action@main
        with:
          repo-token: ${{ secrets.GITHUB_TOKEN }}
          favorite-image: 'https://your.favorite/image1.png,https://your.favorite/image2.png'