diff --git a/tools/github/generate-release-body.ts b/tools/github/generate-release-body.ts index 7f4f79a2..fb37e8fe 100644 --- a/tools/github/generate-release-body.ts +++ b/tools/github/generate-release-body.ts @@ -44,7 +44,7 @@ async function main() { const previousTag = argv.from; const newTag = argv.to; - const moduleLinks = ["polkadot-sdk", "frontier"].map((repoName) => ({ + const moduleLinks = ["polkadot-sdk", "evm", "frontier", "storage-hub"].map((repoName) => ({ name: repoName, link: getCompareLink(repoName, previousTag, newTag), })); diff --git a/tools/github/github-utils.ts b/tools/github/github-utils.ts index 970952a0..afae36d3 100644 --- a/tools/github/github-utils.ts +++ b/tools/github/github-utils.ts @@ -7,13 +7,13 @@ type Commits = Await>["da export function getCompareLink(packageName: string, previousTag: string, newTag: string) { const previousPackage = execSync( - `git show ${previousTag}:../operator/Cargo.lock | grep ${packageName}? | head -1 | grep -o '".*"'` + `git show ${previousTag}:../operator/Cargo.lock | grep -E '${packageName}(\\.git)?\\?' | head -1 | grep -o '".*"'` ).toString(); const previousCommit = /#([0-9a-f]*)/g.exec(previousPackage)[1].slice(0, 8); const previousRepo = /(https:\/\/.*)\?/g.exec(previousPackage)[1]; const newPackage = execSync( - `git show ${newTag}:../operator/Cargo.lock | grep ${packageName}? | head -1 | grep -o '".*"'` + `git show ${newTag}:../operator/Cargo.lock | grep -E '${packageName}(\\.git)?\\?' | head -1 | grep -o '".*"'` ).toString(); const newCommit = /#([0-9a-f]*)/g.exec(newPackage)[1].slice(0, 8); const newRepo = /(https:\/\/.*)\?/g.exec(newPackage)[1];