Utilities to handle the organization's permissions
npm install @fastify-org/org-adminThis command adds a user to the specified teams in the GitHub organization.
node --env-file=.env index.js onboard --org <org> --username <user> --team <team_1> --team <team_n> [--dryRun]For the fastify organization, the command would look like:
node --env-file=.env index.js onboard --username <user> --team collaborators --team plugins --team website --team frontendThis command removes a user from the active teams in the GitHub organization and npm teams
and adds the user to the emeritus team if it exists.
node --env-file=.env index.js offboard --org <org> --username <user> [--dryRun]This command checks the last contribution date of org's members. It creates an issue listing the users that have been inactive for more than a specified number of months.
node --env-file=.env index.js emeritus --org <org> [--monthsInactiveThreshold] [--dryRun]For the fastify organization, the command would look like:
node --env-file=.env index.js emeritus --monthsInactiveThreshold 24Licensed under MIT.