From 340703d5bd7530adcfce6cb346335879d4519da2 Mon Sep 17 00:00:00 2001 From: nrslib <38722970+nrslib@users.noreply.github.com> Date: Sun, 1 Feb 2026 10:18:22 +0900 Subject: [PATCH] add SLACK WEBHOOK --- .github/workflows/takt-action.yml | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/takt-action.yml b/.github/workflows/takt-action.yml index 6d01089..5e3a759 100644 --- a/.github/workflows/takt-action.yml +++ b/.github/workflows/takt-action.yml @@ -25,4 +25,32 @@ jobs: anthropic_api_key: ${{ secrets.TAKT_ANTHROPIC_API_KEY }} model: ${{ vars.TAKT_MODEL }} github_token: ${{ secrets.GITHUB_TOKEN }} - log_output: ${{ vars.TAKT_LOG_OUTPUT || 'false' }} \ No newline at end of file + log_output: ${{ vars.TAKT_LOG_OUTPUT || 'false' }} + + - name: Notify Slack + if: always() + uses: slackapi/slack-github-action@v2.0.0 + with: + webhook: ${{ secrets.SLACK_WEBHOOK_URL }} + payload: | + { + "text": "${{ job.status == 'success' && '✅' || '⚠️' }} TAKT Action ${{ job.status }}", + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*${{ job.status == 'success' && '✅' || '⚠️' }} TAKT Action ${{ job.status }}*\n<${{ github.event.issue.html_url }}|Issue #${{ github.event.issue.number }}>: ${{ github.event.issue.title }}\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View logs>" + } + }, + { + "type": "context", + "elements": [ + { + "type": "mrkdwn", + "text": "Triggered by @${{ github.event.comment.user.login }}" + } + ] + } + ] + } \ No newline at end of file