Skip to content

Commit 53159e3

Browse files
authored
ci: add Slack notification workflow for new issues (#383)
Send issue details to Slack via webhook when new issues are opened, enabling faster team response to community issues.
1 parent c41b738 commit 53159e3

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Slack Issue Notification
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
notify-slack:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Send issue details to Slack
12+
uses: slackapi/slack-github-action@v2.0.0
13+
with:
14+
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
15+
webhook-type: webhook-trigger
16+
payload: |
17+
issue_title: "${{ github.event.issue.title }}"
18+
issue_number: "${{ github.event.issue.number }}"
19+
issue_url: "${{ github.event.issue.html_url }}"
20+
issue_author: "${{ github.event.issue.user.login }}"
21+
issue_body: ${{ toJSON(github.event.issue.body) }}
22+
repository: "${{ github.repository }}"
23+
created_at: "${{ github.event.issue.created_at }}"

0 commit comments

Comments
 (0)