Skip to content

Commit 7837610

Browse files
committed
fix(markdown): handle undefined 'to' option in URL generation
1 parent 84e5f61 commit 7837610

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/markdown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export function generateMarkdown(params: {
151151

152152
const lines: string[] = [];
153153

154-
const url = `https://github.com/${options.github.repo}/compare/${options.from}...${options.to}`;
154+
const url = `https://github.com/${options.github.repo}/compare/${options.from}...${options.to || options.from}`;
155155

156156
if (showTitle) {
157157
const date = options.tagDateMap.get(options.to) || dayjs().format('YYYY-MM-DD');

0 commit comments

Comments
 (0)