Skip to content

Dynamically hydrate contributors list#21

Open
Anne-Flower wants to merge 3 commits intoNodeSecure:mainfrom
Anne-Flower:dynamically-hydrate-contributors-list
Open

Dynamically hydrate contributors list#21
Anne-Flower wants to merge 3 commits intoNodeSecure:mainfrom
Anne-Flower:dynamically-hydrate-contributors-list

Conversation

@Anne-Flower
Copy link

@Anne-Flower Anne-Flower commented Mar 21, 2026

  • one script to generate contributors,
  • modified hydrate contributors,
  • I display pseudos because github api endpoints don't send names.
image

@Anne-Flower Anne-Flower requested a review from fraxken March 21, 2026 17:33
Comment on lines +19 to +28
const coreContributors = [
"fraxken",
"PierreDemailly",
"tony-go",
"antoine-coulon",
"Kawacrepe",
"im-codebreaker",
"clemgbld",
"fabnguess"
];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to continue to fetch them from the list in the governance repo like the old code

const response = await fetch("https://raw.githubusercontent.com/NodeSecure/Governance/main/contributors.json");

So if we update the JSON there, this script fetch the right members of the core team


const uniqueContributors = new Map();
for (const contributor of contributors) {
if (bots.includes(contributor.login)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (bots.includes(contributor.login)) {
if (bots.includes(contributor.login) || uniqueContributors.has(contributor.login)) {

And you can remove the nested if just below it would be a bit more readable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants