Merge pull request #287 from HanchengZhao/master

feat(Commits API): Add API for listing merge requests associated with a commit
This commit is contained in:
jdalrymple 2019-03-14 16:42:58 -04:00 committed by GitHub
commit e5fe2b9fa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,6 +90,12 @@ class Commits extends BaseService {
return RequestHelper.get(this, `projects/${pId}/repository/commits/${sha}/statuses`, options);
}
mergeRequests(projectId: ProjectId, sha: string, options: RequestOptions) {
const pId = encodeURIComponent(projectId);
return RequestHelper.get(this, `projects/${pId}/repository/commits/${sha}/merge_requests`, options);
}
}
export default Commits;