Skip to content

Commit 3d1100e

Browse files
committed
Adding API endpoints to interact with custom properties
1 parent 82fc88a commit 3d1100e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/Github/Api/Repository/CustomProperties.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class CustomProperties extends AbstractApi
1515
/**
1616
* @param string $owner The account owner of the repository.
1717
* @param string $repository The name of the repository.
18+
*
1819
* @return array|string
1920
*/
2021
public function all(string $owner, string $repository)
@@ -52,6 +53,7 @@ public function show(string $owner, string $repository, string $propertyName): a
5253
* @param string $owner The account owner of the repository.
5354
* @param string $repository The name of the repository.
5455
* @param array<string, mixed> $params
56+
*
5557
* @return array|string
5658
*/
5759
public function update(string $owner, string $repository, array $params)

test/Github/Tests/Api/Repository/CustomPropertiesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function testShowPropertyExists()
3535

3636
$expectedResult = [
3737
'property_name' => 'property2',
38-
'value' => 'value2'
38+
'value' => 'value2',
3939
];
4040

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

0 commit comments

Comments
 (0)