Safe Haskell | None |
---|---|
Language | Haskell2010 |
The repo commits API as described on http://developer.github.com/v3/repos/commits/.
- data CommitQueryOption
- commitsFor :: Name GithubOwner -> Name Repo -> IO (Either Error (Vector Commit))
- commitsFor' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error (Vector Commit))
- commitsForR :: Name GithubOwner -> Name Repo -> Maybe Count -> GithubRequest k (Vector Commit)
- commitsWithOptionsFor :: Name GithubOwner -> Name Repo -> [CommitQueryOption] -> IO (Either Error (Vector Commit))
- commitsWithOptionsFor' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> [CommitQueryOption] -> IO (Either Error (Vector Commit))
- commitsWithOptionsForR :: Name GithubOwner -> Name Repo -> Maybe Count -> [CommitQueryOption] -> GithubRequest k (Vector Commit)
- commit :: Name GithubOwner -> Name Repo -> Name Commit -> IO (Either Error Commit)
- commit' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> Name Commit -> IO (Either Error Commit)
- commitR :: Name GithubOwner -> Name Repo -> Name Commit -> GithubRequest k Commit
- diff :: Name GithubOwner -> Name Repo -> Name Commit -> Name Commit -> IO (Either Error Diff)
- diff' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> Name Commit -> Name Commit -> IO (Either Error Diff)
- diffR :: Name GithubOwner -> Name Repo -> Name Commit -> Name Commit -> GithubRequest k Diff
- module Github.Data
Documentation
data CommitQueryOption Source
The options for querying commits.
commitsFor :: Name GithubOwner -> Name Repo -> IO (Either Error (Vector Commit)) Source
The commit history for a repo.
commitsFor "mike-burns" "github"
commitsFor' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error (Vector Commit)) Source
The commit history for a repo. With authentication.
commitsFor' (Just (GithubBasicAuth (user, password))) "mike-burns" "github"
commitsForR :: Name GithubOwner -> Name Repo -> Maybe Count -> GithubRequest k (Vector Commit) Source
List commits on a repository. See https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository
commitsWithOptionsFor :: Name GithubOwner -> Name Repo -> [CommitQueryOption] -> IO (Either Error (Vector Commit)) Source
commitsWithOptionsFor' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> [CommitQueryOption] -> IO (Either Error (Vector Commit)) Source
The commit history for a repo, with commits filtered to satisfy a list of query options. With authentication.
commitsWithOptionsFor' (Just (GithubBasicAuth (user, password))) "mike-burns" "github" [CommitQueryAuthor "djeik"]
commitsWithOptionsForR :: Name GithubOwner -> Name Repo -> Maybe Count -> [CommitQueryOption] -> GithubRequest k (Vector Commit) Source
List commits on a repository. See https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository
commit :: Name GithubOwner -> Name Repo -> Name Commit -> IO (Either Error Commit) Source
Details on a specific SHA1 for a repo.
commit "mike-burns" "github" "9d1a9a361266c3c890b1108ad2fdf52f824b1b81"
commit' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> Name Commit -> IO (Either Error Commit) Source
Details on a specific SHA1 for a repo. With authentication.
commit (Just $ GithubBasicAuth (username, password)) "mike-burns" "github" "9d1a9a361266c3c890b1108ad2fdf52f824b1b81"
commitR :: Name GithubOwner -> Name Repo -> Name Commit -> GithubRequest k Commit Source
Get a single commit. See https://developer.github.com/v3/repos/commits/#get-a-single-commit
diff :: Name GithubOwner -> Name Repo -> Name Commit -> Name Commit -> IO (Either Error Diff) Source
The diff between two treeishes on a repo.
diff "thoughtbot" "paperclip" "41f685f6e01396936bb8cd98e7cca517e2c7d96b" "HEAD"
diff' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> Name Commit -> Name Commit -> IO (Either Error Diff) Source
The diff between two treeishes on a repo.
diff "thoughtbot" "paperclip" "41f685f6e01396936bb8cd98e7cca517e2c7d96b" "HEAD"
diffR :: Name GithubOwner -> Name Repo -> Name Commit -> Name Commit -> GithubRequest k Diff Source
Compare two commits. See https://developer.github.com/v3/repos/commits/#compare-two-commits
module Github.Data