Skip to content

Commit

Permalink
Fix ethereum pool links in auto allowlist PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
agualis committed Aug 10, 2023
1 parent a28cd56 commit a564fc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/allowlist-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ on:
- avalanche
- arbitrum
- base
- ethereum
- gnosis-chain
- goerli
- mainnet
- polygon
- optimism
- zkevm
Expand Down
4 changes: 3 additions & 1 deletion src/lib/scripts/automatic-prs/allowlist-pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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 });
Expand Down

0 comments on commit a564fc9

Please sign in to comment.