lazy-actions / lgtm-image-action

GitHub Actions to post LGTM image when reviewer approves pull request.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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'

About

GitHub Actions to post LGTM image when reviewer approves pull request.

License:MIT License


Languages

Language:TypeScript 100.0%