diff --git a/packages/shipjs/src/step/release/__tests__/createGitHubRelease.spec.js b/packages/shipjs/src/step/release/__tests__/createGitHubRelease.spec.js index dd1bcb1f..ba2ded0e 100644 --- a/packages/shipjs/src/step/release/__tests__/createGitHubRelease.spec.js +++ b/packages/shipjs/src/step/release/__tests__/createGitHubRelease.spec.js @@ -209,6 +209,7 @@ describe('createGitHubRelease', () => { }) ); expect(mockExtractChangelog).toHaveBeenCalledWith({ + tagName: 'v1.2.3', version: '1.2.3', dir: '.', }); diff --git a/packages/shipjs/src/step/release/createGitHubRelease.js b/packages/shipjs/src/step/release/createGitHubRelease.js index 89e021ab..09be180d 100644 --- a/packages/shipjs/src/step/release/createGitHubRelease.js +++ b/packages/shipjs/src/step/release/createGitHubRelease.js @@ -24,7 +24,7 @@ export default async ({ version, config, dir, dryRun }) => for await (const tagName of tagNames) { // extract matching changelog const getChangelogFn = extractChangelog || getChangelog; - const changelog = getChangelogFn({ version, dir }); + const changelog = getChangelogFn({ tagName, version, dir }); const content = changelog || ''; // handle assets