docs: Ignore copilot from Contributors.

This commit is contained in:
Jason Lee 2025-10-21 15:23:57 +08:00
parent 956fbe08d4
commit 449efae0bc

View file

@ -24,13 +24,13 @@
<script setup>
import { ref, onMounted } from "vue";
const IGNORE_LOGINS = ["dependabot[bot]"];
const IGNORE_LOGINS = ["dependabot[bot]", "copilot"];
let contributors = ref([]);
fetch("https://api.github.com/repos/longbridge/gpui-component/contributors")
.then((res) => res.json())
.then((items) => {
let filtered = items.filter(
(item) => !IGNORE_LOGINS.includes(item.login),
(item) => !IGNORE_LOGINS.includes(item.login.toLowerCase()),
);
contributors.value = filtered.slice(0, 24);
});