Gathers metadata from source code repositories
RepoCop monitors your source code repositories and reports violations to committers.
- Each repository should have a file called repocop.json in the root directory
- repocop.json should contain at least the following element
Thanks to all sorts of interactive shenanigans with ssh and bower you are best running this by hand
mkdir -p $INSTALL_DIRgit clone $INSTALL_DIRcd $INSTALL_DIRnpm installbower install./node_modules/.bin/gulp buildNODE_ENV=production node server.js --server.host=$HOST --server.port=$PORT
cd $INSTALL_DIRgit fetchgit reset --hard origin/masternpm install./node_modules/.bin/gulp buildkill -s SIGUSR2 $REPOCOP_PID
RepoCop requires you to define organisations in conf/private.json, e.g.
The application key can be generated in GitHub on the Applications settings page, under Personal Access Tokens. It should have access to the following roles
$ curl -X POST localhost:8080/api/surveyAccepted