briandoll / PR.js

Simple validation for pull request workflows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Screenshot

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

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

About

Simple validation for pull request workflows

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:JavaScript 64.7%Language:HTML 24.0%Language:CSS 11.2%