We have detected an error in your notification set-up
(Event-ID dab39dc24f564ec7bd4628d1305fd03c).
Currently, we cannot inform you about inspection progress.
Please check that the user
557058:bca11929-8c2d-43f2-8a82-c5416880d395
still has access to your repository or
update the API account.
1 | <?php |
||
22 | class PullRequests extends API\Api |
||
23 | { |
||
24 | /** |
||
25 | * Get comments |
||
26 | * |
||
27 | * @access public |
||
28 | * @return PullRequests\Comments |
||
29 | * |
||
30 | * @throws \InvalidArgumentException |
||
31 | * @codeCoverageIgnore |
||
32 | */ |
||
33 | public function comments() |
||
37 | |||
38 | /** |
||
39 | * Get a list of pull requests |
||
40 | * |
||
41 | * @access public |
||
42 | * @param string $account The team or individual account owning the repository. |
||
43 | * @param string $repo The repository identifier. |
||
44 | * @param array $params Additional parameters |
||
45 | * @return ResponseInterface |
||
46 | * |
||
47 | * @throws \InvalidArgumentException |
||
48 | */ |
||
49 | 1 | public function all($account, $repo, array $params = array()) |
|
77 | |||
78 | /** |
||
79 | * Create a new pull request |
||
80 | * |
||
81 | * @access public |
||
82 | * @param string $account The team or individual account owning the repository. |
||
83 | * @param string $repo The repository identifier. |
||
84 | * @param array|string $params Additional parameters as array or JSON string |
||
85 | * @return ResponseInterface |
||
86 | * |
||
87 | * @throws \InvalidArgumentException |
||
88 | * @see https://confluence.atlassian.com/x/XAZAGQ |
||
89 | */ |
||
90 | 3 | public function create($account, $repo, $params = array()) |
|
126 | |||
127 | /** |
||
128 | * Update a pull request |
||
129 | * |
||
130 | * @access public |
||
131 | * @param string $account The team or individual account owning the repository. |
||
132 | * @param string $repo The repository identifier. |
||
133 | * @param int $id ID of the pull request that will be updated |
||
134 | * @param array|string $params Additional parameters as array or JSON string |
||
135 | * @return ResponseInterface |
||
136 | * |
||
137 | * @throws \InvalidArgumentException |
||
138 | */ |
||
139 | 3 | public function update($account, $repo, $id, $params = array()) |
|
175 | |||
176 | /** |
||
177 | * Get a specific pull request |
||
178 | * |
||
179 | * @access public |
||
180 | * @param string $account The team or individual account owning the repository. |
||
181 | * @param string $repo The repository identifier. |
||
182 | * @param int $id ID of the pull request |
||
183 | * @return ResponseInterface |
||
184 | */ |
||
185 | 1 | public function get($account, $repo, $id) |
|
191 | |||
192 | /** |
||
193 | * Get the commits for a pull request |
||
194 | * |
||
195 | * @access public |
||
196 | * @param string $account The team or individual account owning the repository. |
||
197 | * @param string $repo The repository identifier. |
||
198 | * @param int $id ID of the pull request |
||
199 | * @return ResponseInterface |
||
200 | */ |
||
201 | 1 | public function commits($account, $repo, $id) |
|
207 | |||
208 | /** |
||
209 | * Approve a pull request |
||
210 | * |
||
211 | * @access public |
||
212 | * @param string $account The team or individual account owning the repository. |
||
213 | * @param string $repo The repository identifier. |
||
214 | * @param int $id ID of the pull request |
||
215 | * @return ResponseInterface |
||
216 | */ |
||
217 | 1 | public function approve($account, $repo, $id) |
|
223 | |||
224 | /** |
||
225 | * Delete a pull request approval |
||
226 | * |
||
227 | * NOTE: On success returns `HTTP/1.1 204 NO CONTENT` |
||
228 | * |
||
229 | * @access public |
||
230 | * @param string $account The team or individual account owning the repository. |
||
231 | * @param string $repo The repository identifier. |
||
232 | * @param int $id ID of the pull request |
||
233 | * @return ResponseInterface |
||
234 | */ |
||
235 | 1 | public function deleteApproval($account, $repo, $id) |
|
241 | |||
242 | /** |
||
243 | * Get the diff for a pull request |
||
244 | * |
||
245 | * @access public |
||
246 | * @param string $account The team or individual account owning the repository. |
||
247 | * @param string $repo The repository identifier. |
||
248 | * @param int $id ID of the pull request |
||
249 | * @return ResponseInterface |
||
250 | */ |
||
251 | 1 | public function diff($account, $repo, $id) |
|
257 | |||
258 | /** |
||
259 | * Get the log of all of a repository's pull request activity |
||
260 | * |
||
261 | * If `$id` is omitted the repository's pull request activity is returned. |
||
262 | * If `$id` is not omitted the pull request activity is returned. |
||
263 | * |
||
264 | * @access public |
||
265 | * @param string $account The team or individual account owning the repository. |
||
266 | * @param string $repo The repository identifier. |
||
267 | * @param int $id (Optional) ID of the pull request |
||
268 | * @return ResponseInterface |
||
269 | */ |
||
270 | 2 | public function activity($account, $repo, $id = 0) |
|
282 | |||
283 | /** |
||
284 | * Accept and merge a pull request |
||
285 | * |
||
286 | * @access public |
||
287 | * @param string $account The team or individual account owning the repository. |
||
288 | * @param string $repo The repository identifier. |
||
289 | * @param int $id (Optional) ID of the pull request |
||
290 | * @param array $params Additional parameters. |
||
291 | * @return ResponseInterface |
||
292 | */ |
||
293 | 1 | public function accept($account, $repo, $id, $params = array()) |
|
301 | |||
302 | /** |
||
303 | * Decline a pull request |
||
304 | * |
||
305 | * @access public |
||
306 | * @param string $account The team or individual account owning the repository. |
||
307 | * @param string $repo The repository identifier. |
||
308 | * @param int $id (Optional) ID of the pull request |
||
309 | * @param array $params Additional parameters. |
||
310 | * @return ResponseInterface |
||
311 | */ |
||
312 | 2 | public function decline($account, $repo, $id, $params = array()) |
|
324 | } |
||
325 |