Skip to content

Commit

Permalink
feature(documentation-website): introduce automatic image conversion
Browse files Browse the repository at this point in the history
fixes #927
  • Loading branch information
Idrinth committed May 2, 2024
1 parent 3be9331 commit 64a2004
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions documentation-website/tools/load-contributors.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,13 @@ if (! process.env.CI) {
users[contributor.login].contributions = contributor.contributions;
return;
}
const data = await fetch(contributor.url,);
const data = await fetch(contributor.url,
process.env.GITHUB_API_TOKEN ? {
headers: {
Authorization: `Bearer ${ process.env.GITHUB_API_TOKEN }`,
},
} : {},);
const user = await data.json();
console.log(user);
const hash = crypto
.createHash('md5',)
.update(user.login,)
Expand Down

0 comments on commit 64a2004

Please sign in to comment.