module GitHub.Endpoints.GitData.Trees (
treeR,
nestedTreeR,
module GitHub.Data,
) where
import GitHub.Data
import GitHub.Internal.Prelude
import Prelude ()
treeR :: Name Owner -> Name Repo -> Name Tree -> Request k Tree
treeR :: forall (k :: RW).
Name Owner -> Name Repo -> Name Tree -> Request k Tree
treeR Name Owner
user Name Repo
repo Name Tree
sha =
forall (mt :: RW) a. Paths -> QueryString -> Request mt a
query [Text
"repos", forall a. IsPathPart a => a -> Text
toPathPart Name Owner
user, forall a. IsPathPart a => a -> Text
toPathPart Name Repo
repo, Text
"git", Text
"trees", forall a. IsPathPart a => a -> Text
toPathPart Name Tree
sha] []
nestedTreeR :: Name Owner -> Name Repo -> Name Tree -> Request k Tree
nestedTreeR :: forall (k :: RW).
Name Owner -> Name Repo -> Name Tree -> Request k Tree
nestedTreeR Name Owner
user Name Repo
repo Name Tree
sha =
forall (mt :: RW) a. Paths -> QueryString -> Request mt a
query [Text
"repos", forall a. IsPathPart a => a -> Text
toPathPart Name Owner
user, forall a. IsPathPart a => a -> Text
toPathPart Name Repo
repo, Text
"git", Text
"trees", forall a. IsPathPart a => a -> Text
toPathPart Name Tree
sha] [(ByteString
"recursive", forall a. a -> Maybe a
Just ByteString
"1")]