Skip to content

Commit

Permalink
feat(changelog): send tagname to changelog function (#994)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhayab committed Mar 15, 2023
1 parent b6c25be commit 95f526d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ describe('createGitHubRelease', () => {
})
);
expect(mockExtractChangelog).toHaveBeenCalledWith({
tagName: 'v1.2.3',
version: '1.2.3',
dir: '.',
});
Expand Down
2 changes: 1 addition & 1 deletion packages/shipjs/src/step/release/createGitHubRelease.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 95f526d

Please sign in to comment.