2.10.7
Jira
Jira webhooks for Flyte.
Hand a JiraProvider() to a WebhookAppEnvironment and register handlers with the
typed constants in events. Calling the Jira API is not this plugin’s job — use
the jira package from your tasks. See examples/external_saas_integrations.
Note Jira does not sign its webhooks; see _provider for what this plugin does
instead.
Directory
Classes
| Class | Description |
|---|---|
JiraProvider |
Jira’s webhook provider, with its defaults pre-wired. |
Methods
| Method | Description |
|---|---|
parse() |
Normalize a Jira delivery into a WebhookEvent. |
verify() |
Compare the X-Webhook-Token header against the shared token. |
Variables
| Property | Type | Description |
|---|---|---|
SAMPLE_DELIVERY |
tuple |
Methods
parse()
def parse(
headers: Mapping[str, str],
body: bytes,
) -> WebhookEventNormalize a Jira delivery into a WebhookEvent.
| Parameter | Type | Description |
|---|---|---|
headers |
Mapping[str, str] |
|
body |
bytes |
verify()
def verify(
body: bytes,
headers: Mapping[str, str],
secret: str,
) -> boolCompare the X-Webhook-Token header against the shared token.
| Parameter | Type | Description |
|---|---|---|
body |
bytes |
|
headers |
Mapping[str, str] |
|
secret |
str |