bitbucket-v2
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -13,2 +13,10 @@ const _ = require('lodash'); | ||
create(username, repoSlug, repo, callback) { | ||
this.$api.post( | ||
'repositories/' + encodeURI(username) + '/' + encodeURI(repoSlug), | ||
repo, null, | ||
this.$createListener(callback) | ||
); | ||
} | ||
/** | ||
@@ -15,0 +23,0 @@ * Create a new pull request |
@@ -28,12 +28,17 @@ 'use strict'; | ||
/** | ||
* Create a new pull request | ||
* | ||
* @param {String} repo owner | ||
* @param {String} slug (name) of the repo. | ||
* @param {Object} pullRequest The PR POST body as specified by Bitbucket's API documentation | ||
*/ | ||
_createClass(RepositoriesApi, [{ | ||
key: 'create', | ||
value: function create(username, repoSlug, repo, callback) { | ||
this.$api.post('repositories/' + encodeURI(username) + '/' + encodeURI(repoSlug), repo, null, this.$createListener(callback)); | ||
} | ||
/** | ||
* Create a new pull request | ||
* | ||
* @param {String} repo owner | ||
* @param {String} slug (name) of the repo. | ||
* @param {Object} pullRequest The PR POST body as specified by Bitbucket's API documentation | ||
*/ | ||
_createClass(RepositoriesApi, [{ | ||
}, { | ||
key: 'createPullRequest', | ||
@@ -40,0 +45,0 @@ value: function createPullRequest(username, repoSlug, pullRequest, callback) { |
{ | ||
"name": "bitbucket-v2", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Wrapper for the BitBucket API v2", | ||
@@ -5,0 +5,0 @@ "author": "Jordan Wallet <jjwallet@gmail.com>", |
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
62031
1640
2