Skip to content
Snippets Groups Projects
Commit 0cb789cd authored by Tom Behets's avatar Tom Behets
Browse files

listBranch and listBranches methods

parent e357f583
No related branches found
No related tags found
No related merge requests found
......@@ -107,4 +107,24 @@ class Api {
$this->init();
return $this->client->jobs()->show($project_id, $job_id);
}
/**
* @param int|string $project_id
*
* @return mixed
*/
public function listBranches($project_id): array {
$this->init();
return $this->client->repositories->branches($project_id);
}
/**
* @param int|string $project_id
* @param string $branch
* @return mixed
*/
public function listBranch($project_id, string $branch): array {
$this->init();
return $this->client->repositories->branch($project_id);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment