License | BSD-3-Clause |
---|---|
Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
Safe Haskell | None |
Language | Haskell2010 |
The pull requests API as documented at http://developer.github.com/v3/pulls/.
- pullRequestsFor'' :: Maybe Auth -> Maybe String -> Name Owner -> Name Repo -> IO (Either Error (Vector SimplePullRequest))
- pullRequestsFor' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error (Vector SimplePullRequest))
- pullRequestsFor :: Name Owner -> Name Repo -> IO (Either Error (Vector SimplePullRequest))
- pullRequestsForR :: Name Owner -> Name Repo -> Maybe String -> Maybe Count -> Request k (Vector SimplePullRequest)
- pullRequest' :: Maybe Auth -> Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error PullRequest)
- pullRequest :: Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error PullRequest)
- pullRequestR :: Name Owner -> Name Repo -> Id PullRequest -> Request k PullRequest
- createPullRequest :: Auth -> Name Owner -> Name Repo -> CreatePullRequest -> IO (Either Error PullRequest)
- createPullRequestR :: Name Owner -> Name Repo -> CreatePullRequest -> Request True PullRequest
- updatePullRequest :: Auth -> Name Owner -> Name Repo -> Id PullRequest -> EditPullRequest -> IO (Either Error PullRequest)
- updatePullRequestR :: Name Owner -> Name Repo -> Id PullRequest -> EditPullRequest -> Request True PullRequest
- pullRequestCommits' :: Maybe Auth -> Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector Commit))
- pullRequestCommitsIO :: Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector Commit))
- pullRequestCommitsR :: Name Owner -> Name Repo -> Id PullRequest -> Maybe Count -> Request k (Vector Commit)
- pullRequestFiles' :: Maybe Auth -> Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector File))
- pullRequestFiles :: Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector File))
- pullRequestFilesR :: Name Owner -> Name Repo -> Id PullRequest -> Maybe Count -> Request k (Vector File)
- isPullRequestMerged :: Auth -> Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error Bool)
- isPullRequestMergedR :: Name Owner -> Name Repo -> Id PullRequest -> Request k Bool
- mergePullRequest :: Auth -> Name Owner -> Name Repo -> Id PullRequest -> Maybe String -> IO (Either Error MergeResult)
- mergePullRequestR :: Name Owner -> Name Repo -> Id PullRequest -> Maybe String -> Request True MergeResult
- module GitHub.Data
Documentation
pullRequestsFor'' :: Maybe Auth -> Maybe String -> Name Owner -> Name Repo -> IO (Either Error (Vector SimplePullRequest)) Source
All pull requests for the repo, by owner, repo name, and pull request state. | With authentification
pullRequestsFor' (Just ("github-username", "github-password")) (Just "open") "rails" "rails"
State can be one of all
, open
, or closed
. Default is open
.
pullRequestsFor' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error (Vector SimplePullRequest)) Source
All pull requests for the repo, by owner and repo name. | With authentification
pullRequestsFor' (Just ("github-username", "github-password")) "rails" "rails"
pullRequestsFor :: Name Owner -> Name Repo -> IO (Either Error (Vector SimplePullRequest)) Source
All pull requests for the repo, by owner and repo name.
pullRequestsFor "rails" "rails"
:: Name Owner | |
-> Name Repo | |
-> Maybe String | State |
-> Maybe Count | |
-> Request k (Vector SimplePullRequest) |
List pull requests. See https://developer.github.com/v3/pulls/#list-pull-requests
pullRequest' :: Maybe Auth -> Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error PullRequest) Source
A detailed pull request, which has much more information. This takes the repo owner and name along with the number assigned to the pull request. | With authentification
pullRequest' (Just ("github-username", "github-password")) "thoughtbot" "paperclip" 562
pullRequest :: Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error PullRequest) Source
A detailed pull request, which has much more information. This takes the repo owner and name along with the number assigned to the pull request.
pullRequest "thoughtbot" "paperclip" 562
pullRequestR :: Name Owner -> Name Repo -> Id PullRequest -> Request k PullRequest Source
Query a single pull request. See https://developer.github.com/v3/pulls/#get-a-single-pull-request
createPullRequest :: Auth -> Name Owner -> Name Repo -> CreatePullRequest -> IO (Either Error PullRequest) Source
createPullRequestR :: Name Owner -> Name Repo -> CreatePullRequest -> Request True PullRequest Source
Create a pull request. See https://developer.github.com/v3/pulls/#create-a-pull-request
updatePullRequest :: Auth -> Name Owner -> Name Repo -> Id PullRequest -> EditPullRequest -> IO (Either Error PullRequest) Source
Update a pull request
updatePullRequestR :: Name Owner -> Name Repo -> Id PullRequest -> EditPullRequest -> Request True PullRequest Source
Update a pull request. See https://developer.github.com/v3/pulls/#update-a-pull-request
pullRequestCommits' :: Maybe Auth -> Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector Commit)) Source
All the commits on a pull request, given the repo owner, repo name, and the number of the pull request. | With authentification
pullRequestCommits' (Just ("github-username", "github-password")) "thoughtbot" "paperclip" 688
pullRequestCommitsIO :: Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector Commit)) Source
All the commits on a pull request, given the repo owner, repo name, and the number of the pull request.
pullRequestCommits "thoughtbot" "paperclip" 688
pullRequestCommitsR :: Name Owner -> Name Repo -> Id PullRequest -> Maybe Count -> Request k (Vector Commit) Source
List commits on a pull request. See https://developer.github.com/v3/pulls/#list-commits-on-a-pull-request
pullRequestFiles' :: Maybe Auth -> Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector File)) Source
The individual files that a pull request patches. Takes the repo owner and name, plus the number assigned to the pull request. | With authentification
pullRequestFiles' (Just ("github-username", "github-password")) "thoughtbot" "paperclip" 688
pullRequestFiles :: Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector File)) Source
The individual files that a pull request patches. Takes the repo owner and name, plus the number assigned to the pull request.
pullRequestFiles "thoughtbot" "paperclip" 688
pullRequestFilesR :: Name Owner -> Name Repo -> Id PullRequest -> Maybe Count -> Request k (Vector File) Source
List pull requests files. See https://developer.github.com/v3/pulls/#list-pull-requests-files
isPullRequestMerged :: Auth -> Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error Bool) Source
Check if pull request has been merged.
isPullRequestMergedR :: Name Owner -> Name Repo -> Id PullRequest -> Request k Bool Source
Query if a pull request has been merged. See https://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged
mergePullRequest :: Auth -> Name Owner -> Name Repo -> Id PullRequest -> Maybe String -> IO (Either Error MergeResult) Source
Merge a pull request.
mergePullRequestR :: Name Owner -> Name Repo -> Id PullRequest -> Maybe String -> Request True MergeResult Source
Merge a pull request (Merge Button). https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button
module GitHub.Data