bitbucket-webhooks

0.0.7 • Public • Published

bitbucket-webhooks

Type definitions for Bitbucket webhook events

CI Status

Usage

Since Bitbucket Server and Bitbucket Cloud have different webook formats, you need to import the type definitions from the appropriate place; either:

import { server } from 'bitbucket-webhooks';
let pr: server.PullRequest;
// or
import { PullRequest } from 'bitbucket-webhooks/server';
let pr: PullRequest;

Note that there are no definitions for the Bitbucket Cloud webhooks yet

There are also builder functions for the various types:

import { PullRequest } from 'bitbucket-webhooks/server';
import { pullRequest } from 'bitbucket-webhooks/builders/server';

const pr: PullRequest = pullRequest({
  description: 'A super-cool pull request',
});

Legal

Bitbucket is a trademark of Atlassian, with which this library is not associated.

Readme

Keywords

Package Sidebar

Install

npm i bitbucket-webhooks

Weekly Downloads

1,970

Version

0.0.7

License

MIT

Unpacked Size

80.2 kB

Total Files

20

Last publish

Collaborators

  • alanraison