ci: update activity notification channels

This commit is contained in:
Elliot DeNolf
2025-10-07 12:07:36 -04:00
parent c58d556343
commit 72be9d3447
5 changed files with 12 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,4 @@
export const CHANNELS = {
DEV: '#dev',
DEBUG: '#test-slack-notifications',
}

View File

@@ -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',
})

View File

@@ -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',
})