github-0.14.0: Access to the Github API, v3.

Safe HaskellNone
LanguageHaskell2010

Github.PullRequests

Description

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

Synopsis

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"

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

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

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

isPullRequestMerged :: GithubAuth -> Name GithubOwner -> Name Repo -> Id PullRequest -> IO (Either Error Status) Source

Check if pull request has been merged.