Skip to content

Commit

Permalink
fix patch to get
Browse files Browse the repository at this point in the history
  • Loading branch information
bobeagan committed Apr 22, 2020
1 parent e455d67 commit 3f537e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Github/Api/Repository/Checks.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function all($username, $repository, $ref, $params = [])
// This api is in preview mode, so set the correct accept-header.
$this->acceptHeaderValue = 'application/vnd.github.antiope-preview+json';

return $this->patch('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/commits/'.rawurlencode($ref).'/check-runs', $params);
return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/commits/'.rawurlencode($ref).'/check-runs', $params);
}

/**
Expand All @@ -88,7 +88,7 @@ public function show($username, $repository, $checkRunId)
// This api is in preview mode, so set the correct accept-header.
$this->acceptHeaderValue = 'application/vnd.github.antiope-preview+json';

return $this->patch('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/check-runs/'.rawurlencode($checkRunId));
return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/check-runs/'.rawurlencode($checkRunId));
}

/**
Expand All @@ -105,6 +105,6 @@ public function annotations($username, $repository, $checkRunId)
// This api is in preview mode, so set the correct accept-header.
$this->acceptHeaderValue = 'application/vnd.github.antiope-preview+json';

return $this->patch('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/check-runs/'.rawurlencode($checkRunId).'/annotations');
return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/check-runs/'.rawurlencode($checkRunId).'/annotations');
}
}

0 comments on commit 3f537e6

Please sign in to comment.