Skip to content

Commit 3ec4e6e

Browse files
committed
chore: Add correct author fetching in changelog
1 parent 8e1d2d4 commit 3ec4e6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/_utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ export async function getContributors () {
138138
const rawCommits = await getGitDiff(latestTag)
139139
for (const commit of rawCommits) {
140140
if (emails.has(commit.author.email) || commit.author.name === 'renovate[bot]') { continue }
141-
const { author } = await $fetch<{ author: { login: string, email: string } }>(`https://api.github.com/repos/nuxt/nuxt/commits/${commit.shortHash}`, {
141+
const { author } = await $fetch<{ author: { login: string, email: string } }>(`https://api.github.com/repos/CodeDredd/pinia-orm/commits/${commit.shortHash}`, {
142142
headers: {
143-
'User-Agent': 'nuxt/nuxt',
143+
'User-Agent': 'CodeDredd/pinia-orm',
144144
'Accept': 'application/vnd.github.v3+json',
145145
'Authorization': `token ${process.env.GITHUB_TOKEN}`,
146146
},

0 commit comments

Comments
 (0)