From a7c239bc6147b1eae505908c9238dacd35ad69fd Mon Sep 17 00:00:00 2001 From: Hennadii Varava Date: Mon, 30 Nov 2020 10:23:38 +0200 Subject: [PATCH] Revert project to commit (#1353) --- packages/gitbeaker-core/src/services/Commits.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/gitbeaker-core/src/services/Commits.ts b/packages/gitbeaker-core/src/services/Commits.ts index 3dd472eb5..df513284c 100644 --- a/packages/gitbeaker-core/src/services/Commits.ts +++ b/packages/gitbeaker-core/src/services/Commits.ts @@ -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);