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 |
||
20 | class BuildStatuses extends Api |
||
21 | { |
||
22 | /** |
||
23 | * Returns the status for specific build associated with a commit. |
||
24 | * |
||
25 | * @access public |
||
26 | * @param string $account The team or individual account owning the repository. |
||
27 | * @param string $repository The repository identifier. |
||
28 | * @param string $revision A SHA1 value for the commit. |
||
29 | * @param string $key The key that distinguishes the build status from others. |
||
30 | * @return ResponseInterface |
||
31 | * |
||
32 | * @see https://confluence.atlassian.com/bitbucket/buildstatus-resource-779295267.html |
||
33 | */ |
||
34 | 1 | public function get($account, $repository, $revision, $key) |
|
40 | |||
41 | /** |
||
42 | * Adds a build status to a commit. |
||
43 | * If the build is already associated with the commit, a POST also updates the status. |
||
44 | * |
||
45 | * @access public |
||
46 | * @param string $account The team or individual account owning the repository. |
||
47 | * @param string $repository The repository identifier. |
||
48 | * @param string $revision A SHA1 value for the commit. |
||
49 | * @param array $params The status. |
||
50 | * @return ResponseInterface |
||
51 | * |
||
52 | * @see https://confluence.atlassian.com/bitbucket/buildstatus-resource-779295267.html |
||
53 | */ |
||
54 | 1 | public function create($account, $repository, $revision, $params) |
|
62 | |||
63 | /** |
||
64 | * Updates the build status for a commit. |
||
65 | * |
||
66 | * @access public |
||
67 | * @param string $account The team or individual account owning the repository. |
||
68 | * @param string $repository The repository identifier. |
||
69 | * @param string $revision A SHA1 value for the commit. |
||
70 | * @param string $key The key that distinguishes the build status from others. |
||
71 | * @param array $params The status. |
||
72 | * @return ResponseInterface |
||
73 | * |
||
74 | * @see https://confluence.atlassian.com/bitbucket/buildstatus-resource-779295267.html |
||
75 | */ |
||
76 | 1 | public function update($account, $repository, $revision, $key, $params) |
|
84 | } |
||
85 |