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

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

GitHub.Endpoints.PullRequests

Description

The pull requests API as documented at http://developer.github.com/v3/pulls/.

Synopsis

Documentation

pullRequestsFor :: Name Owner -> Name Repo -> IO (Either Error (Vector SimplePullRequest)) Source #

All open pull requests for the repo, by owner and repo name.

pullRequestsFor "rails" "rails"

pullRequestsFor' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error (Vector SimplePullRequest)) Source #

All open pull requests for the repo, by owner and repo name.

pullRequestsFor "rails" "rails"

pullRequest' :: Maybe Auth -> Name Owner -> Name Repo -> IssueNumber -> 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 $ BasicAuth "github-username" "github-password") "thoughtbot" "paperclip" 562

pullRequest :: Name Owner -> Name Repo -> IssueNumber -> 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

pullRequestCommits' :: Maybe Auth -> Name Owner -> Name Repo -> IssueNumber -> 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 $ BasicAuth "github-username" "github-password") "thoughtbot" "paperclip" 688

pullRequestCommitsIO :: Name Owner -> Name Repo -> IssueNumber -> 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

pullRequestFiles' :: Maybe Auth -> Name Owner -> Name Repo -> IssueNumber -> 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 $ BasicAuth "github-username" "github-password") "thoughtbot" "paperclip" 688

pullRequestFiles :: Name Owner -> Name Repo -> IssueNumber -> 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

isPullRequestMerged :: Auth -> Name Owner -> Name Repo -> IssueNumber -> IO (Either Error Bool) Source #

Check if pull request has been merged.