New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/suzuki-shunsuke/discussion-slack-notifier

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/suzuki-shunsuke/discussion-slack-notifier

  • v0.1.0-1
  • Source
  • Go
  • Socket score

Version published
Created
Source

discussion-slack-notifier

Notify GitHub Discussions events to Slack with GitHub Actions.

:warning: Development Status

This is still in alpha. This isn't production ready yet.

Motivation

You can receive the notification about GitHub Discussions to Slack with the official GitHub App.

https://github.com/github/feedback/discussions/2844

e.g.

image

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

Feature

  • Change notification channels according to the Discussion Labels

Requirement

  • Slack App Bot Token

Please create a Slack App.

Slack App's permission

  • chat:write
  • chat:write.public (Optional)

How to use

Please set up GitHub Actions Workflow to run discussion-slack-notifier.

GitHub Token's permission

GitHub Token is required to list Discussion's labels. You can use GitHub Actions' token github.token.

  • discussions: read

Environment Variables

  • GITHUB_TOKEN: GitHub Access Token. This is required to list the Discussion's labels
  • SLACK_TOKEN:
  • GITHUB_EVENT_PATH:

Configuration

e.g.

entries:
- labels:
  - foo
  channels:
  - general
channels:
  general: XXXXXXXXX

In case of above configuration, if the Discussion Label foo is set, the notification is sent to the slack channel general.

LICENSE

MIT

FAQs

Package last updated on 11 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc