We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c41b738 commit 53159e3Copy full SHA for 53159e3
.github/workflows/slack-issue-notification.yml
@@ -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