Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sync-hooks

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sync-hooks

Function to install a batch of GitHub event hooks at once

  • 0.1.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

What is this thing?

This node module exposes a function for configuring event hooks in GitHub.

How do I use this!?

var syncHooks = require('sync-hooks')

syncHooks({

  // This URL will be pinged by GitHub when one of your configured events triggers
  url: 'http://my.build.server.com/'

  // This is a GitHub authentication object, for more information on its options
  // see https://github.com/ajaxorg/node-github#authentication
  auth: {
    type: 'oauth',
    token: '12356' // Generated from here: https://github.com/settings/applications
  },

  // A hash of repositories on the left, to arrays of events to listen to on
  // the right
  eventsHash: {
    'fullscreeninc/my-project': ['pull_request', 'issues', 'push'],
    '8bitDesigner/socks': ['issues'],
    'ryancbarry/isawesome': ['push']
  }
, function(err, hooks) {
  // Do something now that your awesome GitHub hooks are installed
})

FAQs

Package last updated on 27 Jan 2014

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc