Skip to content

Commit 13b3a9b

Browse files
committed
add forks API call to return all forked projects
1 parent 800522a commit 13b3a9b

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
@@ -650,6 +650,18 @@ public function languages($project_id)
650650
return $this->get($this->getProjectPath($project_id, 'languages'));
651651
}
652652

653+
/**
654+
* @param int $project_id
655+
* @param array $parameters
656+
* @return mixed
657+
*/
658+
public function forks($project_id, array $parameters = [])
659+
{
660+
$resolver = $this->createOptionsResolver();
661+
662+
return $this->get($this->getProjectPath($project_id, 'forks'), $resolver->resolve($parameters));
663+
}
664+
653665
/**
654666
* @param int $project_id
655667
* @param array $params (

0 commit comments

Comments
 (0)