github-0.23: Access to the GitHub API, v3.

LicenseBSD-3-Clause
MaintainerOleg Grenrus <oleg.grenrus@iki.fi>
Safe HaskellNone
LanguageHaskell2010

GitHub.Endpoints.Repos.Statuses

Description

The repo statuses API as described on https://developer.github.com/v3/repos/statuses/.

Synopsis

Documentation

createStatus :: Auth -> Name Owner -> Name Repo -> Name Commit -> NewStatus -> IO (Either Error Status) Source #

Create a new status

createStatus (BasicAuth user password) "thoughtbot" "paperclip"
  "41f685f6e01396936bb8cd98e7cca517e2c7d96b"
  (NewStatus StatusSuccess Nothing "Looks good!" Nothing)

statusesFor :: Auth -> Name Owner -> Name Repo -> Name Commit -> IO (Either Error (Vector Status)) Source #

All statuses for a commit

statusesFor (BasicAuth user password) "thoughtbot" "paperclip"
  "41f685f6e01396936bb8cd98e7cca517e2c7d96b"

statusFor :: Auth -> Name Owner -> Name Repo -> Name Commit -> IO (Either Error CombinedStatus) Source #

The combined status for a specific commit

statusFor (BasicAuth user password) "thoughtbot" "paperclip"
  "41f685f6e01396936bb8cd98e7cca517e2c7d96b"