You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Back to the "Repos API"](../repos.md) | [Back to the navigation](../README.md)
3
+
4
+
### Create a check run
5
+
6
+
[Visit GitHub for a full of list of parameters and their descriptions.](https://docs.github.com/en/free-pro-team@latest/rest/reference/checks#create-a-check-run)
Copy file name to clipboardExpand all lines: lib/Github/Api/Repo.php
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,8 @@
3
3
namespaceGithub\Api;
4
4
5
5
useGithub\Api\Repository\Checks;
6
+
useGithub\Api\Repository\Checks\CheckRuns;
7
+
useGithub\Api\Repository\Checks\CheckSuites;
6
8
useGithub\Api\Repository\Collaborators;
7
9
useGithub\Api\Repository\Comments;
8
10
useGithub\Api\Repository\Commits;
@@ -335,14 +337,33 @@ public function commits()
335
337
* Manage checks on a repository.
336
338
*
337
339
* @link https://developer.github.com/v3/checks/
340
+
* @deprecated since 2.17 and will be removed in 3.0. Use the "checkRuns" or "checkSuites" api's instead.
338
341
*
339
342
* @return Checks
340
343
*/
341
344
publicfunctionchecks()
342
345
{
346
+
@trigger_error(sprintf('The "%s" is deprecated since knp-labs/php-github-api 2.17 and will be removed in knp-labs/php-github-api 3.0. Use the "checkRuns" or "checkSuites" api\'s instead.', __METHOD__), E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: lib/Github/Api/Repository/Checks.php
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,8 @@
7
7
useGithub\Exception\MissingArgumentException;
8
8
9
9
/**
10
-
* @link https://developer.github.com/v3/checks/
10
+
* @link https://developer.github.com/v3/checks/
11
+
* @deprecated since 2.17 and will be removed in 3.0. Use the "Github\Api\Repository\Checks\CheckRuns" or "Github\Api\Repository\Checks\CheckSuits" api classes instead.
@trigger_error(sprintf('The "%s" method is deprecated since knp-labs/php-github-api 2.17 and will be removed in knp-labs/php-github-api 3.0. Use the "Github\Api\Repository\Checks\CheckRuns::create" method instead.', __METHOD__), E_USER_DEPRECATED);
34
+
32
35
if (!isset($params['name'], $params['head_sha'])) {
@trigger_error(sprintf('The "%s" method is deprecated since knp-labs/php-github-api 2.17 and will be removed in knp-labs/php-github-api 3.0. Use the "Github\Api\Repository\Checks\CheckRuns::update" method instead.', __METHOD__), E_USER_DEPRECATED);
@trigger_error(sprintf('The "%s" method is deprecated since knp-labs/php-github-api 2.17 and will be removed in knp-labs/php-github-api 3.0. Use the "Github\Api\Repository\Checks\CheckRuns::allForReference" method instead.', __METHOD__), E_USER_DEPRECATED);
@trigger_error(sprintf('The "%s" method is deprecated since knp-labs/php-github-api 2.17 and will be removed in knp-labs/php-github-api 3.0. Use the "Github\Api\Repository\Checks\CheckRuns::show" method instead.', __METHOD__), E_USER_DEPRECATED);
@trigger_error(sprintf('The "%s" method is deprecated since knp-labs/php-github-api 2.17 and will be removed in knp-labs/php-github-api 3.0. Use the "Github\Api\Repository\Checks\CheckRuns::annotations" method instead.', __METHOD__), E_USER_DEPRECATED);
0 commit comments