Skip to content

Commit 8107e13

Browse files
committed
Add Documentation For method matching() in gitdata/references.md
Add Documentation For method matching() in gitdata/references.md
1 parent f9f39af commit 8107e13

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

doc/gitdata/references.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
$references = $client->api('gitData')->references()->all('KnpLabs', 'php-github-api');
88
```
99

10+
### List Matching references
11+
```php
12+
$references = $client->api('gitData')->references()->matching('KnpLabs', 'php-github-api', 'heads/branchName'); // use 'tags/tagName' for third argument if ref is tag
13+
```
14+
1015
### Show a reference
1116

1217
```php
@@ -41,4 +46,4 @@ $references = $client->api('gitData')->references()->branches('KnpLabs', 'php-gi
4146
### List all tags
4247
```php
4348
$references = $client->api('gitData')->references()->tags('KnpLabs', 'php-github-api');
44-
```
49+
```

0 commit comments

Comments
 (0)