gitlab-sdk-nodejs
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -103,3 +103,9 @@ "use strict"; | ||
} | ||
fetchCommits(req) { | ||
return this.request(`/projects/${this.productId}/repository/commits`, req); | ||
} | ||
fetchCommit(sha) { | ||
return this.request(`/projects/${this.productId}/repository/commits/${sha}`); | ||
} | ||
} | ||
module.exports = Client; |
{ | ||
"name": "gitlab-sdk-nodejs", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Gitlab API NODEJS SDK", | ||
@@ -5,0 +5,0 @@ "main": "gitlab/index.js", |
@@ -127,4 +127,12 @@ // import fetch from "node-fetch"; | ||
} | ||
fetchCommits(req: any) { | ||
return this.request(`/projects/${this.productId}/repository/commits`, req) | ||
} | ||
fetchCommit(sha: string) { | ||
return this.request(`/projects/${this.productId}/repository/commits/${sha}`) | ||
} | ||
} | ||
module.exports = Client |
14505
13
379