PR.js
Simple validation for pull request workflows
Why?
Most projects have rules of some kind about how to submit pull requests, which often include things like commit message formatting, squashing commits, etc. PR.js allows you to implement these rules as simple ES6 classes, using the GitHub API to check against open pull requests.
Prior Art
- GitCop: Closed source, only validates commit messages based on a limited rule set
- Rolling your own: more flexibility; more work; access to local system; requires local installation; for commits, not PRs
Get Going
npm install -g gulp jspm
npm install
jspm
install
gulp serve
http://localhost:3003
Test
Roadmap
- Configurable rules
- Load rules configuration from
package.json
- GitHub auth for private projects
- Remote rule loading
- Node server with Build Status API integration