diff --git a/api/_utils/blog/feed.ts b/api/_utils/blog/feed.ts index 4715a09..268bba8 100644 --- a/api/_utils/blog/feed.ts +++ b/api/_utils/blog/feed.ts @@ -15,7 +15,7 @@ interface BlogFeed { * TODO: for the ngVenezuela blog to work we have to wait until this is * closed: https://github.com/thepracticaldev/dev.to/issues/3363 */ -const handleBlogFeed = async (feeds: BlogFeed[]) => { +const handleBlogFeed = async (feeds: BlogFeed[]): Promise => { if (MAIN_GROUP_ID) { const promises: Promise[] = []; diff --git a/api/_utils/github/feed.ts b/api/_utils/github/feed.ts index cd4adf0..cc8017b 100644 --- a/api/_utils/github/feed.ts +++ b/api/_utils/github/feed.ts @@ -12,9 +12,10 @@ interface RepoConfig { const handleGithubFeed = async ( repoConfig: RepoConfig, tags: string[], -) => { +): Promise => { if (MAIN_GROUP_ID) { const promises: Promise[] = []; + const repoMainUrl = repoConfig.feed.replace('releases.atom', ''); tags.forEach(tag => { const promise = sendMessage({ @@ -25,7 +26,7 @@ const handleGithubFeed = async ( .replace( '#{url}', repoConfig.hasChangelog - ? `https://github.com/${repoConfig.name}/blob/master/CHANGELOG.md` + ? `${repoMainUrl}blob/master/CHANGELOG.md` : `https://github.com/${repoConfig.name}/releases/tag/${tag}`, ), });