tan-tan-kanarek / github-php-client

MIT License
184 stars 120 forks source link

how to call labels for an issue #20

Closed deepaknverma closed 9 years ago

deepaknverma commented 10 years ago

how can I call label for a particular issue

deepaknverma commented 10 years ago

Hi! Sorry. Took some time to understand. Finally got it working. $issues = $this->client->issues->listIssues($this->owner, $this->repo, $issueID );

flashadvocate commented 9 years ago

@deepaknverma might be missing it, but is there a direct way to pull issues marked with a specific label, as opposed to looping through all of the labels belonging to an issue to decide if it's one I want?

tan-tan-kanarek commented 9 years ago

GitHubPulls::listPullRequests should do the trick, see also the official documentation: https://developer.github.com/v3/pulls/#list-pull-requests

flashadvocate commented 9 years ago

Ah thanks tan-tan. I see it mentions "all pull requests are issues but not vice versa". I'm not necessarily interested in just PRs but all issues marked with a specific label (question or bug, for example)

On Fri, May 29, 2015, 1:54 AM Tan-Tan notifications@github.com wrote:

GitHubPulls::listPullRequests should do the trick, see also the official documentation: https://developer.github.com/v3/pulls/#list-pull-requests

— Reply to this email directly or view it on GitHub https://github.com/tan-tan-kanarek/github-php-client/issues/20#issuecomment-106698477 .

tan-tan-kanarek commented 9 years ago

See fix: https://github.com/tan-tan-kanarek/github-php-client/pull/53

flashadvocate commented 9 years ago

Awesome @tan-tan-kanarek thanks for the great work! :)