| License | BSD-3-Clause |
|---|---|
| Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
| Safe Haskell | None |
| Language | Haskell2010 |
GitHub
Contents
Description
This module re-exports all request constructrors and data definitions from this package.
See GitHub.Request module for executing Request, or other modules
of this package (e.g. GitHub.Endpoints.Users) for already composed versions.
The missing endpoints lists show which endpoints we know are missing, there might be more.
Synopsis
- repositoryEventsR :: Name Owner -> Name Repo -> FetchCount -> Request RO (Vector Event)
- userEventsR :: Name User -> FetchCount -> Request RO (Vector Event)
- getNotificationsR :: FetchCount -> Request RA (Vector Notification)
- markNotificationAsReadR :: Id Notification -> GenRequest MtUnit RW ()
- markAllNotificationsAsReadR :: GenRequest MtUnit RW ()
- stargazersForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector SimpleUser)
- reposStarredByR :: Name Owner -> FetchCount -> Request k (Vector Repo)
- myStarredR :: FetchCount -> Request RA (Vector Repo)
- myStarredAcceptStarR :: FetchCount -> GenRequest MtStar RA (Vector RepoStarred)
- starRepoR :: Name Owner -> Name Repo -> GenRequest MtUnit RW ()
- unstarRepoR :: Name Owner -> Name Repo -> GenRequest MtUnit RW ()
- watchersForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector SimpleUser)
- reposWatchedByR :: Name Owner -> FetchCount -> Request k (Vector Repo)
- gistsR :: Name Owner -> FetchCount -> Request k (Vector Gist)
- gistR :: Name Gist -> Request k Gist
- starGistR :: Name Gist -> GenRequest MtUnit RW ()
- unstarGistR :: Name Gist -> GenRequest MtUnit RW ()
- deleteGistR :: Name Gist -> GenRequest MtUnit RW ()
- commentsOnR :: Name Gist -> FetchCount -> Request k (Vector GistComment)
- gistCommentR :: Id GistComment -> Request k GistComment
- blobR :: Name Owner -> Name Repo -> Name Blob -> Request k Blob
- gitCommitR :: Name Owner -> Name Repo -> Name GitCommit -> Request k GitCommit
- referenceR :: Name Owner -> Name Repo -> Name GitReference -> Request k GitReference
- referencesR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector GitReference)
- createReferenceR :: Name Owner -> Name Repo -> NewGitReference -> Request RW GitReference
- treeR :: Name Owner -> Name Repo -> Name Tree -> Request k Tree
- nestedTreeR :: Name Owner -> Name Repo -> Name Tree -> Request k Tree
- currentUserIssuesR :: IssueMod -> FetchCount -> Request RA (Vector Issue)
- organizationIssuesR :: Name Organization -> IssueMod -> FetchCount -> Request k (Vector Issue)
- issueR :: Name Owner -> Name Repo -> Id Issue -> Request k Issue
- issuesForRepoR :: Name Owner -> Name Repo -> IssueRepoMod -> FetchCount -> Request k (Vector Issue)
- createIssueR :: Name Owner -> Name Repo -> NewIssue -> Request RW Issue
- editIssueR :: Name Owner -> Name Repo -> Id Issue -> EditIssue -> Request RW Issue
- commentR :: Name Owner -> Name Repo -> Id Comment -> Request k IssueComment
- commentsR :: Name Owner -> Name Repo -> IssueNumber -> FetchCount -> Request k (Vector IssueComment)
- createCommentR :: Name Owner -> Name Repo -> IssueNumber -> Text -> Request RW Comment
- deleteCommentR :: Name Owner -> Name Repo -> Id Comment -> GenRequest MtUnit RW ()
- editCommentR :: Name Owner -> Name Repo -> Id Comment -> Text -> Request RW Comment
- eventsForIssueR :: Name Owner -> Name Repo -> Id Issue -> FetchCount -> Request k (Vector IssueEvent)
- eventsForRepoR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector IssueEvent)
- eventR :: Name Owner -> Name Repo -> Id IssueEvent -> Request k IssueEvent
- labelsOnRepoR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector IssueLabel)
- labelR :: Name Owner -> Name Repo -> Name IssueLabel -> Request k IssueLabel
- createLabelR :: Name Owner -> Name Repo -> Name IssueLabel -> String -> Request RW IssueLabel
- updateLabelR :: Name Owner -> Name Repo -> Name IssueLabel -> Name IssueLabel -> String -> Request RW IssueLabel
- deleteLabelR :: Name Owner -> Name Repo -> Name IssueLabel -> GenRequest MtUnit RW ()
- labelsOnIssueR :: Name Owner -> Name Repo -> Id Issue -> FetchCount -> Request k (Vector IssueLabel)
- addLabelsToIssueR :: Foldable f => Name Owner -> Name Repo -> Id Issue -> f (Name IssueLabel) -> Request RW (Vector IssueLabel)
- removeLabelFromIssueR :: Name Owner -> Name Repo -> Id Issue -> Name IssueLabel -> GenRequest MtUnit RW ()
- replaceAllLabelsForIssueR :: Foldable f => Name Owner -> Name Repo -> Id Issue -> f (Name IssueLabel) -> Request RW (Vector IssueLabel)
- removeAllLabelsFromIssueR :: Name Owner -> Name Repo -> Id Issue -> GenRequest MtUnit RW ()
- labelsOnMilestoneR :: Name Owner -> Name Repo -> Id Milestone -> FetchCount -> Request k (Vector IssueLabel)
- milestonesR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Milestone)
- milestoneR :: Name Owner -> Name Repo -> Id Milestone -> Request k Milestone
- createMilestone :: Auth -> Name Owner -> Name Repo -> NewMilestone -> IO (Either Error Milestone)
- createMilestoneR :: Name Owner -> Name Repo -> NewMilestone -> Request RW Milestone
- updateMilestone :: Auth -> Name Owner -> Name Repo -> Id Milestone -> UpdateMilestone -> IO (Either Error Milestone)
- updateMilestoneR :: Name Owner -> Name Repo -> Id Milestone -> UpdateMilestone -> Request RW Milestone
- deleteMilestone :: Auth -> Name Owner -> Name Repo -> Id Milestone -> IO (Either Error ())
- deleteMilestoneR :: Name Owner -> Name Repo -> Id Milestone -> GenRequest MtUnit RW ()
- publicOrganizationsForR :: Name User -> FetchCount -> Request k (Vector SimpleOrganization)
- publicOrganizationR :: Name Organization -> Request k Organization
- organizationsR :: FetchCount -> Request k (Vector SimpleOrganization)
- membersOfR :: Name Organization -> FetchCount -> Request k (Vector SimpleUser)
- membersOfWithR :: Name Organization -> OrgMemberFilter -> OrgMemberRole -> FetchCount -> Request k (Vector SimpleUser)
- isMemberOfR :: Name User -> Name Organization -> GenRequest MtStatus rw Bool
- orgInvitationsR :: Name Organization -> FetchCount -> Request RA (Vector Invitation)
- teamsOfR :: Name Organization -> FetchCount -> Request k (Vector SimpleTeam)
- teamInfoForR :: Id Team -> Request k Team
- createTeamForR :: Name Organization -> CreateTeam -> Request RW Team
- editTeamR :: Id Team -> EditTeam -> Request RW Team
- deleteTeamR :: Id Team -> GenRequest MtUnit RW ()
- listTeamMembersR :: Id Team -> TeamMemberRole -> FetchCount -> Request RA (Vector SimpleUser)
- listTeamReposR :: Id Team -> FetchCount -> Request k (Vector Repo)
- teamMembershipInfoForR :: Id Team -> Name Owner -> Request k TeamMembership
- addTeamMembershipForR :: Id Team -> Name Owner -> Role -> Request RW TeamMembership
- deleteTeamMembershipForR :: Id Team -> Name Owner -> GenRequest MtUnit RW ()
- listTeamsCurrentR :: FetchCount -> Request RA (Vector Team)
- pullRequestsForR :: Name Owner -> Name Repo -> PullRequestMod -> FetchCount -> Request k (Vector SimplePullRequest)
- pullRequestR :: Name Owner -> Name Repo -> IssueNumber -> Request k PullRequest
- pullRequestPatchR :: Name Owner -> Name Repo -> IssueNumber -> GenRequest MtPatch rw ByteString
- pullRequestDiffR :: Name Owner -> Name Repo -> IssueNumber -> GenRequest MtDiff rw ByteString
- createPullRequestR :: Name Owner -> Name Repo -> CreatePullRequest -> Request RW PullRequest
- updatePullRequestR :: Name Owner -> Name Repo -> IssueNumber -> EditPullRequest -> Request RW PullRequest
- pullRequestCommitsR :: Name Owner -> Name Repo -> IssueNumber -> FetchCount -> Request k (Vector Commit)
- pullRequestFilesR :: Name Owner -> Name Repo -> IssueNumber -> FetchCount -> Request k (Vector File)
- isPullRequestMergedR :: Name Owner -> Name Repo -> IssueNumber -> GenRequest MtStatus rw Bool
- mergePullRequestR :: Name Owner -> Name Repo -> IssueNumber -> Maybe Text -> GenRequest MtStatus RW MergeResult
- pullRequestCommentsR :: Name Owner -> Name Repo -> IssueNumber -> FetchCount -> Request k (Vector Comment)
- pullRequestCommentR :: Name Owner -> Name Repo -> Id Comment -> Request k Comment
- createPullCommentR :: Name Owner -> Name Repo -> IssueNumber -> Text -> Text -> Int -> Text -> Request RW Comment
- pullRequestReviewsR :: Name Owner -> Name Repo -> Id PullRequest -> FetchCount -> Request k (Vector Review)
- pullRequestReviews :: Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector Review))
- pullRequestReviews' :: Maybe Auth -> Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector Review))
- pullRequestReviewR :: Name Owner -> Name Repo -> Id PullRequest -> Id Review -> Request k Review
- pullRequestReview :: Name Owner -> Name Repo -> Id PullRequest -> Id Review -> IO (Either Error Review)
- pullRequestReview' :: Maybe Auth -> Name Owner -> Name Repo -> Id PullRequest -> Id Review -> IO (Either Error Review)
- pullRequestReviewCommentsR :: Name Owner -> Name Repo -> Id PullRequest -> Id Review -> Request k [ReviewComment]
- pullRequestReviewCommentsIO :: Name Owner -> Name Repo -> Id PullRequest -> Id Review -> IO (Either Error [ReviewComment])
- pullRequestReviewCommentsIO' :: Maybe Auth -> Name Owner -> Name Repo -> Id PullRequest -> Id Review -> IO (Either Error [ReviewComment])
- currentUserReposR :: RepoPublicity -> FetchCount -> Request k (Vector Repo)
- userReposR :: Name Owner -> RepoPublicity -> FetchCount -> Request k (Vector Repo)
- organizationReposR :: Name Organization -> RepoPublicity -> FetchCount -> Request k (Vector Repo)
- repositoryR :: Name Owner -> Name Repo -> Request k Repo
- contributorsR :: Name Owner -> Name Repo -> Bool -> FetchCount -> Request k (Vector Contributor)
- languagesForR :: Name Owner -> Name Repo -> Request k Languages
- tagsForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Tag)
- branchesForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Branch)
- collaboratorsOnR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector SimpleUser)
- isCollaboratorOnR :: Name Owner -> Name Repo -> Name User -> GenRequest MtStatus rw Bool
- addCollaboratorR :: Name Owner -> Name Repo -> Name User -> GenRequest MtJSON RW (Maybe RepoInvitation)
- commentsForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Comment)
- commitCommentsForR :: Name Owner -> Name Repo -> Name Commit -> FetchCount -> Request k (Vector Comment)
- commitCommentForR :: Name Owner -> Name Repo -> Id Comment -> Request k Comment
- commitsForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Commit)
- commitsWithOptionsForR :: Name Owner -> Name Repo -> FetchCount -> [CommitQueryOption] -> Request k (Vector Commit)
- commitR :: Name Owner -> Name Repo -> Name Commit -> Request k Commit
- diffR :: Name Owner -> Name Repo -> Name Commit -> Name Commit -> Request k Diff
- deploymentsWithOptionsForR :: FromJSON a => Name Owner -> Name Repo -> FetchCount -> [DeploymentQueryOption] -> Request RA (Vector (Deployment a))
- createDeploymentR :: (ToJSON a, FromJSON a) => Name Owner -> Name Repo -> CreateDeployment a -> Request RW (Deployment a)
- deploymentStatusesForR :: Name Owner -> Name Repo -> Id (Deployment a) -> FetchCount -> Request RA (Vector DeploymentStatus)
- createDeploymentStatusR :: Name Owner -> Name Repo -> Id (Deployment a) -> CreateDeploymentStatus -> Request RW DeploymentStatus
- forksForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Repo)
- webhooksForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector RepoWebhook)
- webhookForR :: Name Owner -> Name Repo -> Id RepoWebhook -> Request k RepoWebhook
- createRepoWebhookR :: Name Owner -> Name Repo -> NewRepoWebhook -> Request RW RepoWebhook
- editRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> EditRepoWebhook -> Request RW RepoWebhook
- testPushRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> GenRequest MtStatus RW Bool
- pingRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> GenRequest MtStatus RW Bool
- deleteRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> GenRequest MtUnit RW ()
- releasesR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Release)
- releaseR :: Name Owner -> Name Repo -> Id Release -> Request k Release
- latestReleaseR :: Name Owner -> Name Repo -> Request k Release
- releaseByTagNameR :: Name Owner -> Name Repo -> Text -> Request k Release
- listInvitationsOnR :: Name Owner -> Name Repo -> FetchCount -> GenRequest MtJSON k (Vector RepoInvitation)
- acceptInvitationFromR :: Id RepoInvitation -> GenRequest MtUnit RW ()
- listInvitationsForR :: FetchCount -> Request k (Vector RepoInvitation)
- searchReposR :: Text -> Request k (SearchResult Repo)
- searchCodeR :: Text -> Request k (SearchResult Code)
- searchIssuesR :: Text -> Request k (SearchResult Issue)
- userInfoForR :: Name User -> Request k User
- ownerInfoForR :: Name Owner -> Request k Owner
- userInfoCurrentR :: Request RA User
- currentUserEmailsR :: FetchCount -> Request RA (Vector Email)
- currentUserPublicEmailsR :: FetchCount -> Request RA (Vector Email)
- usersFollowingR :: Name User -> FetchCount -> Request k (Vector SimpleUser)
- usersFollowedByR :: Name User -> FetchCount -> Request k (Vector SimpleUser)
- createStatusR :: Name Owner -> Name Repo -> Name Commit -> NewStatus -> Request RW Status
- statusesForR :: Name Owner -> Name Repo -> Name Commit -> FetchCount -> Request RW (Vector Status)
- statusForR :: Name Owner -> Name Repo -> Name Commit -> Request RW CombinedStatus
- rateLimitR :: Request k RateLimit
- module GitHub.Data
- module GitHub.Request
Activity
Events
repositoryEventsR :: Name Owner -> Name Repo -> FetchCount -> Request RO (Vector Event) Source #
List repository events. See https://developer.github.com/v3/activity/events/#list-repository-events
userEventsR :: Name User -> FetchCount -> Request RO (Vector Event) Source #
List user public events. See https://developer.github.com/v3/activity/events/#list-public-events-performed-by-a-user
Notifications
getNotificationsR :: FetchCount -> Request RA (Vector Notification) Source #
List your notifications. See https://developer.github.com/v3/activity/notifications/#list-your-notifications
markNotificationAsReadR :: Id Notification -> GenRequest MtUnit RW () Source #
Mark a thread as read. See https://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read
markAllNotificationsAsReadR :: GenRequest MtUnit RW () Source #
Mark as read. See https://developer.github.com/v3/activity/notifications/#mark-as-read
Starring
See https://developer.github.com/v3/activity/starring/
Missing endpoints:
- Check if you are starring a repository
stargazersForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector SimpleUser) Source #
List Stargazers. See https://developer.github.com/v3/activity/starring/#list-stargazers
reposStarredByR :: Name Owner -> FetchCount -> Request k (Vector Repo) Source #
List repositories being starred. See https://developer.github.com/v3/activity/starring/#list-repositories-being-starred
myStarredR :: FetchCount -> Request RA (Vector Repo) Source #
All the repos starred by the authenticated user. See https://developer.github.com/v3/activity/starring/#list-repositories-being-starred
myStarredAcceptStarR :: FetchCount -> GenRequest MtStar RA (Vector RepoStarred) Source #
All the repos starred by the authenticated user. See https://developer.github.com/v3/activity/starring/#alternative-response-with-star-creation-timestamps-1
starRepoR :: Name Owner -> Name Repo -> GenRequest MtUnit RW () Source #
Star a repo by the authenticated user. See https://developer.github.com/v3/activity/starring/#star-a-repository
unstarRepoR :: Name Owner -> Name Repo -> GenRequest MtUnit RW () Source #
Unstar a repo by the authenticated user. See https://developer.github.com/v3/activity/starring/#unstar-a-repository
Watching
See https://developer.github.com/v3/activity/
Missing endpoints:
- Query a Repository Subscription
- Set a Repository Subscription
- Delete a Repository Subscription
watchersForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector SimpleUser) Source #
List watchers. See https://developer.github.com/v3/activity/watching/#list-watchers
reposWatchedByR :: Name Owner -> FetchCount -> Request k (Vector Repo) Source #
List repositories being watched. See https://developer.github.com/v3/activity/watching/#list-repositories-being-watched
Gists
See https://developer.github.com/v3/gists/
Missing endpoints:
- Query a specific revision of a gist
- Create a gist
- Edit a gist
- List gist commits
- Check if a gist is starred
- Fork a gist
- List gist forks
gistsR :: Name Owner -> FetchCount -> Request k (Vector Gist) Source #
List gists. See https://developer.github.com/v3/gists/#list-gists
gistR :: Name Gist -> Request k Gist Source #
Query a single gist. See https://developer.github.com/v3/gists/#get-a-single-gist
starGistR :: Name Gist -> GenRequest MtUnit RW () Source #
Star a gist by the authenticated user. See https://developer.github.com/v3/gists/#star-a-gist
unstarGistR :: Name Gist -> GenRequest MtUnit RW () Source #
Unstar a gist by the authenticated user. See https://developer.github.com/v3/gists/#unstar-a-gist
deleteGistR :: Name Gist -> GenRequest MtUnit RW () Source #
Delete a gist by the authenticated user. See https://developer.github.com/v3/gists/#delete-a-gist
Comments
See https://developer.github.com/v3/gists/comments/
Missing endpoints: * Create a comment * Edit a comment * Delete a comment
commentsOnR :: Name Gist -> FetchCount -> Request k (Vector GistComment) Source #
List comments on a gist. See https://developer.github.com/v3/gists/comments/#list-comments-on-a-gist
gistCommentR :: Id GistComment -> Request k GistComment Source #
Query a single comment. See https://developer.github.com/v3/gists/comments/#get-a-single-comment
Git Data
Blobs
blobR :: Name Owner -> Name Repo -> Name Blob -> Request k Blob Source #
Query a blob. See https://developer.github.com/v3/git/blobs/#get-a-blob
Commits
gitCommitR :: Name Owner -> Name Repo -> Name GitCommit -> Request k GitCommit Source #
Query a commit. See https://developer.github.com/v3/git/commits/#get-a-commit
References
referenceR :: Name Owner -> Name Repo -> Name GitReference -> Request k GitReference Source #
Query a reference. See https://developer.github.com/v3/git/refs/#get-a-reference
referencesR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector GitReference) Source #
Query all References. See https://developer.github.com/v3/git/refs/#get-all-references
createReferenceR :: Name Owner -> Name Repo -> NewGitReference -> Request RW GitReference Source #
Create a reference. See https://developer.github.com/v3/git/refs/#create-a-reference
Trees
treeR :: Name Owner -> Name Repo -> Name Tree -> Request k Tree Source #
Query a Tree. See https://developer.github.com/v3/git/trees/#get-a-tree
nestedTreeR :: Name Owner -> Name Repo -> Name Tree -> Request k Tree Source #
Query a Tree Recursively. See https://developer.github.com/v3/git/trees/#get-a-tree-recursively
Issues
currentUserIssuesR :: IssueMod -> FetchCount -> Request RA (Vector Issue) Source #
organizationIssuesR :: Name Organization -> IssueMod -> FetchCount -> Request k (Vector Issue) Source #
issueR :: Name Owner -> Name Repo -> Id Issue -> Request k Issue Source #
Query a single issue. See https://developer.github.com/v3/issues/#get-a-single-issue
issuesForRepoR :: Name Owner -> Name Repo -> IssueRepoMod -> FetchCount -> Request k (Vector Issue) Source #
List issues for a repository. See https://developer.github.com/v3/issues/#list-issues-for-a-repository
createIssueR :: Name Owner -> Name Repo -> NewIssue -> Request RW Issue Source #
Create an issue. See https://developer.github.com/v3/issues/#create-an-issue
editIssueR :: Name Owner -> Name Repo -> Id Issue -> EditIssue -> Request RW Issue Source #
Edit an issue. See https://developer.github.com/v3/issues/#edit-an-issue
Comments
commentR :: Name Owner -> Name Repo -> Id Comment -> Request k IssueComment Source #
Query a single comment. See https://developer.github.com/v3/issues/comments/#get-a-single-comment
commentsR :: Name Owner -> Name Repo -> IssueNumber -> FetchCount -> Request k (Vector IssueComment) Source #
List comments on an issue. See https://developer.github.com/v3/issues/comments/#list-comments-on-an-issue
createCommentR :: Name Owner -> Name Repo -> IssueNumber -> Text -> Request RW Comment Source #
Create a comment. See https://developer.github.com/v3/issues/comments/#create-a-comment
deleteCommentR :: Name Owner -> Name Repo -> Id Comment -> GenRequest MtUnit RW () Source #
Delete a comment. See https://developer.github.com/v3/issues/comments/#delete-a-comment
editCommentR :: Name Owner -> Name Repo -> Id Comment -> Text -> Request RW Comment Source #
Edit a comment. See https://developer.github.com/v3/issues/comments/#edit-a-comment
Events
eventsForIssueR :: Name Owner -> Name Repo -> Id Issue -> FetchCount -> Request k (Vector IssueEvent) Source #
List events for an issue. See https://developer.github.com/v3/issues/events/#list-events-for-an-issue
eventsForRepoR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector IssueEvent) Source #
List events for a repository. See https://developer.github.com/v3/issues/events/#list-events-for-a-repository
eventR :: Name Owner -> Name Repo -> Id IssueEvent -> Request k IssueEvent Source #
Query a single event. See https://developer.github.com/v3/issues/events/#get-a-single-event
Labels
labelsOnRepoR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector IssueLabel) Source #
List all labels for this repository. See https://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository
labelR :: Name Owner -> Name Repo -> Name IssueLabel -> Request k IssueLabel Source #
Query a single label. See https://developer.github.com/v3/issues/labels/#get-a-single-label
createLabelR :: Name Owner -> Name Repo -> Name IssueLabel -> String -> Request RW IssueLabel Source #
Create a label. See https://developer.github.com/v3/issues/labels/#create-a-label
Arguments
| :: Name Owner | |
| -> Name Repo | |
| -> Name IssueLabel | old label name |
| -> Name IssueLabel | new label name |
| -> String | new color |
| -> Request RW IssueLabel |
Update a label. See https://developer.github.com/v3/issues/labels/#update-a-label
deleteLabelR :: Name Owner -> Name Repo -> Name IssueLabel -> GenRequest MtUnit RW () Source #
Delete a label. See https://developer.github.com/v3/issues/labels/#delete-a-label
labelsOnIssueR :: Name Owner -> Name Repo -> Id Issue -> FetchCount -> Request k (Vector IssueLabel) Source #
List labels on an issue. See https://developer.github.com/v3/issues/labels/#list-labels-on-an-issue
addLabelsToIssueR :: Foldable f => Name Owner -> Name Repo -> Id Issue -> f (Name IssueLabel) -> Request RW (Vector IssueLabel) Source #
Add lables to an issue. See https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue
removeLabelFromIssueR :: Name Owner -> Name Repo -> Id Issue -> Name IssueLabel -> GenRequest MtUnit RW () Source #
Remove a label from an issue. See https://developer.github.com/v3/issues/labels/#remove-a-label-from-an-issue
replaceAllLabelsForIssueR :: Foldable f => Name Owner -> Name Repo -> Id Issue -> f (Name IssueLabel) -> Request RW (Vector IssueLabel) Source #
Replace all labels on an issue. See https://developer.github.com/v3/issues/labels/#replace-all-labels-for-an-issue
Sending an empty list will remove all labels from the issue.
removeAllLabelsFromIssueR :: Name Owner -> Name Repo -> Id Issue -> GenRequest MtUnit RW () Source #
Remove all labels from an issue. See https://developer.github.com/v3/issues/labels/#remove-all-labels-from-an-issue
labelsOnMilestoneR :: Name Owner -> Name Repo -> Id Milestone -> FetchCount -> Request k (Vector IssueLabel) Source #
Query labels for every issue in a milestone. See https://developer.github.com/v3/issues/labels/#get-labels-for-every-issue-in-a-milestone
Milestone
milestonesR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Milestone) Source #
List milestones for a repository. See https://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository
milestoneR :: Name Owner -> Name Repo -> Id Milestone -> Request k Milestone Source #
Query a single milestone. See https://developer.github.com/v3/issues/milestones/#get-a-single-milestone
createMilestone :: Auth -> Name Owner -> Name Repo -> NewMilestone -> IO (Either Error Milestone) Source #
createMilestoneR :: Name Owner -> Name Repo -> NewMilestone -> Request RW Milestone Source #
Create a milestone. See https://developer.github.com/v3/issues/milestones/#create-a-milestone
updateMilestone :: Auth -> Name Owner -> Name Repo -> Id Milestone -> UpdateMilestone -> IO (Either Error Milestone) Source #
updateMilestoneR :: Name Owner -> Name Repo -> Id Milestone -> UpdateMilestone -> Request RW Milestone Source #
Update a milestone. See https://developer.github.com/v3/issues/milestones/#update-a-milestone
deleteMilestoneR :: Name Owner -> Name Repo -> Id Milestone -> GenRequest MtUnit RW () Source #
Delete a milestone. See https://developer.github.com/v3/issues/milestones/#delete-a-milestone
Organizations
See https://developer.github.com/v3/orgs/
Missing endpoints:
- List your organizations
- List all organizations
- Edit an organization
publicOrganizationsForR :: Name User -> FetchCount -> Request k (Vector SimpleOrganization) Source #
List public user organizations. See https://developer.github.com/v3/orgs/#list-user-organizations
publicOrganizationR :: Name Organization -> Request k Organization Source #
Query an organization. See https://developer.github.com/v3/orgs/#get-an-organization
organizationsR :: FetchCount -> Request k (Vector SimpleOrganization) Source #
List all user organizations. See https://developer.github.com/v3/orgs/#list-your-organizations
Members
See https://developer.github.com/v3/orgs/members/
Missing endpoints: All except Members List and Check Membership
membersOfR :: Name Organization -> FetchCount -> Request k (Vector SimpleUser) Source #
All the users who are members of the specified organization.
See https://developer.github.com/v3/orgs/members/#members-list
membersOfWithR :: Name Organization -> OrgMemberFilter -> OrgMemberRole -> FetchCount -> Request k (Vector SimpleUser) Source #
membersOfR with filters.
See https://developer.github.com/v3/orgs/members/#members-list
isMemberOfR :: Name User -> Name Organization -> GenRequest MtStatus rw Bool Source #
Check if a user is a member of an organization.
See https://developer.github.com/v3/orgs/members/#check-membership
orgInvitationsR :: Name Organization -> FetchCount -> Request RA (Vector Invitation) Source #
List pending organization invitations
See https://developer.github.com/v3/orgs/members/#list-pending-organization-invitations
Teams
See https://developer.github.com/v3/orgs/teams/
Missing endpoints:
- Query team member (deprecated)
- Add team member (deprecated)
- Remove team member (deprecated)
- Check if a team manages a repository
- Add team repository
- Remove team repository
teamsOfR :: Name Organization -> FetchCount -> Request k (Vector SimpleTeam) Source #
List teams. See https://developer.github.com/v3/orgs/teams/#list-teams
teamInfoForR :: Id Team -> Request k Team Source #
Query team. See https://developer.github.com/v3/orgs/teams/#get-team
createTeamForR :: Name Organization -> CreateTeam -> Request RW Team Source #
Create team. See https://developer.github.com/v3/orgs/teams/#create-team
editTeamR :: Id Team -> EditTeam -> Request RW Team Source #
Edit team. See https://developer.github.com/v3/orgs/teams/#edit-team
deleteTeamR :: Id Team -> GenRequest MtUnit RW () Source #
Delete team.
listTeamMembersR :: Id Team -> TeamMemberRole -> FetchCount -> Request RA (Vector SimpleUser) Source #
List team members.
See https://developer.github.com/v3/orgs/teams/#list-team-members
listTeamReposR :: Id Team -> FetchCount -> Request k (Vector Repo) Source #
Query team repositories. See https://developer.github.com/v3/orgs/teams/#list-team-repos
teamMembershipInfoForR :: Id Team -> Name Owner -> Request k TeamMembership Source #
Query team membership. See <https://developer.github.com/v3/orgs/teams/#get-team-membership
addTeamMembershipForR :: Id Team -> Name Owner -> Role -> Request RW TeamMembership Source #
Add team membership. See https://developer.github.com/v3/orgs/teams/#add-team-membership
deleteTeamMembershipForR :: Id Team -> Name Owner -> GenRequest MtUnit RW () Source #
Remove team membership. See https://developer.github.com/v3/orgs/teams/#remove-team-membership
listTeamsCurrentR :: FetchCount -> Request RA (Vector Team) Source #
List user teams. See https://developer.github.com/v3/orgs/teams/#list-user-teams
Pull Requests
pullRequestsForR :: Name Owner -> Name Repo -> PullRequestMod -> FetchCount -> Request k (Vector SimplePullRequest) Source #
List pull requests. See https://developer.github.com/v3/pulls/#list-pull-requests
pullRequestR :: Name Owner -> Name Repo -> IssueNumber -> Request k PullRequest Source #
Query a single pull request. See https://developer.github.com/v3/pulls/#get-a-single-pull-request
pullRequestPatchR :: Name Owner -> Name Repo -> IssueNumber -> GenRequest MtPatch rw ByteString Source #
Query a single pull request to obtain the patch See https://developer.github.com/v3/pulls/#get-a-single-pull-request
pullRequestDiffR :: Name Owner -> Name Repo -> IssueNumber -> GenRequest MtDiff rw ByteString Source #
Query a single pull request to obtain the diff See https://developer.github.com/v3/pulls/#get-a-single-pull-request
createPullRequestR :: Name Owner -> Name Repo -> CreatePullRequest -> Request RW PullRequest Source #
Create a pull request. See https://developer.github.com/v3/pulls/#create-a-pull-request
updatePullRequestR :: Name Owner -> Name Repo -> IssueNumber -> EditPullRequest -> Request RW PullRequest Source #
Update a pull request. See https://developer.github.com/v3/pulls/#update-a-pull-request
pullRequestCommitsR :: Name Owner -> Name Repo -> IssueNumber -> FetchCount -> Request k (Vector Commit) Source #
List commits on a pull request. See https://developer.github.com/v3/pulls/#list-commits-on-a-pull-request
pullRequestFilesR :: Name Owner -> Name Repo -> IssueNumber -> FetchCount -> Request k (Vector File) Source #
List pull requests files. See https://developer.github.com/v3/pulls/#list-pull-requests-files
isPullRequestMergedR :: Name Owner -> Name Repo -> IssueNumber -> GenRequest MtStatus rw Bool Source #
Query if a pull request has been merged. See https://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged
mergePullRequestR :: Name Owner -> Name Repo -> IssueNumber -> Maybe Text -> GenRequest MtStatus RW MergeResult Source #
Merge a pull request (Merge Button). https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button
Review comments
See https://developer.github.com/v3/pulls/comments/
Missing endpoints:
- List comments in a repository
- Edit a comment
- Delete a comment
pullRequestCommentsR :: Name Owner -> Name Repo -> IssueNumber -> FetchCount -> Request k (Vector Comment) Source #
List comments on a pull request. See https://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request
pullRequestCommentR :: Name Owner -> Name Repo -> Id Comment -> Request k Comment Source #
Query a single comment. See https://developer.github.com/v3/pulls/comments/#get-a-single-comment
createPullCommentR :: Name Owner -> Name Repo -> IssueNumber -> Text -> Text -> Int -> Text -> Request RW Comment Source #
Create a comment.
See https://developer.github.com/v3/pulls/comments/#create-a-comment
Pull request reviews
See https://developer.github.com/v3/pulls/reviews/
Missing endpoints:
- Delete a pending review
- Create a pull request review
- Submit a pull request review
- Dismiss a pull request review
pullRequestReviewsR :: Name Owner -> Name Repo -> Id PullRequest -> FetchCount -> Request k (Vector Review) Source #
List reviews for a pull request. See https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request
pullRequestReviews :: Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector Review)) Source #
All reviews for a pull request given the repo owner, repo name and the pull request id.
pullRequestReviews "thoughtbot" "paperclip" (Id 101)
pullRequestReviews' :: Maybe Auth -> Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector Review)) Source #
All reviews for a pull request given the repo owner, repo name and the pull request id. With authentication.
pullRequestReviews' (Just $ BasicAuth "github-username" "github-password") "thoughtbot" "paperclip" (Id 101)
pullRequestReviewR :: Name Owner -> Name Repo -> Id PullRequest -> Id Review -> Request k Review Source #
Query a single pull request review. see https://developer.github.com/v3/pulls/reviews/#get-a-single-review
pullRequestReview :: Name Owner -> Name Repo -> Id PullRequest -> Id Review -> IO (Either Error Review) Source #
A detailed review on a pull request given the repo owner, repo name, pull request id and review id.
pullRequestReview "thoughtbot" "factory_girl" (Id 301819) (Id 332)
pullRequestReview' :: Maybe Auth -> Name Owner -> Name Repo -> Id PullRequest -> Id Review -> IO (Either Error Review) Source #
A detailed review on a pull request given the repo owner, repo name, pull request id and review id. With authentication.
pullRequestReview' (Just $ BasicAuth "github-username" "github-password") "thoughtbot" "factory_girl" (Id 301819) (Id 332)
pullRequestReviewCommentsR :: Name Owner -> Name Repo -> Id PullRequest -> Id Review -> Request k [ReviewComment] Source #
Query the comments for a single pull request review. see https://developer.github.com/v3/pulls/reviews/#get-comments-for-a-single-review
pullRequestReviewCommentsIO :: Name Owner -> Name Repo -> Id PullRequest -> Id Review -> IO (Either Error [ReviewComment]) Source #
All comments for a review on a pull request given the repo owner, repo name, pull request id and review id.
pullRequestReviewComments "thoughtbot" "factory_girl" (Id 301819) (Id 332)
pullRequestReviewCommentsIO' :: Maybe Auth -> Name Owner -> Name Repo -> Id PullRequest -> Id Review -> IO (Either Error [ReviewComment]) Source #
All comments for a review on a pull request given the repo owner, repo name, pull request id and review id. With authentication.
pullRequestReviewComments' (Just $ BasicAuth "github-username" "github-password") "thoughtbot" "factory_girl" (Id 301819) (Id 332)
Repositories
See https://developer.github.com/v3/repos/
Missing endpoints:
- List all public repositories
- List Teams
- Query Branch
- Enabling and disabling branch protection
currentUserReposR :: RepoPublicity -> FetchCount -> Request k (Vector Repo) Source #
List your repositories. See https://developer.github.com/v3/repos/#list-your-repositories
userReposR :: Name Owner -> RepoPublicity -> FetchCount -> Request k (Vector Repo) Source #
List user repositories. See https://developer.github.com/v3/repos/#list-user-repositories
organizationReposR :: Name Organization -> RepoPublicity -> FetchCount -> Request k (Vector Repo) Source #
List organization repositories. See https://developer.github.com/v3/repos/#list-organization-repositories
repositoryR :: Name Owner -> Name Repo -> Request k Repo Source #
Query single repository. See https://developer.github.com/v3/repos/#get
Arguments
| :: Name Owner | |
| -> Name Repo | |
| -> Bool | Include anonymous |
| -> FetchCount | |
| -> Request k (Vector Contributor) |
List contributors. See https://developer.github.com/v3/repos/#list-contributors
languagesForR :: Name Owner -> Name Repo -> Request k Languages Source #
List languages. See https://developer.github.com/v3/repos/#list-languages
tagsForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Tag) Source #
List tags. See https://developer.github.com/v3/repos/#list-tags
branchesForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Branch) Source #
List branches. See https://developer.github.com/v3/repos/#list-branches
Collaborators
collaboratorsOnR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector SimpleUser) Source #
List collaborators. See https://developer.github.com/v3/repos/collaborators/#list-collaborators
Arguments
| :: Name Owner | Repository owner |
| -> Name Repo | Repository name |
| -> Name User | Collaborator? |
| -> GenRequest MtStatus rw Bool |
Check if a user is a collaborator. See https://developer.github.com/v3/repos/collaborators/#check-if-a-user-is-a-collaborator
Arguments
| :: Name Owner | Repository owner |
| -> Name Repo | Repository name |
| -> Name User | Collaborator to add |
| -> GenRequest MtJSON RW (Maybe RepoInvitation) |
Invite a user as a collaborator. See https://developer.github.com/v3/repos/collaborators/#add-user-as-a-collaborator
Comments
See https://developer.github.com/v3/repos/comments/
Missing endpoints:
- Create a commit comment
- Update a commit comment
- Delete a commit comment
commentsForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Comment) Source #
List commit comments for a repository. See https://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository
commitCommentsForR :: Name Owner -> Name Repo -> Name Commit -> FetchCount -> Request k (Vector Comment) Source #
List comments for a single commit. See https://developer.github.com/v3/repos/comments/#list-comments-for-a-single-commit
commitCommentForR :: Name Owner -> Name Repo -> Id Comment -> Request k Comment Source #
Query a single commit comment. See https://developer.github.com/v3/repos/comments/#get-a-single-commit-comment
Commits
commitsForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Commit) Source #
List commits on a repository. See https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository
commitsWithOptionsForR :: Name Owner -> Name Repo -> FetchCount -> [CommitQueryOption] -> Request k (Vector Commit) Source #
List commits on a repository. See https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository
commitR :: Name Owner -> Name Repo -> Name Commit -> Request k Commit Source #
Query a single commit. See https://developer.github.com/v3/repos/commits/#get-a-single-commit
diffR :: Name Owner -> Name Repo -> Name Commit -> Name Commit -> Request k Diff Source #
Compare two commits. See https://developer.github.com/v3/repos/commits/#compare-two-commits
Deployments
See https://developer.github.com/v3/repos/deployments/#deployments
Missing endpoints: * Get a single deployment * Update a deployment * Get a single deployment status
deploymentsWithOptionsForR :: FromJSON a => Name Owner -> Name Repo -> FetchCount -> [DeploymentQueryOption] -> Request RA (Vector (Deployment a)) Source #
List deployments. See https://developer.github.com/v3/repos/deployments/#list-deployments
createDeploymentR :: (ToJSON a, FromJSON a) => Name Owner -> Name Repo -> CreateDeployment a -> Request RW (Deployment a) Source #
Create a deployment. See https://developer.github.com/v3/repos/deployments/#create-a-deployment
deploymentStatusesForR :: Name Owner -> Name Repo -> Id (Deployment a) -> FetchCount -> Request RA (Vector DeploymentStatus) Source #
List deployment statuses. See https://developer.github.com/v3/repos/deployments/#list-deployment-statuses
createDeploymentStatusR :: Name Owner -> Name Repo -> Id (Deployment a) -> CreateDeploymentStatus -> Request RW DeploymentStatus Source #
Create a deployment status. See https://developer.github.com/v3/repos/deployments/#list-deployment-statuses
Forks
forksForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Repo) Source #
List forks. See https://developer.github.com/v3/repos/forks/#list-forks
Webhooks
webhooksForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector RepoWebhook) Source #
List hooks. See https://developer.github.com/v3/repos/hooks/#list-hooks
webhookForR :: Name Owner -> Name Repo -> Id RepoWebhook -> Request k RepoWebhook Source #
Query single hook. See https://developer.github.com/v3/repos/hooks/#get-single-hook
createRepoWebhookR :: Name Owner -> Name Repo -> NewRepoWebhook -> Request RW RepoWebhook Source #
Create a hook. See https://developer.github.com/v3/repos/hooks/#create-a-hook
editRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> EditRepoWebhook -> Request RW RepoWebhook Source #
Edit a hook. See https://developer.github.com/v3/repos/hooks/#edit-a-hook
testPushRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> GenRequest MtStatus RW Bool Source #
Test a push hook. See https://developer.github.com/v3/repos/hooks/#test-a-push-hook
pingRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> GenRequest MtStatus RW Bool Source #
Ping a hook. See https://developer.github.com/v3/repos/hooks/#ping-a-hook
deleteRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> GenRequest MtUnit RW () Source #
Delete a hook. See https://developer.github.com/v3/repos/hooks/#delete-a-hook
Releases
releasesR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Release) Source #
List releases for a repository. See https://developer.github.com/v3/repos/releases/#list-releases-for-a-repository
releaseR :: Name Owner -> Name Repo -> Id Release -> Request k Release Source #
Get a single release. See https://developer.github.com/v3/repos/releases/#get-a-single-release
latestReleaseR :: Name Owner -> Name Repo -> Request k Release Source #
Get the latest release. See https://developer.github.com/v3/repos/releases/#get-the-latest-release
releaseByTagNameR :: Name Owner -> Name Repo -> Text -> Request k Release Source #
Get a release by tag name See https://developer.github.com/v3/repos/releases/#get-a-release-by-tag-name
Invitations
See https://developer.github.com/v3/repos/invitations/ Missing endpoints:
Delete a repository invitation
Update a repository invitation
Decline a repository invitation
listInvitationsOnR :: Name Owner -> Name Repo -> FetchCount -> GenRequest MtJSON k (Vector RepoInvitation) Source #
List open invitations of a repository See https://developer.github.com/v3/repos/invitations/#list-invitations-for-a-repository
acceptInvitationFromR :: Id RepoInvitation -> GenRequest MtUnit RW () Source #
Accept a repository invitation See https://developer.github.com/v3/repos/invitations/#accept-a-repository-invitation
listInvitationsForR :: FetchCount -> Request k (Vector RepoInvitation) Source #
List a user's repository invitations See https://developer.github.com/v3/repos/invitations/#list-a-users-repository-invitations
Search
searchReposR :: Text -> Request k (SearchResult Repo) Source #
Search repositories. See https://developer.github.com/v3/search/#search-repositories
searchCodeR :: Text -> Request k (SearchResult Code) Source #
Search code. See https://developer.github.com/v3/search/#search-code
searchIssuesR :: Text -> Request k (SearchResult Issue) Source #
Search issues. See https://developer.github.com/v3/search/#search-issues
Users
See https://developer.github.com/v3/users/
Missing endpoints:
- Update the authenticated user
- Query all users
userInfoForR :: Name User -> Request k User Source #
Query a single user. See https://developer.github.com/v3/users/#get-a-single-user
ownerInfoForR :: Name Owner -> Request k Owner Source #
Query a single user or an organization. See https://developer.github.com/v3/users/#get-a-single-user
userInfoCurrentR :: Request RA User Source #
Query the authenticated user. See https://developer.github.com/v3/users/#get-the-authenticated-user
Emails
See https://developer.github.com/v3/users/emails/
Missing endpoints:
- Add email address(es)
- Delete email address(es)
- Toggle primary email visibility
currentUserEmailsR :: FetchCount -> Request RA (Vector Email) Source #
List email addresses. See https://developer.github.com/v3/users/emails/#list-email-addresses-for-a-user
currentUserPublicEmailsR :: FetchCount -> Request RA (Vector Email) Source #
List public email addresses. See https://developer.github.com/v3/users/emails/#list-public-email-addresses-for-a-user
Followers
See https://developer.github.com/v3/users/followers/
Missing endpoints:
- Check if you are following a user
- Check if one user follows another
- Follow a user
- Unfollow a user
usersFollowingR :: Name User -> FetchCount -> Request k (Vector SimpleUser) Source #
List followers of a user. See https://developer.github.com/v3/users/followers/#list-followers-of-a-user
usersFollowedByR :: Name User -> FetchCount -> Request k (Vector SimpleUser) Source #
List users followed by another user. See https://developer.github.com/v3/users/followers/#list-users-followed-by-another-user
Statuses
createStatusR :: Name Owner -> Name Repo -> Name Commit -> NewStatus -> Request RW Status Source #
Create a new status See https://developer.github.com/v3/repos/statuses/#create-a-status
statusesForR :: Name Owner -> Name Repo -> Name Commit -> FetchCount -> Request RW (Vector Status) Source #
All statuses for a commit See https://developer.github.com/v3/repos/statuses/#list-statuses-for-a-specific-ref
statusForR :: Name Owner -> Name Repo -> Name Commit -> Request RW CombinedStatus Source #
The combined status for a specific commit See https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref
Rate Limit
rateLimitR :: Request k RateLimit Source #
Get your current rate limit status. https://developer.github.com/v3/rate_limit/#get-your-current-rate-limit-status
Data definitions
module GitHub.Data
Request handling
module GitHub.Request