A GitHub automation script that automatically invites followers of a bot account to join your organization.
- Automatically detects new followers of your bot account
- Checks if followers are already organization members
- Sends organization invitations to new followers
- Simple configuration through environment variables
- Clone this repository
- Install dependencies:
npm install
- Copy
.env.exampleto.env:cp .env.example .env
- Edit
.envwith your configuration:GITHUB_TOKEN: Your GitHub Personal Access Token with 'admin:org' scopeORG: Your organization name (optional - can be changed in the script)BOT_USERNAME: Your bot account username (optional - can be changed in the script)
Run the script:
npm startYou can modify the following constants in scripts/inviteFollowers.js:
ORG: Your organization nameBOT_USERNAME: Your bot account username
- Node.js 14 or higher
- GitHub Personal Access Token with 'admin:org' scope
- A bot account that followers can follow
- Organization admin privileges
Never commit your .env file or expose your GitHub token. The .env file is already in .gitignore to prevent accidental commits.