Safe Haskell | None |
---|---|
Language | Haskell2010 |
The pull requests API as documented at http://developer.github.com/v3/pulls/.
- pullRequestsFor'' :: Maybe GithubAuth -> Maybe String -> Name GithubOwner -> Name Repo -> IO (Either Error (Vector SimplePullRequest))
- pullRequestsFor' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error (Vector SimplePullRequest))
- pullRequestsFor :: Name GithubOwner -> Name Repo -> IO (Either Error (Vector SimplePullRequest))
- pullRequestsForR :: Name GithubOwner -> Name Repo -> Maybe String -> Maybe Count -> GithubRequest k (Vector SimplePullRequest)
- pullRequest' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> Id PullRequest -> IO (Either Error PullRequest)
- pullRequest :: Name GithubOwner -> Name Repo -> Id PullRequest -> IO (Either Error PullRequest)
- pullRequestR :: Name GithubOwner -> Name Repo -> Id PullRequest -> GithubRequest k PullRequest
- createPullRequest :: GithubAuth -> Name GithubOwner -> Name Repo -> CreatePullRequest -> IO (Either Error PullRequest)
- createPullRequestR :: Name GithubOwner -> Name Repo -> CreatePullRequest -> GithubRequest True PullRequest
- updatePullRequest :: GithubAuth -> Name GithubOwner -> Name Repo -> Id PullRequest -> EditPullRequest -> IO (Either Error PullRequest)
- updatePullRequestR :: Name GithubOwner -> Name Repo -> Id PullRequest -> EditPullRequest -> GithubRequest True PullRequest
- pullRequestCommits' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector Commit))
- pullRequestCommitsIO :: Name GithubOwner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector Commit))
- pullRequestCommitsR :: Name GithubOwner -> Name Repo -> Id PullRequest -> Maybe Count -> GithubRequest k (Vector Commit)
- pullRequestFiles' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector File))
- pullRequestFiles :: Name GithubOwner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector File))
- pullRequestFilesR :: Name GithubOwner -> Name Repo -> Id PullRequest -> Maybe Count -> GithubRequest k (Vector File)
- isPullRequestMerged :: GithubAuth -> Name GithubOwner -> Name Repo -> Id PullRequest -> IO (Either Error Status)
- isPullRequestMergedR :: Name GithubOwner -> Name Repo -> Id PullRequest -> GithubRequest k Status
- mergePullRequest :: GithubAuth -> Name GithubOwner -> Name Repo -> Id PullRequest -> Maybe String -> IO (Either Error Status)
- mergePullRequestR :: Name GithubOwner -> Name Repo -> Id PullRequest -> Maybe String -> GithubRequest True Status
- module Github.Data
Documentation
pullRequestsFor'' :: Maybe GithubAuth -> Maybe String -> Name GithubOwner -> 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 GithubAuth -> Name GithubOwner -> 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 GithubOwner -> Name Repo -> IO (Either Error (Vector SimplePullRequest)) Source
All pull requests for the repo, by owner and repo name.
pullRequestsFor "rails" "rails"
:: Name GithubOwner | |
-> Name Repo | |
-> Maybe String | State |
-> Maybe Count | |
-> GithubRequest k (Vector SimplePullRequest) |
List pull requests. See https://developer.github.com/v3/pulls/#list-pull-requests
pullRequest' :: Maybe GithubAuth -> Name GithubOwner -> 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 GithubOwner -> 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 GithubOwner -> Name Repo -> Id PullRequest -> GithubRequest k PullRequest Source
Get a single pull request. See https://developer.github.com/v3/pulls/#get-a-single-pull-request
createPullRequest :: GithubAuth -> Name GithubOwner -> Name Repo -> CreatePullRequest -> IO (Either Error PullRequest) Source
createPullRequestR :: Name GithubOwner -> Name Repo -> CreatePullRequest -> GithubRequest True PullRequest Source
Create a pull request. See https://developer.github.com/v3/pulls/#create-a-pull-request
updatePullRequest :: GithubAuth -> Name GithubOwner -> Name Repo -> Id PullRequest -> EditPullRequest -> IO (Either Error PullRequest) Source
Update a pull request
updatePullRequestR :: Name GithubOwner -> Name Repo -> Id PullRequest -> EditPullRequest -> GithubRequest True PullRequest Source
Update a pull request. See https://developer.github.com/v3/pulls/#update-a-pull-request
pullRequestCommits' :: Maybe GithubAuth -> Name GithubOwner -> 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 GithubOwner -> 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 GithubOwner -> Name Repo -> Id PullRequest -> Maybe Count -> GithubRequest 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 GithubAuth -> Name GithubOwner -> 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 GithubOwner -> 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 GithubOwner -> Name Repo -> Id PullRequest -> Maybe Count -> GithubRequest k (Vector File) Source
List pull requests files. See https://developer.github.com/v3/pulls/#list-pull-requests-files
isPullRequestMerged :: GithubAuth -> Name GithubOwner -> Name Repo -> Id PullRequest -> IO (Either Error Status) Source
Check if pull request has been merged.
isPullRequestMergedR :: Name GithubOwner -> Name Repo -> Id PullRequest -> GithubRequest k Status Source
Get if a pull request has been merged. See https://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged
mergePullRequest :: GithubAuth -> Name GithubOwner -> Name Repo -> Id PullRequest -> Maybe String -> IO (Either Error Status) Source
Merge a pull request.
mergePullRequestR :: Name GithubOwner -> Name Repo -> Id PullRequest -> Maybe String -> GithubRequest True Status Source
Merge a pull request (Merge Button). https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button
module Github.Data