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