Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 632 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 632 Bytes

Webhooks Plugin

Hapi webhooks plugin for the Screwdriver API

Usage

Register plugin

const Hapi = require('hapi');
const server = new Hapi.Server();
const webhooksPlugin = require('./');

server.connection({ port: 3000 });

server.register({
    register: Plugin,
    options: {}
}, () => {
    server.start((err) => {
        if (err) {
            throw err;
        }
        console.log('Server running at:', server.info.uri);
    });
});

Routes

Post webhooks events

Follow instructions from your SCM provider to set up webhooks for your repository or organization:

POST /webhooks