From 7095c040d26508c470bfe135e935ccfbf30325f9 Mon Sep 17 00:00:00 2001 From: kiran-garre <137448023+kiran-garre@users.noreply.github.com> Date: Tue, 1 Jul 2025 13:58:29 -0700 Subject: [PATCH] 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. --- .github/workflows/slack-issue-notifier.yml | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/slack-issue-notifier.yml diff --git a/.github/workflows/slack-issue-notifier.yml b/.github/workflows/slack-issue-notifier.yml new file mode 100644 index 0000000000..c73ef6529e --- /dev/null +++ b/.github/workflows/slack-issue-notifier.yml @@ -0,0 +1,24 @@ +# This is a basic workflow to update the qcli-issue-notifier Slack workflow when a new issue is created +name: Slack Issue Notifier + +# Runs when new issue is created +on: + issues: + types: + - opened + +jobs: + send_message: + runs-on: ubuntu-latest + steps: + + # Send username and issue URL to webhook + - name: send_message + run: | + curl -X POST \ + -H "Content-Type: application/json" \ + -d '{ + "user": "${{ github.event.issue.user.login }}", + "URL": "${{ github.event.issue.html_url }}" + }' \ + ${{ secrets.SLACK_ISSUE_WEBHOOK_URL }}