Merge pull request #65 from zhao0/master

fix request method and path of Commits.editStatus
This commit is contained in:
jdalrymple 2018-04-10 10:32:15 -04:00 committed by GitHub
commit c5cbcc5e63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {