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

Safe HaskellNone
LanguageHaskell2010

GitHub.Types.Events

Synopsis

Documentation

eventParser :: Text -> Value -> Parser Event 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).