GitHub Action
GitHub Discussions Notifier
v0.0.3
Latest version
Slack icon and app name depends on your slack bot.
This action does not have any slack bot settings by default.
Just create file and copy & paste in your repository!
name: GitHub Discussions Notifier
on:
discussion:
types: [created]
discussion_comment:
types: [created]
jobs:
notify-github-discussions:
runs-on: ubuntu-latest
steps:
- uses: ostk0069/[email protected]
with:
SLACK_CHANNEL_ID: <your slack channel id>
SLACK_BOT_TOKEN: <your slack bot token>
name: GitHub Discussions Notifier
on:
discussion:
types: [created]
discussion_comment:
types: [created]
jobs:
notify-github-discussions:
runs-on: ubuntu-latest
steps:
- uses: ostk0069/[email protected]
with:
SLACK_CHANNEL_ID: <your slack channel id>
SLACK_BOT_TOKEN: <your slack bot token>
send-discussion-create: true
send-discussion-comment: false
See action.yml
Name | Description | Default | Required |
---|---|---|---|
SLACK_CHANNEL_ID |
your slack channel id | - | yes |
SLACK_BOT_TOKEN |
your slack bot token | - | yes |
send-discussion-create |
send discussion create notification? | true | no |
send-discussion-comment |
send discussion comment notification? | true | no |
unfurl-links |
Pass true to enable unfurling of primarily text-based content | false | no |
unfurl-media |
Pass false to disable unfurling of media content | false | no |
discussion: types: [created]
discussion_comment: types: [created]
- actions/cache >= 3.0.0
- GitHub CLI >= 2.6.0