Socket
Socket
Sign inDemoInstall

githulk

Package Overview
Dependencies
Maintainers
5
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

githulk - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

endpoints/webhooks.js

25

endpoints/collaborators.js

@@ -40,2 +40,27 @@ 'use strict';

/**
* Add a collaborator to the owner/repo given
*
* @param {String} project
* @param {Object} Options with username/user.
* @returns {Assign}
* @api public
*/
Collaborators.prototype.add = function add(args) {
args = this.api.args(arguments);
args.options = this.options(args.options);
var user = args.options.username || args.options.user;
if (!user) return args.fn(new Error('User is a required options'));
var project = this.api(args.str);
return this.send(
['repos', project.user, project.repo, 'collaborators', user],
args.options,
args.fn
);
};
//

@@ -42,0 +67,0 @@ // Expose the Collaborators API.

8

package.json
{
"name": "githulk",
"version": "0.2.1",
"version": "0.3.0",
"description": "Small but powerful Github client",

@@ -20,3 +20,3 @@ "main": "index.js",

"dependencies": {
"diagnostics": "0.0.x",
"diagnostics": "1.0.x",
"extract-github": "0.0.x",

@@ -26,6 +26,6 @@ "mana": "0.1.x"

"devDependencies": {
"assume": "0.0.x",
"assume": "1.3.x",
"illuminati": "0.0.x",
"pre-commit": "0.0.x"
"pre-commit": "1.1.x"
}
}

@@ -39,2 +39,30 @@ 'use strict';

/**
* Example webhook fixture options used for testing
*/
exports.webhooks = {
web: {
repo: 'jcrugzz/webhook-test',
options: {
name: 'web',
config: {
url: 'http://my-jenkins-server/ghprbhook/'
},
events: ['pull_request', 'pull_request_review_comment', 'issue_comment'],
active: true
}
},
jenkins: {
repo: 'jcrugzz/webhook-test',
options: {
name: 'jenkins',
config: {
jenkins_hook_url: 'https://my-fun-times/github_webhook/'
},
events: ['push'],
active: true
}
}
};
/**
* A single comment id which we need to retrieve.

@@ -41,0 +69,0 @@ *

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