Skip to content
Get your latest contributions as microservice
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fixture
.editorconfig
.gitattributes
.gitignore
.npmrc
index.js
license
package.json
readme.md
test.js

readme.md

gh-latest-contribs

Get your latest contributions as microservice

Heavily inspired by sindresorhus/gh-latest-repos

Usage

With now

Deploy to now

or

$ now alonalon/gh-latest-contribs -e NODE_ENV=production -e GITHUB_TOKEN=xxx -e GITHUB_USERNAME=xxx -e ACCESS_ALLOW_ORIGIN=xxx -e 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

You can’t perform that action at this time.