From cacec59937591893834a699bd75b26daf3f97675 Mon Sep 17 00:00:00 2001 From: Hari Darshan Gorana Date: Mon, 24 Apr 2023 16:30:07 +0530 Subject: [PATCH] doc: Add PR Merge in doc Closes #866 Signed-off-by: Hari Darshan Gorana --- doc/pull_requests.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/pull_requests.md b/doc/pull_requests.md index d87e6180043..af31e4430b0 100644 --- a/doc/pull_requests.md +++ b/doc/pull_requests.md @@ -90,3 +90,11 @@ $pullRequest = $client->api('pull_request')->create('ezsystems', 'ezpublish', ar ``` This returns the details of the pull request. + +### Merge a Pull Request + +> Requires [authentication](security.md) + +```php +$client->api('pull_request')->merge('KnpLabs', 'php-github-api', $pullNumber, $commitMessage, $sha, $mergeMethod, $commitTitle); +```