Post LGTM Image
日本語版のガイドはこちらです。
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
steps:
- uses: ddradar/lgtm-action@v2.0.2
with:
image-url: "{ Your LGTM image URL }"
search-pattern: |
^(lgtm|LGTM)$
^:\+1:$
Choose Random Action
Use withname: 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
steps:
- uses: ddradar/choose-random-action@v2
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@v2.0.2
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 permission) |
${{ github.token }} |
Screenshots
License
Contributing
See guide.