Comparing version 0.2.1 to 0.3.0
@@ -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. |
{ | ||
"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 @@ * |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
58597
21
1917
0
+ Addedcolor-name@1.1.4(transitive)
- Removedcolor@0.7.3(transitive)
- Removedcolor-name@1.0.1(transitive)
- Removedcolor-string@0.2.4(transitive)
- Removeddiagnostics@0.0.4(transitive)
Updateddiagnostics@1.0.x