mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 09:50:01 +00:00
fix: Fix Generate release body tool to include all dependencies (#187)
This commit is contained in:
parent
c8787ddb7c
commit
f4c313ca1a
2 changed files with 3 additions and 3 deletions
|
|
@ -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),
|
||||
}));
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in a new issue