Skip to content

Commit 7095c04

Browse files
authored
ci: Add workflow to update contributors channel on Slack
This workflow automatically updates the #qdev-cli-contributors channel when a new issue is posted to the repo. The workflow sends only the username of the creator and the issue URL.
1 parent bed5a9b commit 7095c04

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This is a basic workflow to update the qcli-issue-notifier Slack workflow when a new issue is created
2+
name: Slack Issue Notifier
3+
4+
# Runs when new issue is created
5+
on:
6+
issues:
7+
types:
8+
- opened
9+
10+
jobs:
11+
send_message:
12+
runs-on: ubuntu-latest
13+
steps:
14+
15+
# Send username and issue URL to webhook
16+
- name: send_message
17+
run: |
18+
curl -X POST \
19+
-H "Content-Type: application/json" \
20+
-d '{
21+
"user": "${{ github.event.issue.user.login }}",
22+
"URL": "${{ github.event.issue.html_url }}"
23+
}' \
24+
${{ secrets.SLACK_ISSUE_WEBHOOK_URL }}

0 commit comments

Comments
 (0)