Skip to content

Commit 3f537e6

Browse files
committed
fix patch to get
1 parent e455d67 commit 3f537e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Github/Api/Repository/Checks.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function all($username, $repository, $ref, $params = [])
7171
// This api is in preview mode, so set the correct accept-header.
7272
$this->acceptHeaderValue = 'application/vnd.github.antiope-preview+json';
7373

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

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

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

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

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

0 commit comments

Comments
 (0)