Skip to content

Commit

Permalink
changelog loading tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kremalicious authored Sep 9, 2023
1 parent 2debfad commit 3eaace7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Changelog/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ type Props = {
const { repo } = Astro.props as Props
const repoInfo = await getRepo(repo)
if (!repoInfo) {
console.info(`Repo ${repo} not found`)
return
}
const { url, owner, object } = repoInfo
const changelogHtml = await markdownToHtml(
object.text.replace('### Changelog', '')
Expand Down

0 comments on commit 3eaace7

Please sign in to comment.