2.10.7

Linear

Linear webhooks for Flyte.

Hand a LinearProvider() to a WebhookAppEnvironment and register handlers with the typed constants in events. Calling the Linear API is not this plugin’s job — Linear’s API is a single GraphQL endpoint, so use gql from your tasks. See examples/external_saas_integrations.

Directory

Classes

Class Description
LinearProvider Linear’s webhook provider, with its defaults pre-wired.

Methods

Method Description
parse() Normalize a Linear delivery into a WebhookEvent.
verify() Verify the Linear-Signature HMAC over the raw body.

Variables

Property Type Description
SAMPLE_DELIVERY tuple

Methods

parse()

def parse(
    headers: Mapping[str, str],
    body: bytes,
) -> WebhookEvent

Normalize a Linear delivery into a WebhookEvent.

Parameter Type Description
headers Mapping[str, str]
body bytes

verify()

def verify(
    body: bytes,
    headers: Mapping[str, str],
    secret: str,
) -> bool

Verify the Linear-Signature HMAC over the raw body.

Parameter Type Description
body bytes
headers Mapping[str, str]
secret str