| @@ 35-44 (lines=10) @@ | ||
| 32 | /** |
|
| 33 | * @return array|mixed |
|
| 34 | */ |
|
| 35 | public function fetchAllMilestones() |
|
| 36 | { |
|
| 37 | $parameters = [ |
|
| 38 | $this->githubRepo->getOwner(), |
|
| 39 | $this->githubRepo->getName(), |
|
| 40 | ['state' => 'all'], |
|
| 41 | ]; |
|
| 42 | ||
| 43 | return $this->paginator->fetchAll($this->getMilestonesApi(), 'all', $parameters); |
|
| 44 | } |
|
| 45 | ||
| 46 | /** |
|
| 47 | * Returns all issues. |
|
| @@ 71-80 (lines=10) @@ | ||
| 68 | /** |
|
| 69 | * @return array|mixed |
|
| 70 | */ |
|
| 71 | public function fetchAllIssuesAndPullRequests() |
|
| 72 | { |
|
| 73 | $parameters = [ |
|
| 74 | $this->githubRepo->getOwner(), |
|
| 75 | $this->githubRepo->getName(), |
|
| 76 | ['state' => 'all'], |
|
| 77 | ]; |
|
| 78 | ||
| 79 | return $this->paginator->fetchAll($this->getIssueApi(), 'all', $parameters); |
|
| 80 | } |
|
| 81 | ||
| 82 | /** |
|
| 83 | * @return \Github\Api\ApiInterface |
|