fix: Fix Generate release body tool to include all dependencies (#187)

This commit is contained in:
Steve Degosserie 2025-09-23 18:52:24 +02:00 committed by GitHub
parent c8787ddb7c
commit f4c313ca1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -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),
}));

View file

@ -7,13 +7,13 @@ type Commits = Await<ReturnType<Octokit["rest"]["repos"]["compareCommits"]>>["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];