Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

GitHub Discussions Notifier

Actions
Notify GitHub Discussion Comment to Slack
v0.0.1
Star (4)

Usage

Basic

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>

Optional

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: true
          send-discussion-comment: false

Inputs

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 send discussion 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

Supported

Events

  • discussion: types: [created]
  • discussion_comment: types: [created]

Dependencies

GitHub Discussions Notifier is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Notify GitHub Discussion Comment to Slack
v0.0.1

GitHub Discussions Notifier is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.