From b966d8460691f229b22c359222d06e7a7ce733b7 Mon Sep 17 00:00:00 2001 From: creamidea Date: Thu, 12 Oct 2017 16:32:33 +0800 Subject: [PATCH] feat: get contributors Closed #41 --- lib/properties.js | 1 + lib/resources/index.js | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/lib/properties.js b/lib/properties.js index ff15cf9..35e0b03 100644 --- a/lib/properties.js +++ b/lib/properties.js @@ -36,6 +36,7 @@ var properties = { 'protect', 'unprotect', ], + repositoryContributors: [], repository: [ 'getBranches', 'protectBranch', diff --git a/lib/resources/index.js b/lib/resources/index.js index 7f67a0a..827248a 100644 --- a/lib/resources/index.js +++ b/lib/resources/index.js @@ -30,6 +30,11 @@ module.exports = { resourcePath: '/projects/:id/repository/files' }, + repositoryContributors: { + resourcePath: '/projects/:id/repository/contributors', + idName: 'user_id', + }, + mergeRequests: require('./merge_request'), users: {