From 3c81bf8945f638891bc6824308746c71a1331bd5 Mon Sep 17 00:00:00 2001 From: Juan Picado Date: Sat, 27 Aug 2022 19:24:57 +0200 Subject: [PATCH] chore: update contributors script (#3332) * chore: update script * chore: update contributors file --- .../Header/generated_contributors_list.json | 16 +++++--- .../src/contributors.json | 41 ++++++++++++------- scripts/contributors-update.ts | 8 ++-- 3 files changed, 39 insertions(+), 26 deletions(-) diff --git a/packages/plugins/ui-theme/src/App/Header/generated_contributors_list.json b/packages/plugins/ui-theme/src/App/Header/generated_contributors_list.json index 7f8e783d7..16e4fcd12 100644 --- a/packages/plugins/ui-theme/src/App/Header/generated_contributors_list.json +++ b/packages/plugins/ui-theme/src/App/Header/generated_contributors_list.json @@ -175,6 +175,10 @@ "username": "CrispyConductor", "id": 2132722 }, + { + "username": "NotWearingPants", + "id": 26556598 + }, { "username": "Utwo", "id": 282668 @@ -260,8 +264,8 @@ "id": 175305 }, { - "username": "NotWearingPants", - "id": 26556598 + "username": "mbtools", + "id": 59966492 }, { "username": "rmkanda", @@ -403,6 +407,10 @@ "username": "innosatyam", "id": 85342175 }, + { + "username": "SuzunaMinami", + "id": 49131888 + }, { "username": "varijkapil13", "id": 8291077 @@ -783,10 +791,6 @@ "username": "larsgw", "id": 14018963 }, - { - "username": "mbtools", - "id": 59966492 - }, { "username": "mavimo", "id": 43941 diff --git a/packages/tools/docusaurus-plugin-contributors/src/contributors.json b/packages/tools/docusaurus-plugin-contributors/src/contributors.json index 001e31063..2abe83db3 100644 --- a/packages/tools/docusaurus-plugin-contributors/src/contributors.json +++ b/packages/tools/docusaurus-plugin-contributors/src/contributors.json @@ -3,11 +3,11 @@ { "id": 558752, "login": "juanpicado", - "contributions": 4797, + "contributions": 4809, "repositories": [ { "name": "verdaccio", - "contributions": 2568 + "contributions": 2580 }, { "name": "verdaccio-cookbook", @@ -1122,6 +1122,17 @@ } ] }, + { + "id": 59966492, + "login": "mbtools", + "contributions": 3, + "repositories": [ + { + "name": "verdaccio", + "contributions": 3 + } + ] + }, { "id": 38713281, "login": "rmkanda", @@ -1559,6 +1570,17 @@ } ] }, + { + "id": 49131888, + "login": "SuzunaMinami", + "contributions": 2, + "repositories": [ + { + "name": "verdaccio", + "contributions": 2 + } + ] + }, { "id": 8291077, "login": "varijkapil13", @@ -2656,17 +2678,6 @@ } ] }, - { - "id": 59966492, - "login": "mbtools", - "contributions": 1, - "repositories": [ - { - "name": "verdaccio", - "contributions": 1 - } - ] - }, { "id": 43941, "login": "mavimo", @@ -4655,7 +4666,7 @@ "full_name": "verdaccio/verdaccio", "html_url": "https://github.com/verdaccio/verdaccio", "description": "📦🔐 A lightweight Node.js private proxy registry", - "stargazers_count": 13776, + "stargazers_count": 13814, "archived": false }, { @@ -4781,7 +4792,7 @@ "full_name": "verdaccio/monorepo", "html_url": "https://github.com/verdaccio/monorepo", "description": "🏰 Core dependencies and plugins for verdaccio 5.x branch", - "stargazers_count": 61, + "stargazers_count": 62, "archived": false }, { diff --git a/scripts/contributors-update.ts b/scripts/contributors-update.ts index 3487ef364..ba458c60c 100644 --- a/scripts/contributors-update.ts +++ b/scripts/contributors-update.ts @@ -3,7 +3,7 @@ import fs from 'fs/promises'; import path from 'path'; const token = process.env.TOKEN; -const excludebots = [ +const excludedAccounts = [ 'verdacciobot', 'github-actions[bot]', 'dependabot-preview[bot]', @@ -23,7 +23,7 @@ const excludebots = [ const result = await contributors({ token: token as string, organization: 'verdaccio', - excludebots, + excludedAccounts, allowFork: false, allowPrivateRepo: false, }); @@ -33,11 +33,9 @@ const excludebots = [ ); // for the website await fs.writeFile(pathContributorsFile, JSON.stringify(result, null, 4)); - const contributorsListId = result.map((contributor: any) => { + const contributorsListId = result.contributors.map((contributor: any) => { return { username: contributor?.login, id: contributor.id }; }); - // .sort() - // .slice(0, 15); // for the ui, list of ids to be added on the contributors. const pathContributorsUIFile = path.join( __dirname,