Skip to content

Commit

Permalink
fix(plugin-release): remove hyperlink from annotated tag message
Browse files Browse the repository at this point in the history
  • Loading branch information
kherock committed Aug 24, 2021
1 parent 6b8c249 commit 6c9beaa
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/plugin-release/sources/commands/releaseCommit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ export default class ReleaseCommitCommand extends BaseCommand {
}
}

let text = ``;
let changelogText = ``;
const getText = new Transform({
transform(chunk, encoding, callback) {
text += chunk.toString();
changelogText += chunk.toString();
callback(null, chunk);
},
});
Expand All @@ -121,10 +121,11 @@ export default class ReleaseCommitCommand extends BaseCommand {
}),
getText,
]);
const tagArgs = [`tag`, `-a`, `-m`, `${projectTagName}\n${text}`, `--cleanup=verbatim`, projectTagName, this.tagHead];
changelogText = changelogText.split(`\n`).slice(2).join(`\n`);
const tagArgs = [`tag`, `-a`, `-m`, `${projectTagName}\n${changelogText}`, `--cleanup=verbatim`, projectTagName, this.tagHead];
report.reportJson({
tagName: projectTagName,
tagMessage: text,
tagMessage: changelogText,
});
if (this.dryRun) {
report.reportInfo(MessageName.UNNAMED, `git ${tagArgs.map(cliEscape).join(` `)}`);
Expand Down

0 comments on commit 6c9beaa

Please sign in to comment.