Skip to content

Commit

Permalink
fix: update config
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-koval committed Sep 23, 2021
1 parent c94afa0 commit aa6fd16
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ const customTransform = (commit, context) => {
}

if (typeof commit.hash === `string`) {
console.log("commit", commit.hash);
commit.shortHash = commit.hash.substring(0, 7);
}

Expand Down Expand Up @@ -64,15 +63,13 @@ const customTransform = (commit, context) => {
}

// remove references that already appear in the subject
console.log("🚀 ~ file: release.config.js ~ line 74 ~ customTransform ~ commit.references", commit.references)
commit.references = commit.references.filter(reference => {
if (issues.indexOf(reference.issue) === -1) {
return true;
}
// commit.references = commit.references.filter(reference => {
// if (issues.indexOf(reference.issue) === -1) {
// return true;
// }

return false;
});
console.log("🚀 ~ file: release.config.js ~ line 75 ~ customTransform ~ commit.references", commit.references)
// return false;
// });
return commit;
};

Expand Down

0 comments on commit aa6fd16

Please sign in to comment.