exo-use-github-webhook
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

exo-use-github-webhook

Exobase hook that will verify, validate, and parse incoming webhook request from GitHub

Install

yarn add exo-use-github-webhook

Usage

import _ from 'radash'
import { useGithubWebhook, GithubWebhookArgs } from 'exo-use-github-webhook'
import type { Props } from '@exobase/core'

async function handleGithubEvent({ args }: Props<GithubWebhookArgs>) {
  console.log('event: ', args.event)
  console.log('action: ', args.action)
  console.log('payload: ', JSON.stringify(args.payload))
}

export default _.compose(
  useLambda(),
  useGithubWebhook(''),
  handleGithubEvent
)

Readme

Keywords

none

Package Sidebar

Install

npm i exo-use-github-webhook

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

9.68 kB

Total Files

5

Last publish

Collaborators

  • rayepps