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

Safe HaskellNone

GitHub.Types.Events

Synopsis

Documentation

data Event Source

All events which can be produced by GitHub.

See https:developer.github.comv3activityeventstypes/

Instances

Eq Event 
Show Event 

eventParser :: Text -> Value -> Parser EventSource

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).