This is a server which is used to watch repos at Jam3 and output the license of a repo
A server which watches your organization and outputs license information for repos which contain a
When deploying to Heroku a few environment variables are required:
The organization where repos to be checked are.
This is an api access token to communicate with Github.
To create your personal github access token go here:
This is a secret token value for Github to communicate via webhooks.
https://github.com/organizations/[Your Org Here]/settings/hooks
Ensure you've set the following environment variables:
$ export NODE_ENV=development$ export org=your org #(eg. Jam3)$ export gitToken=your github access token #(details below)
If you're testing webhooks (your server will need to be accessible by github) do the following:
$ export gitHookSecret=your github webhook secret
Optionally you can also do:
$ export repoRegex=regex value
The above will will check which repos licenses will be checked. For instance if the repos you'd like to check started with
project- you'd do the following:
$ export repoRegex=project-.+
MIT, see LICENSE.md for details.