mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-25 16:04:01 +00:00
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:
commit
e5fe2b9fa0
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user