/pull

Pull Request Checker Library

Primary LanguageGoMIT LicenseMIT

Logo Pull

Travis Build Coverage License Documentation Chat

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 ❗

Example

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))

Installation

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

License

This software is licensed under the MIT license.