From f4c313ca1aa3f5eed07e0f7e52a3c579d18af51e Mon Sep 17 00:00:00 2001 From: Steve Degosserie <723552+stiiifff@users.noreply.github.com> Date: Tue, 23 Sep 2025 18:52:24 +0200 Subject: [PATCH] fix: Fix Generate release body tool to include all dependencies (#187) --- tools/github/generate-release-body.ts | 2 +- tools/github/github-utils.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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];