0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

chore: update contributors script (#3332)

* chore: update script

* chore: update contributors file
This commit is contained in:
Juan Picado 2022-08-27 19:24:57 +02:00 committed by GitHub
parent 20d63dc30e
commit 3c81bf8945
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 39 additions and 26 deletions

View file

@ -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

View file

@ -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
},
{

View file

@ -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,