| @@ 80-88 (lines=9) @@ | ||
| 77 | /** |
|
| 78 | * @return array |
|
| 79 | */ |
|
| 80 | public function fetchAllBranchNames() |
|
| 81 | { |
|
| 82 | $parameters = [ |
|
| 83 | $this->githubRepo->getOwner(), |
|
| 84 | $this->githubRepo->getName(), |
|
| 85 | ]; |
|
| 86 | ||
| 87 | return $this->paginator->fetchAll($this->getRepoApi(), 'branches', $parameters); |
|
| 88 | } |
|
| 89 | ||
| 90 | /** |
|
| 91 | * @return array |
|
| @@ 108-116 (lines=9) @@ | ||
| 105 | /** |
|
| 106 | * @return array |
|
| 107 | */ |
|
| 108 | public function fetchAllTagNames() |
|
| 109 | { |
|
| 110 | $parameters = [ |
|
| 111 | $this->githubRepo->getOwner(), |
|
| 112 | $this->githubRepo->getName(), |
|
| 113 | ]; |
|
| 114 | ||
| 115 | return $this->paginator->fetchAll($this->getRepoApi(), 'tags', $parameters); |
|
| 116 | } |
|
| 117 | ||
| 118 | /** |
|
| 119 | * Fetches GithubCommit details. |
|
| @@ 172-181 (lines=10) @@ | ||
| 169 | /** |
|
| 170 | * @return array |
|
| 171 | */ |
|
| 172 | public function fetchAllPullRequests() |
|
| 173 | { |
|
| 174 | $parameters = [ |
|
| 175 | $this->githubRepo->getOwner(), |
|
| 176 | $this->githubRepo->getName(), |
|
| 177 | ['state' => 'all'], |
|
| 178 | ]; |
|
| 179 | ||
| 180 | return $this->paginator->fetchAll($this->getPullRequestApi(), 'all', $parameters); |
|
| 181 | } |
|
| 182 | ||
| 183 | /** |
|
| 184 | * @return array |
|
| @@ 186-195 (lines=10) @@ | ||
| 183 | /** |
|
| 184 | * @return array |
|
| 185 | */ |
|
| 186 | public function fetchAllMilestones() |
|
| 187 | { |
|
| 188 | $parameters = [ |
|
| 189 | $this->githubRepo->getOwner(), |
|
| 190 | $this->githubRepo->getName(), |
|
| 191 | ['state' => 'all'], |
|
| 192 | ]; |
|
| 193 | ||
| 194 | return $this->paginator->fetchAll($this->getMilestonesApi(), 'all', $parameters); |
|
| 195 | } |
|
| 196 | ||
| 197 | /** |
|
| 198 | * Returns all issues. |
|
| @@ 222-231 (lines=10) @@ | ||
| 219 | /** |
|
| 220 | * @return array |
|
| 221 | */ |
|
| 222 | public function fetchAllIssuesAndPullRequests() |
|
| 223 | { |
|
| 224 | $parameters = [ |
|
| 225 | $this->githubRepo->getOwner(), |
|
| 226 | $this->githubRepo->getName(), |
|
| 227 | ['state' => 'all'], |
|
| 228 | ]; |
|
| 229 | ||
| 230 | return $this->paginator->fetchAll($this->getIssueApi(), 'all', $parameters); |
|
| 231 | } |
|
| 232 | ||
| 233 | /** |
|
| 234 | * @return \Github\Api\ApiInterface |
|