Skip to content

Commit 6731786

Browse files
committed
chore: update contributors list (exclude forks & archived repos)
1 parent d61b650 commit 6731786

2 files changed

Lines changed: 45 additions & 148 deletions

File tree

scripts/updateContributors.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ type Contributor = {
1313

1414
type Repo = {
1515
name: string;
16+
fork: boolean;
17+
archived: boolean;
1618
};
1719

1820
async function fetchWithAuth(url: string): Promise<Response> {
@@ -47,9 +49,12 @@ async function fetchRepos(): Promise<string[]> {
4749
}
4850

4951
const repos: Repo[] = await response.json();
50-
console.log(`✓ Found ${repos.length} repositories`);
52+
const filteredRepos = repos.filter((repo) => !repo.fork && !repo.archived);
53+
console.log(
54+
`✓ Found ${repos.length} repositories (${filteredRepos.length} after excluding forks and archived)`
55+
);
5156

52-
return repos.map((repo) => repo.name);
57+
return filteredRepos.map((repo) => repo.name);
5358
}
5459

5560
async function fetchContributorsForRepo(repoName: string): Promise<Contributor[]> {

src/lib/constants/constants.ts

Lines changed: 38 additions & 146 deletions
Original file line numberDiff line numberDiff line change
@@ -708,29 +708,17 @@ export const aboutTableData = [
708708
];
709709

710710
export const defaultContributorsList = [
711-
{
712-
html_url: 'mickvandijke',
713-
avatar_url: 'https://avatars.githubusercontent.com/u/12992260?v=4'
714-
},
715-
{
716-
html_url: 'Aimless321',
717-
avatar_url: 'https://avatars.githubusercontent.com/u/6079485?v=4'
718-
},
719-
{
720-
html_url: 'da2ce7',
721-
avatar_url: 'https://avatars.githubusercontent.com/u/691439?v=4'
722-
},
723711
{
724712
html_url: 'josecelano',
725713
avatar_url: 'https://avatars.githubusercontent.com/u/58816?v=4'
726714
},
727715
{
728-
html_url: 'jamiew0w',
729-
avatar_url: 'https://avatars.githubusercontent.com/u/8589138?v=4'
716+
html_url: 'da2ce7',
717+
avatar_url: 'https://avatars.githubusercontent.com/u/691439?v=4'
730718
},
731719
{
732-
html_url: 'GGLinnk',
733-
avatar_url: 'https://avatars.githubusercontent.com/u/22531645?v=4'
720+
html_url: 'mickvandijke',
721+
avatar_url: 'https://avatars.githubusercontent.com/u/12992260?v=4'
734722
},
735723
{
736724
html_url: 'naim94a',
@@ -764,6 +752,18 @@ export const defaultContributorsList = [
764752
html_url: 'nuts-rice',
765753
avatar_url: 'https://avatars.githubusercontent.com/u/5147364?v=4'
766754
},
755+
{
756+
html_url: 'GGLinnk',
757+
avatar_url: 'https://avatars.githubusercontent.com/u/22531645?v=4'
758+
},
759+
{
760+
html_url: 'Aimless321',
761+
avatar_url: 'https://avatars.githubusercontent.com/u/6079485?v=4'
762+
},
763+
{
764+
html_url: 'mvanhorn',
765+
avatar_url: 'https://avatars.githubusercontent.com/u/455140?v=4'
766+
},
767767
{
768768
html_url: 'Binlogo',
769769
avatar_url: 'https://avatars.githubusercontent.com/u/7845507?v=4'
@@ -797,8 +797,8 @@ export const defaultContributorsList = [
797797
avatar_url: 'https://avatars.githubusercontent.com/u/47324723?v=4'
798798
},
799799
{
800-
html_url: 'Zorlin',
801-
avatar_url: 'https://avatars.githubusercontent.com/u/1369772?v=4'
800+
html_url: 'naoNao89',
801+
avatar_url: 'https://avatars.githubusercontent.com/u/90588855?v=4'
802802
},
803803
{
804804
html_url: 'cgbosse',
@@ -812,6 +812,10 @@ export const defaultContributorsList = [
812812
html_url: 'Wolfremium13',
813813
avatar_url: 'https://avatars.githubusercontent.com/u/64548160?v=4'
814814
},
815+
{
816+
html_url: 'Zorlin',
817+
avatar_url: 'https://avatars.githubusercontent.com/u/1369772?v=4'
818+
},
815819
{
816820
html_url: 'danielroe',
817821
avatar_url: 'https://avatars.githubusercontent.com/u/28706372?v=4'
@@ -820,6 +824,10 @@ export const defaultContributorsList = [
820824
html_url: 'grmbyrn',
821825
avatar_url: 'https://avatars.githubusercontent.com/u/95353365?v=4'
822826
},
827+
{
828+
html_url: 'peer-cat',
829+
avatar_url: 'https://avatars.githubusercontent.com/u/275475989?v=4'
830+
},
823831
{
824832
html_url: 'pcarles',
825833
avatar_url: 'https://avatars.githubusercontent.com/u/51314945?v=4'
@@ -828,142 +836,14 @@ export const defaultContributorsList = [
828836
html_url: 'postmeback',
829837
avatar_url: 'https://avatars.githubusercontent.com/u/14862687?v=4'
830838
},
831-
{
832-
html_url: 'Douile',
833-
avatar_url: 'https://avatars.githubusercontent.com/u/25043847?v=4'
834-
},
835-
{
836-
html_url: 'hugues31',
837-
avatar_url: 'https://avatars.githubusercontent.com/u/19244704?v=4'
838-
},
839-
{
840-
html_url: 'kent-williams',
841-
avatar_url: 'https://avatars.githubusercontent.com/u/479648?v=4'
842-
},
843-
{
844-
html_url: 'suhlig',
845-
avatar_url: 'https://avatars.githubusercontent.com/u/80507?v=4'
846-
},
847-
{
848-
html_url: 'tecknicaltom',
849-
avatar_url: 'https://avatars.githubusercontent.com/u/310024?v=4'
850-
},
851-
{
852-
html_url: 'ihaiker',
853-
avatar_url: 'https://avatars.githubusercontent.com/u/6601465?v=4'
854-
},
855-
{
856-
html_url: 'rimathia',
857-
avatar_url: 'https://avatars.githubusercontent.com/u/7736877?v=4'
858-
},
859-
{
860-
html_url: 'matfantinel',
861-
avatar_url: 'https://avatars.githubusercontent.com/u/24247035?v=4'
862-
},
863839
{
864840
html_url: 'nafumal',
865841
avatar_url: 'https://avatars.githubusercontent.com/u/167825698?v=4'
866842
},
867-
{
868-
html_url: 'GGist',
869-
avatar_url: 'https://avatars.githubusercontent.com/u/5248583?v=4'
870-
},
871-
{
872-
html_url: 'hauleth',
873-
avatar_url: 'https://avatars.githubusercontent.com/u/291639?v=4'
874-
},
875-
{
876-
html_url: 'reeFridge',
877-
avatar_url: 'https://avatars.githubusercontent.com/u/12645379?v=4'
878-
},
879843
{
880844
html_url: 'astro',
881845
avatar_url: 'https://avatars.githubusercontent.com/u/12923?v=4'
882846
},
883-
{
884-
html_url: 'derekhendrickx',
885-
avatar_url: 'https://avatars.githubusercontent.com/u/1218149?v=4'
886-
},
887-
{
888-
html_url: 'morrme',
889-
avatar_url: 'https://avatars.githubusercontent.com/u/26514778?v=4'
890-
},
891-
{
892-
html_url: 'chpio',
893-
avatar_url: 'https://avatars.githubusercontent.com/u/545659?v=4'
894-
},
895-
{
896-
html_url: 'toby',
897-
avatar_url: 'https://avatars.githubusercontent.com/u/83556?v=4'
898-
},
899-
{
900-
html_url: 'madadam',
901-
avatar_url: 'https://avatars.githubusercontent.com/u/5271?v=4'
902-
},
903-
{
904-
html_url: 'adamhammes',
905-
avatar_url: 'https://avatars.githubusercontent.com/u/5597274?v=4'
906-
},
907-
{
908-
html_url: 'casey',
909-
avatar_url: 'https://avatars.githubusercontent.com/u/1945?v=4'
910-
},
911-
{
912-
html_url: 'nrempel',
913-
avatar_url: 'https://avatars.githubusercontent.com/u/540048?v=4'
914-
},
915-
{
916-
html_url: 'thequux',
917-
avatar_url: 'https://avatars.githubusercontent.com/u/5264?v=4'
918-
},
919-
{
920-
html_url: 'letFunny',
921-
avatar_url: 'https://avatars.githubusercontent.com/u/24965409?v=4'
922-
},
923-
{
924-
html_url: 'dependabot-preview[bot]',
925-
avatar_url: 'https://avatars.githubusercontent.com/in/2141?v=4'
926-
},
927-
{
928-
html_url: 'svartalf',
929-
avatar_url: 'https://avatars.githubusercontent.com/u/1279564?v=4'
930-
},
931-
{
932-
html_url: 'alekitto',
933-
avatar_url: 'https://avatars.githubusercontent.com/u/1257206?v=4'
934-
},
935-
{
936-
html_url: 'prateekkumarweb',
937-
avatar_url: 'https://avatars.githubusercontent.com/u/15064671?v=4'
938-
},
939-
{
940-
html_url: 'benbrandt',
941-
avatar_url: 'https://avatars.githubusercontent.com/u/2111074?v=4'
942-
},
943-
{
944-
html_url: 'rye',
945-
avatar_url: 'https://avatars.githubusercontent.com/u/1566689?v=4'
946-
},
947-
{
948-
html_url: 'Luni-4',
949-
avatar_url: 'https://avatars.githubusercontent.com/u/12353765?v=4'
950-
},
951-
{
952-
html_url: 'qryxip',
953-
avatar_url: 'https://avatars.githubusercontent.com/u/14125495?v=4'
954-
},
955-
{
956-
html_url: 'stepankuzmin',
957-
avatar_url: 'https://avatars.githubusercontent.com/u/533564?v=4'
958-
},
959-
{
960-
html_url: 'ubnt-intrepid',
961-
avatar_url: 'https://avatars.githubusercontent.com/u/7354350?v=4'
962-
},
963-
{
964-
html_url: 'sharksforarms',
965-
avatar_url: 'https://avatars.githubusercontent.com/u/10912917?v=4'
966-
},
967847
{
968848
html_url: 'MarcelCoding',
969849
avatar_url: 'https://avatars.githubusercontent.com/u/34819524?v=4'
@@ -972,6 +852,10 @@ export const defaultContributorsList = [
972852
html_url: 'magecnion',
973853
avatar_url: 'https://avatars.githubusercontent.com/u/5495235?v=4'
974854
},
855+
{
856+
html_url: 'matfantinel',
857+
avatar_url: 'https://avatars.githubusercontent.com/u/24247035?v=4'
858+
},
975859
{
976860
html_url: 'TGlide',
977861
avatar_url: 'https://avatars.githubusercontent.com/u/26071571?v=4'
@@ -983,5 +867,13 @@ export const defaultContributorsList = [
983867
{
984868
html_url: 'Copilot',
985869
avatar_url: 'https://avatars.githubusercontent.com/in/1143301?v=4'
870+
},
871+
{
872+
html_url: 'snyk-bot',
873+
avatar_url: 'https://avatars.githubusercontent.com/u/19733683?v=4'
874+
},
875+
{
876+
html_url: 'josecelano-bot',
877+
avatar_url: 'https://avatars.githubusercontent.com/u/93766613?v=4'
986878
}
987879
];

0 commit comments

Comments
 (0)