License | BSD-3-Clause |
---|---|
Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
Safe Haskell | None |
Language | Haskell2010 |
The repo statuses API as described on https://developer.github.com/v3/repos/statuses/.
Synopsis
- createStatus :: Auth -> Name Owner -> Name Repo -> Name Commit -> NewStatus -> IO (Either Error Status)
- createStatusR :: Name Owner -> Name Repo -> Name Commit -> NewStatus -> Request RW Status
- statusesFor :: Auth -> Name Owner -> Name Repo -> Name Commit -> IO (Either Error (Vector Status))
- statusesForR :: Name Owner -> Name Repo -> Name Commit -> FetchCount -> Request RW (Vector Status)
- statusFor :: Auth -> Name Owner -> Name Repo -> Name Commit -> IO (Either Error CombinedStatus)
- statusForR :: Name Owner -> Name Repo -> Name Commit -> Request RW CombinedStatus
- module GitHub.Data
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)
createStatusR :: Name Owner -> Name Repo -> Name Commit -> NewStatus -> Request RW Status Source #
Create a new status See https://developer.github.com/v3/repos/statuses/#create-a-status
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"
statusesForR :: Name Owner -> Name Repo -> Name Commit -> FetchCount -> Request RW (Vector Status) Source #
All statuses for a commit See https://developer.github.com/v3/repos/statuses/#list-statuses-for-a-specific-ref
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"
statusForR :: Name Owner -> Name Repo -> Name Commit -> Request RW CombinedStatus Source #
The combined status for a specific commit See https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref
module GitHub.Data