Giter Site home page Giter Site logo

linear-webhook's Introduction

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

linear-webhook's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar korosuke613 avatar renovate[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

linear-webhook's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps-dev): update dependency rimraf to v5.0.9
  • chore(deps): update actions/checkout action to v4
  • chore(deps): update actions/github-script action to v7
  • chore(deps): update actions/setup-node action to v4
  • chore(deps): update dependency node to v20.15.1
  • chore(deps-dev): update dependency npm-run-all2 to v6
  • chore(deps-dev): update dependency rimraf to v6
  • chore(deps-dev): update vitest monorepo to v2 (major) (@vitest/coverage-v8, vitest)

Pending Status Checks

These updates await pending status checks. To force their creation now, click the checkbox below.

  • chore(deps-dev): update dependency @types/node to v20.14.11

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

asdf
.tool-versions
  • node 20.12.2
github-actions
.github/workflows/ci.yml
  • actions/checkout v4
  • tj-actions/changed-files v44.5.2@d6babd6899969df1a11d14c368283ea4436bca78
  • actions/checkout v4
  • actions/setup-node v4
  • actions/checkout v4
  • actions/setup-node v4
  • codecov/codecov-action v4.4.1@125fc84a9a348dbcf27191600683ec096ec9021c
  • actions/checkout v4
  • actions/setup-node v4
  • actions/checkout v4
.github/workflows/shipjs-manual-prepare.yml
  • actions/checkout v2
  • actions/setup-node v1
  • actions/cache v2
  • actions/github-script v3
  • actions/github-script v3
.github/workflows/shipjs-trigger.yml
  • actions/checkout v2
  • actions/setup-node v1
  • actions/cache v2
nodenv
.node-version
  • node 14.21.3
npm
package.json
  • @biomejs/biome 1.8.3
  • @types/node 20.14.10
  • @vitest/coverage-v8 1.6.0
  • npm-run-all2 5.0.2
  • rimraf 5.0.8
  • shipjs 0.26.3
  • ts-node 10.9.2
  • typescript 5.5.3
  • vitest 1.6.0
  • node >=20.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.