mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
Replace plankaProdUrl with one set by environment. Remove hardcoded channel and unused variables.
This commit is contained in:
parent
4d12fbf72d
commit
22ffa77966
1 changed files with 2 additions and 5 deletions
|
@ -1,11 +1,8 @@
|
||||||
const axios = require('axios');
|
const axios = require('axios');
|
||||||
const slackPostUrl = 'https://slack.com/api/chat.postMessage';
|
const slackPostUrl = 'https://slack.com/api/chat.postMessage';
|
||||||
const channelId = 'C06B6F4R9RT';
|
const channelId = process.env.SLACK_CHANNEL_ID;
|
||||||
|
|
||||||
const plankaProdUrl = 'https://kanban.glitchsecure.com';
|
|
||||||
const plankaTestUrl = 'http://localhost:3000';
|
|
||||||
const plankaTestWebhookUrl = '';
|
|
||||||
const slackAPIToken = process.env.SLACK_BOT_TOKEN;
|
const slackAPIToken = process.env.SLACK_BOT_TOKEN;
|
||||||
|
const plankaProdUrl = process.env.BASE_URL;
|
||||||
|
|
||||||
async function sendSlackMessage(messageText) {
|
async function sendSlackMessage(messageText) {
|
||||||
if (!slackAPIToken) {
|
if (!slackAPIToken) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue