Skip to content

Commit 3d46851

Browse files
committed
Add builds to Project API. No tests includes right now.
1 parent 5e50619 commit 3d46851

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/Gitlab/Api/Projects.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,18 @@ public function remove($project_id)
127127
return $this->delete('projects/'.$this->encodePath($project_id));
128128
}
129129

130+
/**
131+
* @param int $project_id
132+
* @param array $scope
133+
* @return mixed
134+
*/
135+
public function builds($project_id, $scope = null)
136+
{
137+
return $this->get($this->getProjectPath($project_id, 'builds'), array(
138+
'scope' => (array) $scope,
139+
));
140+
}
141+
130142
/**
131143
* @param int $project_id
132144
* @param string $username_query

0 commit comments

Comments
 (0)