Skip to content

Commit 87b3c7b

Browse files
committed
Added tree endpoint for repositories
1 parent 43e3165 commit 87b3c7b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/Gitlab/Api/Repositories.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ public function commits($project_id, $page = 0, $per_page = self::PER_PAGE, $ref
2929
));
3030
}
3131

32+
public function tree($project_id, array $params = array())
33+
{
34+
return $this->get('projects/'.urlencode($project_id).'/tree', $params);
35+
}
36+
3237
public function protectBranch($project_id, $branch_id)
3338
{
3439
return $this->put('projects/'.urlencode($project_id).'/repository/branches/'.urlencode($branch_id).'/protect');

0 commit comments

Comments
 (0)