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