mirror of
https://github.com/plankanban/planka.git
synced 2025-12-09 09:13:12 +03:00
[PR #573] [MERGED] Add slack channel notification integration #1112
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/plankanban/planka/pull/573
Author: @GlitchWitch
Created: 12/23/2023
Status: ✅ Merged
Merged: 4/8/2024
Merged by: @meltyshev
Base:
master← Head:slack-bot-integration📝 Commits (8)
1043dacadded new custom service with slack integration helper functions; added axios package; added notifications for card create, delete, and update (move); added notifications for comment createf54bd22removed test webhook url9961340Replace plankaProdUrl with one set by environment. Remove hardcoded channel and unused variables.c42e1fbAdd slack variables to docker-compose3fedc14Rename custom.js -> slack.jsa9c200cMerge branch 'master' into slack-bot-integration86d21d6updated to use currentUser.name for messages273d994Remove unused code and comments📊 Changes
7 files changed (+98 additions, -0 deletions)
View changed files
📝
docker-compose.yml(+3 -0)📝
package.json(+1 -0)📝
server/api/controllers/cards/create.js(+7 -0)📝
server/api/controllers/cards/delete.js(+7 -0)📝
server/api/controllers/cards/update.js(+14 -0)📝
server/api/controllers/comment-actions/create.js(+8 -0)➕
server/api/services/slack.js(+58 -0)📄 Description
Contributions primarily made by @chembrad44 of GlitchSecure
This PR adds a simple notification integration which will alert a specified slack channel on various actions.
A user must create a Slack App in their Slack instance with the chat:write scope and provide both the
SLACK_BOT_TOKENfor the app and theSLACK_CHANNEL_IDfor the channel they wish to have notifications arrive in.Creating a slack app
chat:writeSLACK_BOT_TOKENenvironment variable and the Channel ID to theSLACK_CHANNEL_IDenvironment variable.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.