gh-sponsor-up
v0.1.1
Published
Sync funding metadata and enable GitHub sponsorships in bulk.
Readme
gh-sponsor-up
Sync funding metadata across local repositories and enable GitHub project sponsorships in bulk.
npx gh-sponsor-up --cwd ~/code/repos --funding jinghaihan --token $GH_TOKENFeature
This CLI can:
- update
package.jsonfunding - create
.github/FUNDING.yml - run a post command in each repository
- commit and push changes
- enable GitHub project sponsorships with retries
Configuration
You can use CLI flags or a gh-sponsor-up.config.ts file:
import { defineConfig } from 'gh-sponsor-up'
export default defineConfig({
funding: 'jinghaihan',
fundingTemplate: './templates/FUNDING.yml',
retries: 5,
retryInterval: 120000,
})If token is omitted, GH_TOKEN or GITHUB_TOKEN will be used automatically.
If fundingTemplate is provided, the file will be copied as .github/FUNDING.yml when a repository does not already have one.
License
MIT License © jinghaihan
