mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-30 22:34:10 -05:00
chore: update contributors script (#3332)
* chore: update script * chore: update contributors file
This commit is contained in:
parent
20d63dc30e
commit
3c81bf8945
3 changed files with 39 additions and 26 deletions
|
@ -175,6 +175,10 @@
|
||||||
"username": "CrispyConductor",
|
"username": "CrispyConductor",
|
||||||
"id": 2132722
|
"id": 2132722
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"username": "NotWearingPants",
|
||||||
|
"id": 26556598
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"username": "Utwo",
|
"username": "Utwo",
|
||||||
"id": 282668
|
"id": 282668
|
||||||
|
@ -260,8 +264,8 @@
|
||||||
"id": 175305
|
"id": 175305
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"username": "NotWearingPants",
|
"username": "mbtools",
|
||||||
"id": 26556598
|
"id": 59966492
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"username": "rmkanda",
|
"username": "rmkanda",
|
||||||
|
@ -403,6 +407,10 @@
|
||||||
"username": "innosatyam",
|
"username": "innosatyam",
|
||||||
"id": 85342175
|
"id": 85342175
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"username": "SuzunaMinami",
|
||||||
|
"id": 49131888
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"username": "varijkapil13",
|
"username": "varijkapil13",
|
||||||
"id": 8291077
|
"id": 8291077
|
||||||
|
@ -783,10 +791,6 @@
|
||||||
"username": "larsgw",
|
"username": "larsgw",
|
||||||
"id": 14018963
|
"id": 14018963
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"username": "mbtools",
|
|
||||||
"id": 59966492
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"username": "mavimo",
|
"username": "mavimo",
|
||||||
"id": 43941
|
"id": 43941
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
{
|
{
|
||||||
"id": 558752,
|
"id": 558752,
|
||||||
"login": "juanpicado",
|
"login": "juanpicado",
|
||||||
"contributions": 4797,
|
"contributions": 4809,
|
||||||
"repositories": [
|
"repositories": [
|
||||||
{
|
{
|
||||||
"name": "verdaccio",
|
"name": "verdaccio",
|
||||||
"contributions": 2568
|
"contributions": 2580
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "verdaccio-cookbook",
|
"name": "verdaccio-cookbook",
|
||||||
|
@ -1122,6 +1122,17 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": 59966492,
|
||||||
|
"login": "mbtools",
|
||||||
|
"contributions": 3,
|
||||||
|
"repositories": [
|
||||||
|
{
|
||||||
|
"name": "verdaccio",
|
||||||
|
"contributions": 3
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": 38713281,
|
"id": 38713281,
|
||||||
"login": "rmkanda",
|
"login": "rmkanda",
|
||||||
|
@ -1559,6 +1570,17 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": 49131888,
|
||||||
|
"login": "SuzunaMinami",
|
||||||
|
"contributions": 2,
|
||||||
|
"repositories": [
|
||||||
|
{
|
||||||
|
"name": "verdaccio",
|
||||||
|
"contributions": 2
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": 8291077,
|
"id": 8291077,
|
||||||
"login": "varijkapil13",
|
"login": "varijkapil13",
|
||||||
|
@ -2656,17 +2678,6 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"id": 59966492,
|
|
||||||
"login": "mbtools",
|
|
||||||
"contributions": 1,
|
|
||||||
"repositories": [
|
|
||||||
{
|
|
||||||
"name": "verdaccio",
|
|
||||||
"contributions": 1
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id": 43941,
|
"id": 43941,
|
||||||
"login": "mavimo",
|
"login": "mavimo",
|
||||||
|
@ -4655,7 +4666,7 @@
|
||||||
"full_name": "verdaccio/verdaccio",
|
"full_name": "verdaccio/verdaccio",
|
||||||
"html_url": "https://github.com/verdaccio/verdaccio",
|
"html_url": "https://github.com/verdaccio/verdaccio",
|
||||||
"description": "📦🔐 A lightweight Node.js private proxy registry",
|
"description": "📦🔐 A lightweight Node.js private proxy registry",
|
||||||
"stargazers_count": 13776,
|
"stargazers_count": 13814,
|
||||||
"archived": false
|
"archived": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -4781,7 +4792,7 @@
|
||||||
"full_name": "verdaccio/monorepo",
|
"full_name": "verdaccio/monorepo",
|
||||||
"html_url": "https://github.com/verdaccio/monorepo",
|
"html_url": "https://github.com/verdaccio/monorepo",
|
||||||
"description": "🏰 Core dependencies and plugins for verdaccio 5.x branch",
|
"description": "🏰 Core dependencies and plugins for verdaccio 5.x branch",
|
||||||
"stargazers_count": 61,
|
"stargazers_count": 62,
|
||||||
"archived": false
|
"archived": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,7 @@ import fs from 'fs/promises';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
||||||
const token = process.env.TOKEN;
|
const token = process.env.TOKEN;
|
||||||
const excludebots = [
|
const excludedAccounts = [
|
||||||
'verdacciobot',
|
'verdacciobot',
|
||||||
'github-actions[bot]',
|
'github-actions[bot]',
|
||||||
'dependabot-preview[bot]',
|
'dependabot-preview[bot]',
|
||||||
|
@ -23,7 +23,7 @@ const excludebots = [
|
||||||
const result = await contributors({
|
const result = await contributors({
|
||||||
token: token as string,
|
token: token as string,
|
||||||
organization: 'verdaccio',
|
organization: 'verdaccio',
|
||||||
excludebots,
|
excludedAccounts,
|
||||||
allowFork: false,
|
allowFork: false,
|
||||||
allowPrivateRepo: false,
|
allowPrivateRepo: false,
|
||||||
});
|
});
|
||||||
|
@ -33,11 +33,9 @@ const excludebots = [
|
||||||
);
|
);
|
||||||
// for the website
|
// for the website
|
||||||
await fs.writeFile(pathContributorsFile, JSON.stringify(result, null, 4));
|
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 };
|
return { username: contributor?.login, id: contributor.id };
|
||||||
});
|
});
|
||||||
// .sort()
|
|
||||||
// .slice(0, 15);
|
|
||||||
// for the ui, list of ids to be added on the contributors.
|
// for the ui, list of ids to be added on the contributors.
|
||||||
const pathContributorsUIFile = path.join(
|
const pathContributorsUIFile = path.join(
|
||||||
__dirname,
|
__dirname,
|
||||||
|
|
Loading…
Reference in a new issue