You've already forked gpui-component
mirror of
https://github.com/librekeys/gpui-component.git
synced 2026-04-14 08:46:29 -07:00
17 lines
443 B
JavaScript
17 lines
443 B
JavaScript
const IGNORE_LOGINS = ["dependabot[bot]", "copilot"];
|
|
const API_URL =
|
|
"https://api.github.com/repos/longbridge/gpui-component/contributors";
|
|
|
|
export default {
|
|
async load() {
|
|
return await fetch(API_URL)
|
|
.then((res) => res.json())
|
|
.then((items) => {
|
|
let filtered = items.filter(
|
|
(item) => !IGNORE_LOGINS.includes(item.login.toLowerCase()),
|
|
);
|
|
return filtered.slice(0, 24);
|
|
});
|
|
},
|
|
};
|