module Github.Issues.Events (
eventsForIssue,
eventsForIssue',
eventsForIssueR,
eventsForRepo,
eventsForRepo',
eventsForRepoR,
event,
event',
eventR,
module Github.Data,
) where
import Data.Vector (Vector)
import Github.Auth
import Github.Data
import Github.Request
eventsForIssue :: Name GithubOwner -> Name Repo -> Id Issue -> IO (Either Error (Vector Event))
eventsForIssue = eventsForIssue' Nothing
eventsForIssue' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> Id Issue -> IO (Either Error (Vector Event))
eventsForIssue' auth user repo iid =
executeRequestMaybe auth $ eventsForIssueR user repo iid Nothing
eventsForIssueR :: Name GithubOwner -> Name Repo -> Id Issue -> Maybe Count -> GithubRequest k (Vector Event)
eventsForIssueR user repo iid =
GithubPagedGet ["repos", toPathPart user, toPathPart repo, "issues", toPathPart iid, "events"] []
eventsForRepo :: Name GithubOwner -> Name Repo -> IO (Either Error (Vector Event))
eventsForRepo = eventsForRepo' Nothing
eventsForRepo' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error (Vector Event))
eventsForRepo' auth user repo =
executeRequestMaybe auth $ eventsForRepoR user repo Nothing
eventsForRepoR :: Name GithubOwner -> Name Repo -> Maybe Count -> GithubRequest k (Vector Event)
eventsForRepoR user repo =
GithubPagedGet ["repos", toPathPart user, toPathPart repo, "issues", "events"] []
event :: Name GithubOwner -> Name Repo -> Id Event -> IO (Either Error Event)
event = event' Nothing
event' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> Id Event -> IO (Either Error Event)
event' auth user repo eid =
executeRequestMaybe auth $ eventR user repo eid
eventR :: Name GithubOwner -> Name Repo -> Id Event -> GithubRequest k Event
eventR user repo eid =
GithubGet ["repos", toPathPart user, toPathPart repo, "issues", "events", show eid] []