Skip to content

Commit

Permalink
chore: skip missing commit in generating changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jan 15, 2025
1 parent 6dfd68e commit a658787
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ export async function getContributors() {
if (emails.has(commit.author.email) || commit.author.name === 'renovate[bot]') {
continue
}
if (!commit?.shortHash) {
continue
}
const { author } = await $fetch<{ author: { login: string, email: string } }>(`https://api.github.com/repos/nuxt/image/commits/${commit.shortHash}`, {
headers: {
'User-Agent': 'nuxt/image',
Expand Down

0 comments on commit a658787

Please sign in to comment.