Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 867 Bytes

statuses.md

File metadata and controls

28 lines (21 loc) · 867 Bytes

Repo / Statuses API

Back to the "Repos API" | Back to the navigation

List all statuses for a commit

$statuses = $client->api('repo')->statuses()->show('NimbleCI', 'docker-web-tester-behat', $commitSha);

Get the combined statuses for a commit

$statuses = $client->api('repo')->statuses()->combined('NimbleCI', 'docker-web-tester-behat', $commitSha);

Create a status for a commit

For the full list of parameters see https://developer.github.com/v3/repos/statuses/#parameters

$params = [
  'state' => 'pending',  # The 'state' element is required
  'target_url' => 'https://nimbleci.com/...',
  'description' => 'A great description...',
  'context' => 'my-context',
];
$statuses = $client->api('repo')->statuses()->create('NimbleCI', 'docker-web-tester-behat', $commitSha, $params);