github-types-0.2.0: Type definitions for objects used by the GitHub v3 API

Safe HaskellNone
LanguageHaskell2010

GitHub.Types.Events

Synopsis

Documentation

data Event Source

All events which can be produced by GitHub.

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

data Actor Source

Constructors

Actor 

Fields

actorId :: !Integer
 
actorLogin :: !Text
 

data Repo Source

Constructors

Repo 

Fields

repoId :: !Integer
 
repoName :: !Text
 

Instances

webhookPayloadParser :: Text -> Value -> Parser Payload Source

Since the event type is included through different means (X-GitHub-Event header, or inline in the JSON object), it's not possible to make Event an instance of FromJSON. But if you know the type, you can use this parser.

data DeploymentEvent Source

Constructors

DeploymentEvent 

Fields

deploymentEventDeployment :: Deployment

The deployment.

deploymentEventRepository :: Repository

The repository for which the deployment was created (UNDOCUMENTED).

data DeploymentStatusEvent Source

Constructors

DeploymentStatusEvent 

Fields

deploymentStatusEventDeploymentStatus :: DeploymentStatus

The deployment status.

deploymentStatusEventDeployment :: Deployment

The deployment which the status affects.

deploymentStatusEventRepository :: Repository

The repository for which the deployment was created (UNDOCUMENTED).