diff --git a/src/footer.ts b/src/footer.ts index 6938098..fd7721d 100644 --- a/src/footer.ts +++ b/src/footer.ts @@ -70,7 +70,7 @@ export async function generateFooter(previousTagName?: string): Promise if (includeCompareLink() && previousTagName) { let link = `${ url }/compare/${ previousTagName }...${ tagName }`; - if (!useGitHubAutolink() || releaseNamePrefix()) link = `[\`${ previousTagName }...${ tagName }\`](${ url }/compare/${ previousTagName }...${ tagName })`; + if (!useGitHubAutolink() || releaseNamePrefix()) link = `[${ previousTagName }...${ tagName }](${ url }/compare/${ previousTagName }...${ tagName })`; footer.push(`**Full Changelog**: ${ link }`); } diff --git a/src/nodes/commit-hash.ts b/src/nodes/commit-hash.ts index 7f95595..ff877b2 100644 --- a/src/nodes/commit-hash.ts +++ b/src/nodes/commit-hash.ts @@ -59,7 +59,7 @@ export class CommitHashNode extends Node { if (shouldUseGithubAutolink) return sha; // eslint-disable-next-line @typescript-eslint/no-magic-numbers - return `[\`${ sha.slice(0, 7) }\`](${ repo.url }/commit/${ sha })`; + return `[${ sha.slice(0, 7) }](${ repo.url }/commit/${ sha })`; } } diff --git a/tests/footer.test.ts b/tests/footer.test.ts index 5f3a90d..da1850e 100644 --- a/tests/footer.test.ts +++ b/tests/footer.test.ts @@ -138,7 +138,7 @@ it("should generate the changelog footer with the full changelog link", async () const result = await generateFooter(info.previous.name); - expect(result).toEqual(`\n\n**Full Changelog**: [\`${ info.previous.name }...${ releaseNameInputValue }\`](${ url }/compare/${ info.previous.name }...${ releaseNameInputValue })`); + expect(result).toEqual(`\n\n**Full Changelog**: [${ info.previous.name }...${ releaseNameInputValue }](${ url }/compare/${ info.previous.name }...${ releaseNameInputValue })`); expect(getInput).toHaveBeenCalledTimes(1); diff --git a/tests/nodes/commit-hash.test.ts b/tests/nodes/commit-hash.test.ts index 909695a..1b71b76 100644 --- a/tests/nodes/commit-hash.test.ts +++ b/tests/nodes/commit-hash.test.ts @@ -84,5 +84,5 @@ it("should print the sha with the link (not using autolink)", () => { expect(commitHashNode.shouldUseGithubAutolink).toBe(false); // eslint-disable-next-line @typescript-eslint/no-magic-numbers - expect(commitHashNode.print()).toBe(`[\`${ sha.slice(0, 7) }\`](${ context.serverUrl }/${ repo.owner }/${ repo.repo }/commit/${ sha })`); + expect(commitHashNode.print()).toBe(`[${ sha.slice(0, 7) }](${ context.serverUrl }/${ repo.owner }/${ repo.repo }/commit/${ sha })`); });