Safe Haskell | None |
---|---|
Language | Haskell98 |
The pull requests API as documented at http://developer.github.com/v3/pulls/.
- pullRequestsFor' :: Maybe GithubAuth -> String -> String -> IO (Either Error [PullRequest])
- pullRequest' :: Maybe GithubAuth -> String -> String -> Int -> IO (Either Error DetailedPullRequest)
- pullRequestCommits' :: Maybe GithubAuth -> String -> String -> Int -> IO (Either Error [Commit])
- pullRequestFiles' :: Maybe GithubAuth -> String -> String -> Int -> IO (Either Error [File])
- pullRequestsFor :: String -> String -> IO (Either Error [PullRequest])
- pullRequest :: String -> String -> Int -> IO (Either Error DetailedPullRequest)
- pullRequestCommits :: String -> String -> Int -> IO (Either Error [Commit])
- pullRequestFiles :: String -> String -> Int -> IO (Either Error [File])
- isPullRequestMerged :: GithubAuth -> String -> String -> Int -> IO (Either Error Status)
- mergePullRequest :: GithubAuth -> String -> String -> Int -> Maybe String -> IO (Either Error Status)
- updatePullRequest :: GithubAuth -> String -> String -> Int -> EditPullRequest -> IO (Either Error DetailedPullRequest)
- module Github.Data
Documentation
pullRequestsFor' :: Maybe GithubAuth -> String -> String -> IO (Either Error [PullRequest]) Source
All pull requests for the repo, by owner and repo name. | With authentification
pullRequestsFor' (Just ("github-username", "github-password")) "rails" "rails"
pullRequest' :: Maybe GithubAuth -> String -> String -> Int -> IO (Either Error DetailedPullRequest) 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
pullRequestCommits' :: Maybe GithubAuth -> String -> String -> Int -> IO (Either Error [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
pullRequestFiles' :: Maybe GithubAuth -> String -> String -> Int -> IO (Either Error [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
pullRequestsFor :: String -> String -> IO (Either Error [PullRequest]) Source
All pull requests for the repo, by owner and repo name.
pullRequestsFor "rails" "rails"
pullRequest :: String -> String -> Int -> IO (Either Error DetailedPullRequest) 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 :: String -> String -> Int -> IO (Either Error [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 :: String -> String -> Int -> IO (Either Error [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 -> String -> String -> Int -> IO (Either Error Status) Source
Check if pull request has been merged
mergePullRequest :: GithubAuth -> String -> String -> Int -> Maybe String -> IO (Either Error Status) Source
Merge a pull request
updatePullRequest :: GithubAuth -> String -> String -> Int -> EditPullRequest -> IO (Either Error DetailedPullRequest) Source
Update a pull request
module Github.Data