aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2019-01-03 07:22:07 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2019-01-03 07:22:07 +0800
commit9131ca15620362565ca90a54971a3fc609876e9f (patch)
tree6cb528611db0dbc7842b24e0c7429d11950d4f9b /packages
parent92d45a19d1b8f894add205f87bee77962848699b (diff)
downloaddexon-0x-contracts-9131ca15620362565ca90a54971a3fc609876e9f.tar
dexon-0x-contracts-9131ca15620362565ca90a54971a3fc609876e9f.tar.gz
dexon-0x-contracts-9131ca15620362565ca90a54971a3fc609876e9f.tar.bz2
dexon-0x-contracts-9131ca15620362565ca90a54971a3fc609876e9f.tar.lz
dexon-0x-contracts-9131ca15620362565ca90a54971a3fc609876e9f.tar.xz
dexon-0x-contracts-9131ca15620362565ca90a54971a3fc609876e9f.tar.zst
dexon-0x-contracts-9131ca15620362565ca90a54971a3fc609876e9f.zip
Use constant
Diffstat (limited to 'packages')
-rw-r--r--packages/monorepo-scripts/src/constants.ts1
-rw-r--r--packages/monorepo-scripts/src/utils/discord.ts2
2 files changed, 2 insertions, 1 deletions
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<boolean> => {
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',