Skip to content

Utilities to handle the organization's permissions

License

fastify/org-admin

org-admin

Utilities to handle the organization's permissions

Installation

npm install @fastify-org/org-admin

Commands

Onboard a user

This 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 frontend

Offboard a user

  • TODO

Check emeritus members

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 24

License

Licensed under MIT.

About

Utilities to handle the organization's permissions

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published