jum8ys/GitHub Discussions Slack Notifier
Send Slack notifications when GitHub Discussions are created or discussed. Maps GitHub @mentions to Slack user IDs and surfaces them outside the message attachment for notifications.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| slack_webhook_url | Slack Incoming Webhook URL. Required when slack_bot_token is not provided. | no | — |
| slack_bot_token | Slack Bot Token (xoxb-...). Required for thread support. When provided, chat.postMessage is used instead of Incoming Webhooks. | no | — |
| slack_channel_id | Slack channel ID (e.g. C0123ABCDE). Required when slack_bot_token is provided. | no | — |
| thread_mode | Controls how comments appear in Slack. 'channel_and_thread' (default): reply is shown in both the thread and channel feed. 'thread_only': reply appears only in the thread. | no | channel_and_thread |
| github_token | GitHub token used to store the Slack thread ts in the Discussion body. Defaults to the workflow token. | no | ${{ github.token }} |
| slack_user_mapping_file_path | Path to JSON file with GitHub username to Slack user ID mapping. | no | .github/slack_user_mapping.json |
| slack_user_mapping_json | Inline JSON for GitHub username to Slack user ID mapping. If set, this takes precedence over slack_user_mapping_file_path. Pass this value from repository secrets. | no | — |
Outputs
no outputs