module Github.Repos.Forks (
forksFor,
forksFor',
forksForR,
module Github.Data,
) where
import Data.Vector (Vector)
import Github.Auth
import Github.Data
import Github.Request
forksFor :: Name GithubOwner -> Name Repo -> IO (Either Error (Vector Repo))
forksFor = forksFor' Nothing
forksFor' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error (Vector Repo))
forksFor' auth user repo =
executeRequestMaybe auth $ forksForR user repo Nothing
forksForR :: Name GithubOwner -> Name Repo -> Maybe Count -> GithubRequest k (Vector Repo)
forksForR user repo =
GithubPagedGet ["repos", toPathPart user, toPathPart repo, "forks"] []