From 040fc786c918d852b8c898bc7d82434408a458f4 Mon Sep 17 00:00:00 2001 From: Justin Date: Tue, 6 Aug 2019 10:44:27 -0400 Subject: [PATCH] feat: Adding Merge Base endpoint for the Repositories API closes: #400 --- src/services/Repositories.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/services/Repositories.ts b/src/services/Repositories.ts index d053aa30e..77abee2d4 100644 --- a/src/services/Repositories.ts +++ b/src/services/Repositories.ts @@ -18,6 +18,12 @@ class Repositories extends BaseService { return RequestHelper.get(this, `projects/${pId}/repository/contributors`, options); } + mergeBase(projectId: ProjectId, refs: string[], options?: Sudo) { + const pId = encodeURIComponent(projectId); + + return RequestHelper.get(this, `projects/${pId}/repository/merge_base`, { refs, ...options }); + } + showArchive(projectId: ProjectId, options?: { sha: string } & Sudo) { const pId = encodeURIComponent(projectId);