Skip to content

Commit

Permalink
Added documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
lmjhs committed Oct 23, 2024
1 parent 5727a43 commit c0a48e2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/commits.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,11 @@ $commit = $client->api('repo')->commits()->compare('KnpLabs', 'php-github-api',
```

Returns an array of commits.

### List pull requests associated with a commit

```php
$commit = $client->api('repo')->commits()->pulls('KnpLabs', 'php-github-api', '839e5185da9434753db47959bee16642bb4f2ce4');
```

Returns an array of pull requests.

0 comments on commit c0a48e2

Please sign in to comment.