Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

fix: updated contributors contain unnecessary data (#3124)

Meier Lukas6e03e5a40c9a
diff --git a/scripts/update-contributors.mjs b/scripts/update-contributors.mjs
index fc88d5604..6bf17a250 100644
--- a/scripts/update-contributors.mjs
+++ b/scripts/update-contributors.mjs
@@ -30,7 +30,10 @@ const fetchGithubContributors = async (slug, repository) => {
const response = await fetch(url, options);
const data = await response.json();
- return data;
+ return data.map((contributor) => ({
+ login: contributor.login,
+ avatar_url: contributor.avatar_url,
+ }));
};
const fetchCrowdinMembers = async (projectId) => {
@@ -46,7 +49,10 @@ const fetchCrowdinMembers = async (projectId) => {
const response = await fetch(url, options);
const data = await response.json();
- return data.data.flatMap((data) => data.data);
+ return data.data.flatMap((data) => data.data).map(contributor => ({
+ username: contributor.username,
+ avatarUrl: contributor.avatarUrl,
+ }));
};
const distinctBy = (callback) => (value, index, self) => {