Add options parameter to group based project list call

Allows options to be passed to this endpoint:
https://docs.gitlab.com/ee/api/groups.html#list-a-group-39-s-projects
This commit is contained in:
Cory Zibell 2017-09-14 17:28:47 -04:00 committed by GitHub
parent 83b843f41b
commit 36d051b516

View File

@ -77,10 +77,10 @@ class Groups extends BaseModel {
return this.post('groups', options);
}
listProjects(groupId) {
listProjects(groupId, options = {}) {
const gId = Utils.parse(groupId);
return this.get(`groups/${gId}/projects`);
return this.get(`groups/${gId}/projects`, options);
}
addProject(groupId, projectId) {