A pull request checker library for Go.
❗ Still in heavy development. Not everything in this document is accurate. Please wait for the 0.1 release ❗
handler := pull.New(
pull.Configuration{
Middlewares: pull.Middlewares{
"reopened": {
signed.Signed,
changelog.New("CHANGELOG.md")},
"opened": {
deny.New("We do not accept pull requests!")}},
})
http.Handle("/webhook", handler)
log.Fatal(http.ListenAndServe(":8080", nil))
Install with go get
go get github.com/hansrodtang/pull
For those who prefer stable releases, you can also use gopkg.in:
go get gopkg.in/hansrodtang/pull.v0
This software is licensed under the MIT license.