module GitHub.Endpoints.Repos.Invitations (
listInvitationsOnR,
listInvitationsForR,
acceptInvitationFromR
) where
import GitHub.Data
import GitHub.Internal.Prelude
import Prelude ()
listInvitationsOnR :: Name Owner -> Name Repo -> FetchCount -> GenRequest 'MtJSON k (Vector RepoInvitation)
listInvitationsOnR user repo =
PagedQuery ["repos", toPathPart user, toPathPart repo, "invitations"] []
listInvitationsForR :: FetchCount -> Request k (Vector RepoInvitation)
listInvitationsForR =
pagedQuery ["user", "repository_invitations"] []
acceptInvitationFromR :: Id RepoInvitation -> GenRequest 'MtUnit 'RW ()
acceptInvitationFromR invId =
Command Patch ["user", "repository_invitations", toPathPart invId] mempty