module GitHub.Endpoints.GitData.Commits (
commit,
gitCommitR,
module GitHub.Data,
) where
import GitHub.Data
import GitHub.Internal.Prelude
import GitHub.Request
import Prelude ()
commit :: Name Owner -> Name Repo -> Name GitCommit -> IO (Either Error GitCommit)
commit user repo sha =
executeRequest' $ gitCommitR user repo sha
gitCommitR :: Name Owner -> Name Repo -> Name GitCommit -> Request k GitCommit
gitCommitR user repo sha =
query ["repos", toPathPart user, toPathPart repo, "git", "commits", toPathPart sha] []