0.3.1 • Published 3 years ago

linear-webhook v0.3.1

Weekly downloads
14
License
MIT
Repository
github
Last release
3 years ago

linear-webhook

Webhook handler for Linear.

npm version CI codecov

Getting started

Use the package manager npm to install linear-webhook.

Install linear-webhook

npm i linear-webhook

Example code

handlerExample.ts

import { WebhookHandler, CreateIssueWebhook } from "linear-webhook";

const handler = new WebhookHandler();
handler.addCallback<CreateIssueWebhook>("CreateIssueWebhook", (webhook) => {
  console.log("This event is CreateIssueWebhook.");
  console.log(`Action: ${webhook.action}, Type: ${webhook.type}`);
});

(async () => {
  await handler.execCallback(webhook);
})();

output

This event is CreateIssueWebhook.
Action: create, Type: Issue
0.3.1

3 years ago

0.3.0

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.2

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.1

3 years ago