Skip to content

Commit

Permalink
feat: Add Gitlab Blame endpoint to the RespositoryFiles API
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalrymple committed Aug 13, 2019
1 parent d9207f3 commit ac670cc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/services/RepositoryFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ class RepositoryFiles extends BaseService {
});
}

showBlame(projectId: ProjectId, filePath: string, options?: Sudo) {
const [pId, path] = [projectId, filePath].map(encodeURIComponent);

return RequestHelper.get(this, `projects/${pId}/repository/files/${path}/blame`, options);
}

showRaw(projectId: ProjectId, filePath: string, ref: string, options?: Sudo) {
const [pId, path] = [projectId, filePath].map(encodeURIComponent);

Expand Down

0 comments on commit ac670cc

Please sign in to comment.