Skip to content

Commit f358a1e

Browse files
committed
show a link to release notes when they couldn't be loaded
1 parent 23b98fd commit f358a1e

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

notifier/src/parts/fetchReleaseNotes.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,13 @@ export default async function fetchReleaseNotes(users: ActionableUser[]) {
4343
);
4444

4545
repos.forEach((userRepos) =>
46-
userRepos.forEach(
47-
({ repo, tags }) =>
48-
notes[repo] &&
49-
tags.forEach(
50-
(tag) =>
51-
(tag.entry = notes[repo]
52-
? notes[repo][tag.name] || ""
53-
: "Couldn't load release notes")
54-
)
46+
userRepos.forEach(({ repo, tags }) =>
47+
tags.forEach(
48+
(tag) =>
49+
(tag.entry = notes[repo]
50+
? notes[repo][tag.name] || ""
51+
: `<a href="https://github.com/${repo}/releases/tag/${tag.name}">Release notes</a>`)
52+
)
5553
)
5654
);
5755
return users;

0 commit comments

Comments
 (0)