Skip to content

Commit 72be9d3

Browse files
committed
ci: update activity notification channels
1 parent c58d556 commit 72be9d3

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

.github/actions/activity/dist/new-issues/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/actions/activity/dist/popular-issues/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export const CHANNELS = {
2+
DEV: '#dev',
3+
DEBUG: '#test-slack-notifications',
4+
}

.github/actions/activity/src/new-issues.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { info, setFailed } from '@actions/core'
22
import { getOctokit } from '@actions/github'
33
import { WebClient } from '@slack/web-api'
4+
5+
import { CHANNELS } from './constants'
46
import { daysAgo } from './lib/utils'
57
import { SlimIssue } from './types'
68

@@ -68,7 +70,7 @@ export async function run() {
6870

6971
await slackClient.chat.postMessage({
7072
text: messageText,
71-
channel: process.env.DEBUG === 'true' ? '#test-slack-notifications' : '#dev-feed',
73+
channel: process.env.DEBUG === 'true' ? CHANNELS.DEBUG : CHANNELS.DEV,
7274
icon_emoji: ':github:',
7375
username: 'GitHub Notifier',
7476
})

.github/actions/activity/src/popular-issues.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { info, setFailed } from '@actions/core'
22
import { getOctokit } from '@actions/github'
33
import { WebClient } from '@slack/web-api'
4+
5+
import { CHANNELS } from './constants'
46
import { daysAgo } from './lib/utils'
57
import { SlimIssue } from './types'
68

@@ -50,7 +52,7 @@ export async function run() {
5052

5153
await slackClient.chat.postMessage({
5254
text: messageText,
53-
channel: process.env.DEBUG === 'true' ? '#test-slack-notifications' : '#dev-feed',
55+
channel: process.env.DEBUG === 'true' ? CHANNELS.DEBUG : CHANNELS.DEV,
5456
icon_emoji: ':github:',
5557
username: 'GitHub Notifier',
5658
})

0 commit comments

Comments
 (0)