From 9131ca15620362565ca90a54971a3fc609876e9f Mon Sep 17 00:00:00 2001 From: Steve Klebanoff Date: Wed, 2 Jan 2019 15:22:07 -0800 Subject: Use constant --- packages/monorepo-scripts/src/constants.ts | 1 + packages/monorepo-scripts/src/utils/discord.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/monorepo-scripts/src/constants.ts b/packages/monorepo-scripts/src/constants.ts index 8f907ffef..c15bcabf4 100644 --- a/packages/monorepo-scripts/src/constants.ts +++ b/packages/monorepo-scripts/src/constants.ts @@ -6,5 +6,6 @@ export const constants = { lernaExecutable: path.join('node_modules', '@0x-lerna-fork', 'lerna', 'cli.js'), githubPersonalAccessToken: process.env.GITHUB_PERSONAL_ACCESS_TOKEN_0X_JS, discordAlertWebhookUrl: process.env.DISCORD_GITHUB_RELEASE_WEBHOOK_URL, + releasesUrl: 'https://github.com/0xProject/0x-monorepo/releases', dependenciesUpdatedMessage: 'Dependencies updated', }; diff --git a/packages/monorepo-scripts/src/utils/discord.ts b/packages/monorepo-scripts/src/utils/discord.ts index 2482a18f0..116b1b908 100644 --- a/packages/monorepo-scripts/src/utils/discord.ts +++ b/packages/monorepo-scripts/src/utils/discord.ts @@ -13,7 +13,7 @@ export const alertDiscord = async (releaseNotes: string): Promise => { utils.log('Alerting discord...'); const payload = { - content: `New monorepo package released! View at https://github.com/0xProject/0x-monorepo/releases \n\n ${releaseNotes}`, + content: `New monorepo package released! View at ${constants.releasesUrl} \n\n ${releaseNotes}`, }; await fetchAsync(webhookUrl, { method: 'POST', -- cgit