github-0.12: Access to the Github API, v3.

Safe HaskellSafe-Inferred
LanguageHaskell98

Github.Data.Definitions

Synopsis

Documentation

data Error Source

Errors have been tagged according to their source, so you can more easily dispatch and handle them.

Constructors

HTTPConnectionError SomeException

A HTTP error occurred. The actual caught error is included.

ParseError String

An error in the parser itself.

JsonError String

The JSON is malformed or unexpected.

UserError String

Incorrect input.

Instances

newtype GithubDate Source

A date in the Github format, which is a special case of ISO-8601.

Constructors

GithubDate 

data Tree Source

Constructors

Tree 

data EventType Source

Data describing an Event.

Constructors

Mentioned

The actor was @mentioned in an issue body.

Subscribed

The actor subscribed to receive notifications for an issue.

Unsubscribed

The issue was unsubscribed from by the actor.

Referenced

The issue was referenced from a commit message. The commit_id attribute is the commit SHA1 of where that happened.

Merged

The issue was merged by the actor. The commit_id attribute is the SHA1 of the HEAD commit that was merged.

Assigned

The issue was assigned to the actor.

Closed

The issue was closed by the actor. When the commit_id is present, it identifies the commit that closed the issue using “closes / fixes #NN” syntax.

Reopened

The issue was reopened by the actor.

ActorUnassigned

The issue was unassigned to the actor

Labeled

A label was added to the issue.

Unlabeled

A label was removed from the issue.

Milestoned

The issue was added to a milestone.

Demilestoned

The issue was removed from a milestone.

Renamed

The issue title was changed.

Locked

The issue was locked by the actor.

Unlocked

The issue was unlocked by the actor.

HeadRefDeleted

The pull request’s branch was deleted.

HeadRefRestored

The pull request’s branch was restored.

data Contributor Source

Constructors

KnownContributor Int String String String Int String

An existing Github user, with their number of contributions, avatar URL, login, URL, ID, and Gravatar ID.

AnonymousContributor Int String

An unknown Github user with their number of contributions and recorded name.

data Languages Source

This is only used for the FromJSON instance.

Constructors

Languages 

Fields

getLanguages :: [Language]
 

data Language Source

A programming language with the name and number of characters written in it.

Constructors

Language String Int