mirror of
https://github.com/darksaid98/auto-changelog.git
synced 2026-12-04 06:28:52 +00:00
feat: add release-name-prefix input
Signed-off-by: Ardalan Amini <[email protected]>
This commit is contained in:
8 files changed
+60
-5
No files matched your search
+4
-1
@@ -29,6 +29,7 @@ import {
|
||||
mentionNewContributors,
|
||||
octokit,
|
||||
releaseName,
|
||||
releaseNamePrefix,
|
||||
repository,
|
||||
useGithubAutolink,
|
||||
} from "./utils/index.js";
|
||||
@@ -61,7 +62,9 @@ export async function generateFooter(previousTagName?: string): Promise<string>
|
||||
}
|
||||
|
||||
if (includeCompareLink() && previousTagName) {
|
||||
const link = useGithubAutolink() ? `${ url }/compare/${ previousTagName }...${ tagName }` : `\`[${ previousTagName }...${ tagName }](${ url }/compare/${ previousTagName }...${ tagName })\``;
|
||||
let link = `${ url }/compare/${ previousTagName }...${ tagName }`;
|
||||
|
||||
if (!useGithubAutolink() || releaseNamePrefix()) link = `\`[${ previousTagName }...${ tagName }](${ url }/compare/${ previousTagName }...${ tagName })\``;
|
||||
|
||||
footer.push(`**Full Changelog**: ${ link }`);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user