Skip to content

Commit

Permalink
feat: Adding Merge Base endpoint for the Repositories API
Browse files Browse the repository at this point in the history
closes: #400
  • Loading branch information
jdalrymple committed Aug 6, 2019
1 parent a907c7c commit 040fc78
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/services/Repositories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 040fc78

Please sign in to comment.