From a564fc99cff3a49d7b56f43c32edc93160df106d Mon Sep 17 00:00:00 2001 From: Alberto Gualis Date: Thu, 10 Aug 2023 09:31:21 +0200 Subject: [PATCH] Fix ethereum pool links in auto allowlist PRs --- .github/workflows/allowlist-manual.yml | 2 +- src/lib/scripts/automatic-prs/allowlist-pool.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/allowlist-manual.yml b/.github/workflows/allowlist-manual.yml index 4e8d0116c6..a0e3b64664 100644 --- a/.github/workflows/allowlist-manual.yml +++ b/.github/workflows/allowlist-manual.yml @@ -11,9 +11,9 @@ on: - avalanche - arbitrum - base + - ethereum - gnosis-chain - goerli - - mainnet - polygon - optimism - zkevm diff --git a/src/lib/scripts/automatic-prs/allowlist-pool.ts b/src/lib/scripts/automatic-prs/allowlist-pool.ts index 9db668416f..6c3b38d321 100644 --- a/src/lib/scripts/automatic-prs/allowlist-pool.ts +++ b/src/lib/scripts/automatic-prs/allowlist-pool.ts @@ -5,7 +5,7 @@ * 4. Writes new file content back to file. * * Example usage: - * npx vite-node ./src/lib/scripts/automatic-prs/allowlist-pool.ts --network mainnet --poolType=stable --poolId=\"0x...\" --poolDescription=foo/bar/baz + * npx vite-node ./src/lib/scripts/automatic-prs/allowlist-pool.ts --network ethereum --poolType=stable --poolId=\"0x...\" --poolDescription=foo/bar/baz */ import { cac } from 'cac'; @@ -25,6 +25,8 @@ const poolId = options.poolId.replace(/[^0-9a-fA-Fx]+/g, '') as string; const poolType = capitalize(options.poolType); let network = options.network as string; network = network.toLowerCase(); +// Allow ethereum alias to correctly generate pool link from allowlist-manual.yml +if (network === 'ethereum') network = 'mainnet'; const { poolDescription } = options; validateInput({ poolType, network, poolId });