github-0.18: Access to the GitHub API, v3.

LicenseBSD-3-Clause
MaintainerOleg Grenrus <oleg.grenrus@iki.fi>
Safe HaskellNone
LanguageHaskell2010

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.Users) for already composed versions.

The missing endpoints lists show which endpoints we know are missing, there might be more.

Synopsis

Activity

Events

Starring

See https://developer.github.com/v3/activity/starring/

Missing endpoints:

  • Check if you are starring a repository

Watching

See https://developer.github.com/v3/activity/

Missing endpoints:

  • Query a Repository Subscription
  • Set a Repository Subscription
  • Delete a Repository Subscription

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

starGistR :: Name Gist -> Request RW () Source #

Star a gist by the authenticated user. See https://developer.github.com/v3/gists/#star-a-gist

unstarGistR :: Name Gist -> Request RW () Source #

Unstar a gist by the authenticated user. See https://developer.github.com/v3/gists/#unstar-a-gist

deleteGistR :: Name Gist -> Request 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

Git Data

Blobs

Commits

References

Trees

Issues

Comments

Events

Labels

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.

Milestone

See https://developer.github.com/v3/issues/milestones/

Missing endpoints:

  • Create a milestone
  • Update a milestone
  • Delete a milestone

Organizations

See https://developer.github.com/v3/orgs/

Missing endpoints:

  • List your organizations
  • List all organizations
  • Edit an organization

Members

See https://developer.github.com/v3/orgs/members/

Missing endpoints: All except Members List

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

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

Pull Requests

Review comments

See https://developer.github.com/v3/pulls/comments/

Missing endpoints:

  • List comments in a repository
  • Create a comment
  • Edit a comment
  • Delete 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

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 ("github-username", "github-password")) "thoughtbot" "paperclip" (Id 101)

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 ("github-username", "github-password"))

"thoughtbot" "factory_girl" (Id 301819) (Id 332)

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 ("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

Collaborators

isCollaboratorOnR Source #

Arguments

:: Name Owner

Repository owner

-> Name Repo

Repository name

-> Name User

Collaborator?

-> Request k Bool 

Comments

See https://developer.github.com/v3/repos/comments/

Missing endpoints:

  • Create a commit comment
  • Update a commit comment
  • Delete a commit comment

Commits

Forks

See https://developer.github.com/v3/repos/forks/

Missing endpoints:

  • Create a fork

Webhooks

Releases

Search

See https://developer.github.com/v3/search/

Missing endpoints:

  • Search users

Users

See https://developer.github.com/v3/users/

Missing endpoints:

  • Update the authenticated user
  • Query all users

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

Statuses

Data definitions

Request handling