You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
const discordWebhook = new URL(process.env.DISCORD_WEBHOOK);
23
-
const slackWebhook = new URL(process.env.SLACK_WEBHOOK);
24
-
22
+
const slackCommunityReleaseWebhook = new URL(process.env.SLACK_COMMUNITY_RELEASE_WEBHOOK);
23
+
const slackCommunityEngagementWebhook = new URL(process.env.SLACK_COMMUNITY_ENGAGEMENT_WEBHOOK);
25
24
const issueTitle = process.env.ISSUE_TITLE;
26
25
const issueBody = process.env.ISSUE_BODY;
27
26
const issueUrl = process.env.ISSUE_URL;
28
27
29
-
// Discord Payload
30
28
const discordPayload = {
31
29
content: [
32
-
"**🚀 " +issueTitle + " has been released!**",
33
-
"",
34
-
"**🌟 Whats new in CodeGate:**",
30
+
'**🚀 ' + issueTitle + ' has been released!**',
31
+
'',
32
+
'**🌟 Whats new in CodeGate:**',
35
33
issueBody,
36
-
"",
37
-
"We would 🤍 your feedback! 🔗 [Here’s the GitHub issue](" + issueUrl + ")"
38
-
].join("\n")
34
+
'',
35
+
'We would 🤍 your feedback! 🔗 [Here\'s the GitHub issue](' + issueUrl + ')'
36
+
].join('\n')
39
37
};
40
38
41
-
// Slack Payload
42
-
const slackPayload = {
43
-
text: `🚀 *${issueTitle}* has been released!\n\n 🔗 <${issueUrl}|Here’s the GitHub issue>`,
39
+
const slackCommunityReleasePayload = {
40
+
text: '🚀 ' + issueTitle + ' has been released!\\n\\n 🔗 <' + issueUrl + '|Here\'s the GitHub issue>'
41
+
};
42
+
43
+
const slackCommunityEngagementPayload = {
44
+
text: '📢 Feature ' + issueTitle + ' has been released! 🔗 <' + issueUrl + '|Here\'s the GitHub issue> \\n\\n • Reddit Advocacy Group check it out and help us spread the word! \\n\\n • Feature anchors, please engage with folks in the <https://discord.com/channels/1184987096302239844/1342205741926318080|#feature-spotlight> post for our new feature, and follow-up with interested users in <https://discord.com/channels/1184987096302239844/1331415710278221846|#ideas-and-issues> and <https://discord.com/channels/1184987096302239844/1340110387453886515|#codegate-users>'
0 commit comments