Skip to content

lgtm-image-action

Actions
Post LGTM image when reviewer approves pull request
v1.0.0
Latest
Star (1)

Tags

 (2)

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'

lgtm-image-action 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 LGTM image when reviewer approves pull request
v1.0.0
Latest

Tags

 (2)

lgtm-image-action 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.