Skip to content

hafffe/gh-latest-contribs

Repository files navigation

CircleCI

gh-latest-contribs

Get your latest contributions as microservice

Heavily inspired by sindresorhus/gh-latest-repos

Usage

With now

Deploy to now

or

$ now gh-latest-contribs --env NODE_ENV=production --env GITHUB_TOKEN=xxx --env GITHUB_USERNAME=xxx --env ACCESS_ALLOW_ORIGIN=xxx --env MAX_COUNT=8

Manual

Deploy to your hosting provider, set the below environment variables, and start it with npm start.

Environment variables

Define the following environment variables:

  • GITHUB_TOKEN - Personal access token.
  • GITHUB_USERNAME - The username you like to get repos from.
  • ACCESS_ALLOW_ORIGIN - The URL of your website or * if you want to allow any origin (not recommended), for the Access-Control-Allow-Origin header.
  • MAX_COUNT - Amount of contributions you want to fetch, (defaults to 5).

License

MIT © alonalon

About

Get your latest contributions as microservice

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published