Skip to content

Commit

Permalink
Adding API endpoints to interact with custom properties
Browse files Browse the repository at this point in the history
  • Loading branch information
ONyklicek committed Jan 7, 2025
1 parent 82fc88a commit 3d1100e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/Github/Api/Repository/CustomProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class CustomProperties extends AbstractApi
/**
* @param string $owner The account owner of the repository.
* @param string $repository The name of the repository.
*
* @return array|string
*/
public function all(string $owner, string $repository)
Expand Down Expand Up @@ -52,6 +53,7 @@ public function show(string $owner, string $repository, string $propertyName): a
* @param string $owner The account owner of the repository.
* @param string $repository The name of the repository.
* @param array<string, mixed> $params
*
* @return array|string
*/
public function update(string $owner, string $repository, array $params)
Expand Down
2 changes: 1 addition & 1 deletion test/Github/Tests/Api/Repository/CustomPropertiesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function testShowPropertyExists()

$expectedResult = [
'property_name' => 'property2',
'value' => 'value2'
'value' => 'value2',
];

$this->assertEquals($expectedResult, $api->show('owner', 'repo', 'property2'));
Expand Down

0 comments on commit 3d1100e

Please sign in to comment.