Skip to content

Commit 040fc78

Browse files
committed
feat: Adding Merge Base endpoint for the Repositories API
closes: #400
1 parent a907c7c commit 040fc78

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/services/Repositories.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ class Repositories extends BaseService {
1818
return RequestHelper.get(this, `projects/${pId}/repository/contributors`, options);
1919
}
2020

21+
mergeBase(projectId: ProjectId, refs: string[], options?: Sudo) {
22+
const pId = encodeURIComponent(projectId);
23+
24+
return RequestHelper.get(this, `projects/${pId}/repository/merge_base`, { refs, ...options });
25+
}
26+
2127
showArchive(projectId: ProjectId, options?: { sha: string } & Sudo) {
2228
const pId = encodeURIComponent(projectId);
2329

0 commit comments

Comments
 (0)