gitlab-api-wrapper
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -36,2 +36,11 @@ 'use strict'; | ||
/** | ||
* Creates a new commit by posting JSON payload. | ||
* @param id {number} - The ID of a project | ||
* @param params {object} - FYI, https://docs.gitlab.com/ce/api/commits.html#create-a-commit-with-multiple-files-and-actions | ||
*/ | ||
create (id, params) { | ||
return this.http.post(`/projects/${id}/repository/commits`, params || {}); | ||
} | ||
/** | ||
* Get a specific commit identified by the commit hash or name of a branch or tag. | ||
@@ -38,0 +47,0 @@ * @param id {number} - The ID of a project |
{ | ||
"name": "gitlab-api-wrapper", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "The most comprehensive GitLab API, almost covers all GitLab API endpoints. Also, we provide an isomorphic API which can be used in both browser and Node.js environments.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
104257
3017