From bfd584f13de590213cf0020739eb34427c0234ba Mon Sep 17 00:00:00 2001 From: zhao0 Date: Tue, 10 Apr 2018 15:43:02 +0800 Subject: [PATCH] fix request method and path of Commits.editStatus Doc: https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/commits.md#post-the-build-status-to-a-commit --- src/services/Commits.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/Commits.js b/src/services/Commits.js index f0ea6f0f..574fba32 100644 --- a/src/services/Commits.js +++ b/src/services/Commits.js @@ -48,7 +48,7 @@ class Commits extends BaseService { editStatus(projectId, sha, options) { const pId = encodeURIComponent(projectId); - return RequestHelper.get(this, `projects/${pId}/repository/commits/${sha}/statuses`, options); + return RequestHelper.post(this, `projects/${pId}/statuses/${sha}`, options); } references(projectId, sha) {