module GitHub.Endpoints.Issues.Events (
eventsForIssueR,
eventsForRepoR,
eventR,
module GitHub.Data,
) where
import GitHub.Data
import GitHub.Internal.Prelude
import Prelude ()
eventsForIssueR :: Name Owner -> Name Repo -> Id Issue -> FetchCount -> Request k (Vector IssueEvent)
eventsForIssueR :: Name Owner
-> Name Repo
-> Id Issue
-> FetchCount
-> Request k (Vector IssueEvent)
eventsForIssueR Name Owner
user Name Repo
repo Id Issue
iid =
Paths -> QueryString -> FetchCount -> Request k (Vector IssueEvent)
forall a (mt :: RW).
FromJSON a =>
Paths -> QueryString -> FetchCount -> Request mt (Vector a)
pagedQuery [Text
"repos", Name Owner -> Text
forall a. IsPathPart a => a -> Text
toPathPart Name Owner
user, Name Repo -> Text
forall a. IsPathPart a => a -> Text
toPathPart Name Repo
repo, Text
"issues", Id Issue -> Text
forall a. IsPathPart a => a -> Text
toPathPart Id Issue
iid, Text
"events"] []
eventsForRepoR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector IssueEvent)
eventsForRepoR :: Name Owner
-> Name Repo -> FetchCount -> Request k (Vector IssueEvent)
eventsForRepoR Name Owner
user Name Repo
repo =
Paths -> QueryString -> FetchCount -> Request k (Vector IssueEvent)
forall a (mt :: RW).
FromJSON a =>
Paths -> QueryString -> FetchCount -> Request mt (Vector a)
pagedQuery [Text
"repos", Name Owner -> Text
forall a. IsPathPart a => a -> Text
toPathPart Name Owner
user, Name Repo -> Text
forall a. IsPathPart a => a -> Text
toPathPart Name Repo
repo, Text
"issues", Text
"events"] []
eventR :: Name Owner -> Name Repo -> Id IssueEvent -> Request k IssueEvent
eventR :: Name Owner -> Name Repo -> Id IssueEvent -> Request k IssueEvent
eventR Name Owner
user Name Repo
repo Id IssueEvent
eid =
Paths -> QueryString -> Request k IssueEvent
forall (mt :: RW) a. Paths -> QueryString -> Request mt a
query [Text
"repos", Name Owner -> Text
forall a. IsPathPart a => a -> Text
toPathPart Name Owner
user, Name Repo -> Text
forall a. IsPathPart a => a -> Text
toPathPart Name Repo
repo, Text
"issues", Text
"events", Id IssueEvent -> Text
forall a. IsPathPart a => a -> Text
toPathPart Id IssueEvent
eid] []