Skip to content

Latest commit

 

History

History
40 lines (36 loc) · 950 Bytes

README.md

File metadata and controls

40 lines (36 loc) · 950 Bytes

traq-webhook

traQ に github actions + webhook を用いて投稿するようのやつ

入力

webhook-id

必須 Webhook の ID

webhook-secret

Webhook の Secret (Secure Webhookの場合必須)

channel-id

投稿先のチャンネル (入力しなければデフォルトのチャンネル)

message

投稿するメッセージ (入力しなければ自動生成されます)

使用例

on:
  issues:
    types: [opened, edited, closed, reopened]
  issue_comment:
    types: [created, edited]
  pull_request:
    types: [opened, edited, closed, review_requested]
  pull_request_review:
    types: [submitted]
  release:
    types: [released]
  create

permissions: read-all

jobs:
  webhook:
    runs-on: ubuntu-latest
    steps:
    - name: post to traQ
      uses: SSlime-s/[email protected]
      with:
        webhook-id: ${{ secrets.WEBHOOK_ID }}
        webhook-secret: ${{ secrets.WEBHOOK_SECRET }}