| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 41 | public function updateStatus(string $organisation, string $repository, string $sha, Status $status) |
||
| 42 | { |
||
| 43 | /** @var Repo $repoApi */ |
||
| 44 | $repoApi = $this->client->api('repo'); |
||
| 45 | $repoApi->statuses() |
||
| 46 | ->create( |
||
| 47 | $organisation, |
||
| 48 | $repository, |
||
| 49 | $sha, |
||
| 50 | [ |
||
| 51 | 'state' => $status->getState(), |
||
| 52 | 'description' => $status->getMessage(), |
||
| 53 | 'context' => self::CONTEXT |
||
| 54 | ] |
||
| 55 | ); |
||
| 56 | } |
||
| 57 | } |
||
| 58 |