Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (chapa-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
chapa-cli
Merge GitHub EMU (Enterprise Managed User) contributions into your Chapa developer impact badge.
If your employer uses GitHub EMU accounts, your work contributions are invisible on your personal profile. This CLI fetches your EMU stats and uploads them to Chapa so your badge reflects your full impact.
Usage
npx chapa-cli merge \
--handle your-personal-handle \
--emu-handle your-emu-handleOptions
| Flag | Description | Required |
|---|---|---|
--handle <handle> |
Your personal GitHub handle | Yes |
--emu-handle <handle> |
Your EMU GitHub handle | Yes |
--emu-token <token> |
EMU GitHub token | No* |
--token <token> |
Personal GitHub token | No* |
--server <url> |
Chapa server URL | No |
--version, -v |
Show version number | |
--help, -h |
Show help message |
*Tokens are resolved in order: flag > environment variable > gh auth token.
Token setup
Set tokens via environment variables to avoid passing them on every run:
export GITHUB_TOKEN=ghp_your_personal_token
export GITHUB_EMU_TOKEN=ghp_your_emu_tokenTokens need the read:user scope at minimum.
How it works
- Fetches your last 90 days of activity from the EMU account via GitHub GraphQL API
- Uploads the stats (commits, PRs merged, reviews) to the Chapa server
- Your Chapa badge recalculates on next refresh, combining personal + EMU contributions
License
MIT