From c0a48e2196b8e77cc65fa71af69d7d284ecd8123 Mon Sep 17 00:00:00 2001 From: "Spencer, Luke" <Luke.Spencer@lexisnexisrisk.com> Date: Wed, 23 Oct 2024 08:23:47 +0100 Subject: [PATCH] Added documentation --- doc/commits.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/commits.md b/doc/commits.md index 741af0713a2..165d71ecae2 100644 --- a/doc/commits.md +++ b/doc/commits.md @@ -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. \ No newline at end of file