A template GitHub repository implementing a composite action to send Slack notifications for new issues or pull requests.
Slack Notification
This GitHub Action sends a message to a Slack channel via webhook when a new GitHub issue or pull request is created. It dynamically formats the message based on the event type.
| Name | Description | Required |
|---|---|---|
slack-webhook |
Slack incoming webhook URL for notifications | ✅ Yes |
name: Notify on Issue or PR
on:
issues:
types: [opened]
pull_request:
types: [opened]
jobs:
notify:
uses: subhamay-bhattacharyya-gha/slack-notification-wf/.github/workflows/slack-notification.yaml@v1
secrets:
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
MIT