MotivationYou can receive the notification about GitHub Discussions to Slack with the official GitHub App.github-community/community#2844e.g.This integration is very useful, but you can't configure the notification flexibly.discussion-slack-notifier supports configuring the notification flexibly.Change notification channels according to the Discussion Labels
How to usePlease set up GitHub Actions Workflow to run discussion-slack-notifier.Add GitHub Actions Secret SLACK_TOKENAdd configuration file discussion-slack-notifier.yamlAdd GitHub Actions workflow. e.g. notify-discuss.yaml
GitHub Token's permissionGitHub Token is required to list Discussion's labels. You can use GitHub Actions' token github.token.discussions: read
Environment VariablesGITHUB_TOKEN: GitHub Access Token. This is required to list the Discussion's labelsSLACK_TOKEN:GITHUB_EVENT_PATH:
TemplatesYou can customize notification message.Go's text/templatehttp://masterminds.github.io/sprig/
Template Priorityentry's templateentry's template_nametemplates's default templateBuilt in default template
Template VariablesTitle (string): Discussion titleCategoryName (string): Discussion Category NameVars (map[string]interface{}): user defined variables