Skip to content

Commit

Permalink
chore: Add correct author fetching in changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDredd committed Feb 16, 2025
1 parent 8e1d2d4 commit 3ec4e6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ export async function getContributors () {
const rawCommits = await getGitDiff(latestTag)
for (const commit of rawCommits) {
if (emails.has(commit.author.email) || commit.author.name === 'renovate[bot]') { continue }
const { author } = await $fetch<{ author: { login: string, email: string } }>(`https://api.github.com/repos/nuxt/nuxt/commits/${commit.shortHash}`, {
const { author } = await $fetch<{ author: { login: string, email: string } }>(`https://api.github.com/repos/CodeDredd/pinia-orm/commits/${commit.shortHash}`, {
headers: {
'User-Agent': 'nuxt/nuxt',
'User-Agent': 'CodeDredd/pinia-orm',
'Accept': 'application/vnd.github.v3+json',
'Authorization': `token ${process.env.GITHUB_TOKEN}`,
},
Expand Down

0 comments on commit 3ec4e6e

Please sign in to comment.