Skip to content

Commit 91c8043

Browse files
committed
chore: change argument of all method to $parameters array
Signed-off-by: Hari Darshan Gorana <[email protected]>
1 parent 370927e commit 91c8043

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

lib/Github/Api/Organization/Actions/SelfHostedRunners.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,12 @@ class SelfHostedRunners extends AbstractApi
1010
* @link https://docs.github.com/en/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-self-hosted-runners-for-an-organization
1111
*
1212
* @param string $organization
13-
* @param string $type
14-
* @param int $page
13+
* @param array $parameters
1514
*
1615
* @return array|string
1716
*/
18-
public function all(string $organization, string $type = 'all', int $page = 1)
17+
public function all(string $organization, array $parameters)
1918
{
20-
$parameters = [
21-
'type' => $type,
22-
'page' => $page,
23-
];
24-
2519
return $this->get('/orgs/'.rawurlencode($organization).'/actions/runners', $parameters);
2620
}
2721

0 commit comments

Comments
 (0)