Socket
Socket
Sign inDemoInstall

egg-gitlab-webhook

Package Overview
Dependencies
35
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    egg-gitlab-webhook

🥚Egg plugin for processing gitlab Webhooks.


Version published
Maintainers
1
Install size
13.4 MB
Created

Readme

Source

🥚Egg plugin for processing gitlab Webhooks.

Installation

npm install egg-gitlab-webhook
yarn add egg-gitlab-webhook

Usage

// plugin.js
gitlabWebhook: {
  enable: true,
  package: 'egg-gitlab-webhook',
}
// config.default.js
gitlabWebhook: {
  path: '/',
  secret: '', // gitlab 秘钥
  event: {
    // push: './scripts/webhook.js',
    push: () => {
    },
    push: function (event) {
    },
  }
}

Example

event: {
  push: (event) => {
    if (event.payload) {
      console.log(event.payload);
    }
  };
}

FAQs

Last updated on 26 Nov 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡ by Socket Inc