ci: update activity notification channels
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
.github/actions/activity/src/constants.ts
vendored
Normal file
4
.github/actions/activity/src/constants.ts
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export const CHANNELS = {
|
||||
DEV: '#dev',
|
||||
DEBUG: '#test-slack-notifications',
|
||||
}
|
||||
4
.github/actions/activity/src/new-issues.ts
vendored
4
.github/actions/activity/src/new-issues.ts
vendored
@@ -1,6 +1,8 @@
|
||||
import { info, setFailed } from '@actions/core'
|
||||
import { getOctokit } from '@actions/github'
|
||||
import { WebClient } from '@slack/web-api'
|
||||
|
||||
import { CHANNELS } from './constants'
|
||||
import { daysAgo } from './lib/utils'
|
||||
import { SlimIssue } from './types'
|
||||
|
||||
@@ -68,7 +70,7 @@ export async function run() {
|
||||
|
||||
await slackClient.chat.postMessage({
|
||||
text: messageText,
|
||||
channel: process.env.DEBUG === 'true' ? '#test-slack-notifications' : '#dev-feed',
|
||||
channel: process.env.DEBUG === 'true' ? CHANNELS.DEBUG : CHANNELS.DEV,
|
||||
icon_emoji: ':github:',
|
||||
username: 'GitHub Notifier',
|
||||
})
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import { info, setFailed } from '@actions/core'
|
||||
import { getOctokit } from '@actions/github'
|
||||
import { WebClient } from '@slack/web-api'
|
||||
|
||||
import { CHANNELS } from './constants'
|
||||
import { daysAgo } from './lib/utils'
|
||||
import { SlimIssue } from './types'
|
||||
|
||||
@@ -50,7 +52,7 @@ export async function run() {
|
||||
|
||||
await slackClient.chat.postMessage({
|
||||
text: messageText,
|
||||
channel: process.env.DEBUG === 'true' ? '#test-slack-notifications' : '#dev-feed',
|
||||
channel: process.env.DEBUG === 'true' ? CHANNELS.DEBUG : CHANNELS.DEV,
|
||||
icon_emoji: ':github:',
|
||||
username: 'GitHub Notifier',
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user