Skip to content

Commit

Permalink
doc: Add PR Merge in doc Closes KnpLabs#866
Browse files Browse the repository at this point in the history
Signed-off-by: Hari Darshan Gorana <[email protected]>
  • Loading branch information
haridarshan committed Apr 24, 2023
1 parent 55a5f6a commit cacec59
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/pull_requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```

0 comments on commit cacec59

Please sign in to comment.