https://github.com/korosuke613/linear-webhook
Webhook handler for Linear.app
https://github.com/korosuke613/linear-webhook
linear-app npm-package
Last synced: 4 months ago
JSON representation
Webhook handler for Linear.app
- Host: GitHub
- URL: https://github.com/korosuke613/linear-webhook
- Owner: korosuke613
- License: mit
- Created: 2021-01-31T05:42:31.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2026-03-01T04:39:09.000Z (4 months ago)
- Last Synced: 2026-03-01T07:32:05.638Z (4 months ago)
- Topics: linear-app, npm-package
- Language: TypeScript
- Homepage:
- Size: 445 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# linear-webhook
Webhook handler for Linear.
[](https://badge.fury.io/js/linear-webhook)  [](https://codecov.io/gh/korosuke613/linear-webhook)
## Getting started
Use the package manager [npm](https://docs.npmjs.com/about-npm/) to install linear-webhook.
### Install linear-webhook
```bash
npm i linear-webhook
```
### Example code
[handlerExample.ts](./src/__tests__/examples/handlerExample.ts)
```ts
import { WebhookHandler, CreateIssueWebhook } from "linear-webhook";
const handler = new WebhookHandler();
handler.addCallback("CreateIssueWebhook", (webhook) => {
console.log("This event is CreateIssueWebhook.");
console.log(`Action: ${webhook.action}, Type: ${webhook.type}`);
});
(async () => {
await handler.execCallback(webhook);
})();
```
output
```planetext
This event is CreateIssueWebhook.
Action: create, Type: Issue
```