English guide is here.
"LGTM" コメント時に画像を投稿します。
action.ymlをご覧ください。
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@v1
with:
image-url: "{ Your LGTM image URL }"
search-pattern: |
^(lgtm|LGTM)$
^:\+1:$
^(ヨシ|ヨシ)(!|!)?$
Use with Choose Random Action
name: 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]')) # botのコメントを除く
steps:
- uses: ddradar/choose-random-action@v1
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@v1
with:
image-url: ${{ steps.act.outputs.selected }}
必須です。
画像URLをセットします。
オプション。
このアクションが反応する正規表現パターンをセットします。
複数行検索(RegExp.prototype.multiline
)を行います。
未指定の場合は、^(lgtm|LGTM)$
がセットされます。
オプション。
issue にコメントするために使用する、GitHub のアクセストークン。 通常、指定する必要はありません。(GitHub Actions から提供されます。)
トークンには issues:write
権限が必要です。
未指定の場合は、${{ github.token }}
がセットされます。
ガイドをご覧ください。