Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions doc/issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ Returns an array of issues.
### Search issues in a project

```php
$issues = $client->api('issue')->find('KnpLabs', 'php-github-api', 'closed', 'bug');
$result = $client->api('search')->issues('repo:KnpLabs/php-github-api is:issue is:closed bug');
$issues = $result['items'];
```

Returns an array of closed issues matching the "bug" term. For more complex searches, use the [search api](search.md) which supports the advanced GitHub search syntax.
Uses the [Search API](search.md) to find closed issues in this repository matching the "bug" term. The search response contains `total_count`, `incomplete_results`, and `items`; `$issues` contains the issues from the returned page. The `is:issue` qualifier excludes pull requests.

### Get information about an issue

Expand Down
Loading