A GitHub Webhook Implementation
To run it via Maven and the spring-boot plugin:
$ mvn spring-boot:run [OPTIONS]To run it on the regular command line:
$ java [OPTIONS] -jar gh-review-window-(version)-full.jarWhere OPTIONS include:
| option | description |
|---|---|
| duration | required This is the default window duration |
duration.LABEL |
Additional durations for specific labels |
| secret | The secret that will be used to compute the HMAC |
| startupRepos | Comma separated full repository names to process at startup |
For the syntax of period strings, see the java.time.Duration javadoc.
This is a superset of Spring Boot's autoconfiguration, see the list of common application properties for other supported configuration options.
Example:
$ mvn spring-boot:run -Dduration=P2DIn order to give Review Window the ability to add commit statuses, you need to specify credentials that it can use to access those.
- Generate an Oauth token that gives
repo:statusaccess. - Add it to your environment or
~/.githubfile asgithub_oauth.