项目作者: lazy-actions

项目描述 :
GitHub Actions to post LGTM image when reviewer approves pull request.
高级语言: TypeScript
项目地址: git://github.com/lazy-actions/lgtm-image-action.git
创建时间: 2021-05-04T14:02:24Z
项目社区:https://github.com/lazy-actions/lgtm-image-action

开源协议:MIT License

下载


LGTM Image Action

lgtm

Feature

Post LGTM image when reviewer approves pull request.

The image is randomly selected from LGTMoon.

sample

Inputs

jobs..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

  1. name: Auto LGTM Image Submitter
  2. on:
  3. pull_request_review:
  4. types: [submitted]
  5. jobs:
  6. build:
  7. if: ${{ github.event.review.state == 'approved' }}
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v2
  11. - uses: lazy-actions/lgtm-image-action@main
  12. with:
  13. repo-token: ${{ secrets.GITHUB_TOKEN }}

Use your favorite LGTM image

  1. jobs:
  2. build:
  3. if: ${{ github.event.review.state == 'approved' }}
  4. runs-on: ubuntu-latest
  5. steps:
  6. - uses: actions/checkout@v2
  7. - uses: lazy-actions/lgtm-image-action@main
  8. with:
  9. repo-token: ${{ secrets.GITHUB_TOKEN }}
  10. favorite-image: 'https://your.favorite/image1.png,https://your.favorite/image2.png'