Skip to content

Commit 305988a

Browse files
committed
improve contributor exclude
1 parent b8d6b8f commit 305988a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/.vitepress/config/shared.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,9 @@ export const shared = defineConfig({
7777
const newContributors = async () => {
7878
const contributors = await getAllContributorsRecursive("MMRLApp/MMRL");
7979

80-
const excludedContributors = ["DerGoogler", "dependabot[bot]", "weblate", "dependabot-preview[bot]"];
80+
const excludedContributors = [/DerGoogler/i, /dependabot(-preview)?\[bot\]/i, /(weblate(\[bot\])?|WeblateAdmin)/i];
8181

82-
const contributorsExluded = contributors
83-
.filter((con) => !excludedContributors.includes(con.login))
82+
const contributorsExluded = contributors.filter((con) => !excludedContributors.some((exc) => con.match(exc)));
8483

8584
return contributorsExluded.map((contributor) => {
8685
return {

0 commit comments

Comments
 (0)