Skip to content

Commit 8a48021

Browse files
noahzwebenclaude
andauthored
feat: Add Slack notification for new issues (#78)
Post new issues to the #claude-agent-sdk-feedback Slack channel. Uses selective notifications (new issues only) to avoid noise from comments and status changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <[email protected]>
1 parent 5ed113a commit 8a48021

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Post new issues to Slack
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
notify:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Post to Slack
12+
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # 2.1.1
13+
with:
14+
method: chat.postMessage
15+
token: ${{ secrets.SLACK_BOT_TOKEN }}
16+
payload: |
17+
{
18+
"channel": "C09HY5E0K60",
19+
"text": "New issue opened in ${{ github.repository }}",
20+
"blocks": [
21+
{
22+
"type": "section",
23+
"text": {
24+
"type": "mrkdwn",
25+
"text": "*New Issue:* <${{ github.event.issue.html_url }}|#${{ github.event.issue.number }} ${{ github.event.issue.title }}>"
26+
}
27+
},
28+
{
29+
"type": "section",
30+
"text": {
31+
"type": "mrkdwn",
32+
"text": "*Author:* ${{ github.event.issue.user.login }}"
33+
}
34+
}
35+
]
36+
}

0 commit comments

Comments
 (0)