@@ 76-84 (lines=9) @@ | ||
73 | } |
|
74 | ||
75 | /** @return array */ |
|
76 | public function fetchAllBranchNames() |
|
77 | { |
|
78 | $parameters = [ |
|
79 | $this->githubRepo->getOwner(), |
|
80 | $this->githubRepo->getName(), |
|
81 | ]; |
|
82 | ||
83 | return $this->paginator->fetchAll($this->getRepoApi(), 'branches', $parameters); |
|
84 | } |
|
85 | ||
86 | /** @return array */ |
|
87 | public function fetchAllTags() |
|
@@ 100-108 (lines=9) @@ | ||
97 | } |
|
98 | ||
99 | /** @return array */ |
|
100 | public function fetchAllTagNames() |
|
101 | { |
|
102 | $parameters = [ |
|
103 | $this->githubRepo->getOwner(), |
|
104 | $this->githubRepo->getName(), |
|
105 | ]; |
|
106 | ||
107 | return $this->paginator->fetchAll($this->getRepoApi(), 'tags', $parameters); |
|
108 | } |
|
109 | ||
110 | /** |
|
111 | * Fetches GithubCommit details. |
|
@@ 162-171 (lines=10) @@ | ||
159 | } |
|
160 | ||
161 | /** @return array */ |
|
162 | public function fetchAllPullRequests() |
|
163 | { |
|
164 | $parameters = [ |
|
165 | $this->githubRepo->getOwner(), |
|
166 | $this->githubRepo->getName(), |
|
167 | ['state' => 'all'], |
|
168 | ]; |
|
169 | ||
170 | return $this->paginator->fetchAll($this->getPullRequestApi(), 'all', $parameters); |
|
171 | } |
|
172 | ||
173 | /** @return array */ |
|
174 | public function fetchAllMilestones() |
|
@@ 174-183 (lines=10) @@ | ||
171 | } |
|
172 | ||
173 | /** @return array */ |
|
174 | public function fetchAllMilestones() |
|
175 | { |
|
176 | $parameters = [ |
|
177 | $this->githubRepo->getOwner(), |
|
178 | $this->githubRepo->getName(), |
|
179 | ['state' => 'all'], |
|
180 | ]; |
|
181 | ||
182 | return $this->paginator->fetchAll($this->getMilestonesApi(), 'all', $parameters); |
|
183 | } |
|
184 | ||
185 | /** |
|
186 | * Returns all issues. |
|
@@ 208-217 (lines=10) @@ | ||
205 | } |
|
206 | ||
207 | /** @return array */ |
|
208 | public function fetchAllIssuesAndPullRequests() |
|
209 | { |
|
210 | $parameters = [ |
|
211 | $this->githubRepo->getOwner(), |
|
212 | $this->githubRepo->getName(), |
|
213 | ['state' => 'all'], |
|
214 | ]; |
|
215 | ||
216 | return $this->paginator->fetchAll($this->getIssueApi(), 'all', $parameters); |
|
217 | } |
|
218 | ||
219 | /** |
|
220 | * @return \Github\Api\ApiInterface |