public function Github_Api_Issue::search in Bibliography Module 7.2
Search issues by username, repo, state and search term http://develop.github.com/p/issues.html#list_a_projects_issues
Parameters
string $username the username:
string $repo the repo:
string $state the issue state, can be open or closed:
string $searchTerm the search term to filter issues by:
Return value
array list of issues found
File
- modules/
CiteProc/ Github/ Api/ Issue.php, line 38
Class
- Github_Api_Issue
- Listing issues, searching, editing and closing your projects issues.
Code
public function search($username, $repo, $state, $searchTerm) {
$response = $this
->get('issues/search/' . urlencode($username) . '/' . urlencode($repo) . '/' . urlencode($state) . '/' . urlencode($searchTerm));
return $response['issues'];
}