Skip to content

Commit

Permalink
fix: handle release no name
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemain committed May 10, 2024
1 parent 31f65c0 commit bbad026
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/github/templates/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ export function AtSenderLink(sender: { login: string; html_url: string }) {
return `[@${sender.login}](${sender.html_url})`;
}

export function ReleaseLink(release: { name: string; html_url: string }) {
return `[${release.name}](${release.html_url})`;
export function ReleaseLink(release: {
name: string;
tag_name: string;
html_url: string;
}) {
return `[${release.name || release.tag_name}](${release.html_url})`;
}

export function IssuesText(
Expand Down

0 comments on commit bbad026

Please sign in to comment.