Skip to content

Commit

Permalink
Revert project to commit (#1353)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sumragen authored Nov 30, 2020
1 parent 54aa3a8 commit a7c239b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/gitbeaker-core/src/services/Commits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ export class Commits extends BaseService {
return RequestHelper.get(this, `projects/${pId}/repository/commits/${sha}/refs`, options);
}

revert(projectId: string | number, sha: string, options?: Sudo) {
const pId = encodeURIComponent(projectId);

return RequestHelper.post(this, `projects/${pId}/repository/commits/${sha}/revert`, options);
}

show(projectId: string | number, sha: string, options?: BaseRequestOptions) {
const pId = encodeURIComponent(projectId);

Expand Down

0 comments on commit a7c239b

Please sign in to comment.