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 | * @codeCoverageIgnore |
||
30 | */ |
||
31 | public function comments() |
||
35 | |||
36 | /** |
||
37 | * Get a list of pull requests |
||
38 | * |
||
39 | * @access public |
||
40 | * @param string $account The team or individual account owning the repository. |
||
41 | * @param string $repo The repository identifier. |
||
42 | * @param array $params Additional parameters |
||
43 | * @return MessageInterface |
||
44 | * |
||
45 | * @throws \InvalidArgumentException |
||
46 | */ |
||
47 | 1 | public function all($account, $repo, array $params = array()) |
|
75 | |||
76 | /** |
||
77 | * Create a new pull request |
||
78 | * |
||
79 | * @access public |
||
80 | * @param string $account The team or individual account owning the repository. |
||
81 | * @param string $repo The repository identifier. |
||
82 | * @param array|string $params Additional parameters as array or JSON string |
||
83 | * @return MessageInterface |
||
84 | * |
||
85 | * @throws \InvalidArgumentException |
||
86 | * @see https://confluence.atlassian.com/x/XAZAGQ |
||
87 | */ |
||
88 | 3 | public function create($account, $repo, $params = array()) |
|
124 | |||
125 | /** |
||
126 | * Update a pull request |
||
127 | * |
||
128 | * @access public |
||
129 | * @param string $account The team or individual account owning the repository. |
||
130 | * @param string $repo The repository identifier. |
||
131 | * @param int $id ID of the pull request that will be updated |
||
132 | * @param array|string $params Additional parameters as array or JSON string |
||
133 | * @return MessageInterface |
||
134 | * |
||
135 | * @throws \InvalidArgumentException |
||
136 | */ |
||
137 | 3 | public function update($account, $repo, $id, $params = array()) |
|
173 | |||
174 | /** |
||
175 | * Get a specific pull request |
||
176 | * |
||
177 | * @access public |
||
178 | * @param string $account The team or individual account owning the repository. |
||
179 | * @param string $repo The repository identifier. |
||
180 | * @param int $id ID of the pull request |
||
181 | * @return MessageInterface |
||
182 | */ |
||
183 | 1 | public function get($account, $repo, $id) |
|
189 | |||
190 | /** |
||
191 | * Get the commits for a pull request |
||
192 | * |
||
193 | * @access public |
||
194 | * @param string $account The team or individual account owning the repository. |
||
195 | * @param string $repo The repository identifier. |
||
196 | * @param int $id ID of the pull request |
||
197 | * @return MessageInterface |
||
198 | */ |
||
199 | 1 | public function commits($account, $repo, $id) |
|
205 | |||
206 | /** |
||
207 | * Approve a pull request |
||
208 | * |
||
209 | * @access public |
||
210 | * @param string $account The team or individual account owning the repository. |
||
211 | * @param string $repo The repository identifier. |
||
212 | * @param int $id ID of the pull request |
||
213 | * @return MessageInterface |
||
214 | */ |
||
215 | 1 | public function approve($account, $repo, $id) |
|
221 | |||
222 | /** |
||
223 | * Delete a pull request approval |
||
224 | * |
||
225 | * NOTE: On success returns `HTTP/1.1 204 NO CONTENT` |
||
226 | * |
||
227 | * @access public |
||
228 | * @param string $account The team or individual account owning the repository. |
||
229 | * @param string $repo The repository identifier. |
||
230 | * @param int $id ID of the pull request |
||
231 | * @return MessageInterface |
||
232 | */ |
||
233 | 1 | public function deleteApproval($account, $repo, $id) |
|
239 | |||
240 | /** |
||
241 | * Get the diff for a pull request |
||
242 | * |
||
243 | * @access public |
||
244 | * @param string $account The team or individual account owning the repository. |
||
245 | * @param string $repo The repository identifier. |
||
246 | * @param int $id ID of the pull request |
||
247 | * @return MessageInterface |
||
248 | */ |
||
249 | 1 | public function diff($account, $repo, $id) |
|
255 | |||
256 | /** |
||
257 | * Get the log of all of a repository's pull request activity |
||
258 | * |
||
259 | * If `$id` is omitted the repository's pull request activity is returned. |
||
260 | * If `$id` is not omitted the pull request activity is returned. |
||
261 | * |
||
262 | * @access public |
||
263 | * @param string $account The team or individual account owning the repository. |
||
264 | * @param string $repo The repository identifier. |
||
265 | * @param int $id (Optional) ID of the pull request |
||
266 | * @return MessageInterface |
||
267 | */ |
||
268 | 2 | public function activity($account, $repo, $id = 0) |
|
280 | |||
281 | /** |
||
282 | * Accept and merge a pull request |
||
283 | * |
||
284 | * @access public |
||
285 | * @param string $account The team or individual account owning the repository. |
||
286 | * @param string $repo The repository identifier. |
||
287 | * @param int $id (Optional) ID of the pull request |
||
288 | * @param array $params Additional parameters. |
||
289 | * @return MessageInterface |
||
290 | */ |
||
291 | 2 | public function accept($account, $repo, $id, $params = array()) |
|
299 | |||
300 | /** |
||
301 | * Decline a pull request |
||
302 | * |
||
303 | * @access public |
||
304 | * @param string $account The team or individual account owning the repository. |
||
305 | * @param string $repo The repository identifier. |
||
306 | * @param int $id (Optional) ID of the pull request |
||
307 | * @param array $params Additional parameters. |
||
308 | * @return MessageInterface |
||
309 | */ |
||
310 | 2 | public function decline($account, $repo, $id, $params = array()) |
|
322 | } |
||
323 |