Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve to can specify parameters on issue comments api. #815

Merged
merged 3 commits into from Nov 1, 2019

Conversation

t-kuni
Copy link
Contributor

@t-kuni t-kuni commented Oct 6, 2019

I had try to get comments which updated after specific date but it couldn't because can't specify since parameters through this library.

Github API provide since parameter.

https://developer.github.com/v3/issues/comments/#list-comments-on-an-issue
image

but this library can specify page only.
https://github.com/KnpLabs/php-github-api/blob/master/lib/Github/Api/Issue/Comments.php#L39-L56

In this PR, will be able to specify array on 4th argument of Comments#all method.

lib/Github/Api/Issue/Comments.php Show resolved Hide resolved
lib/Github/Api/Issue/Comments.php Outdated Show resolved Hide resolved
@acrobat
Copy link
Collaborator

acrobat commented Nov 1, 2019

Thanks @t-kuni! And congrats on your first contribution! 🎉

@acrobat acrobat merged commit 157bd55 into KnpLabs:master Nov 1, 2019
@bobeagan
Copy link
Contributor

bobeagan commented Feb 7, 2020

How is this supposed to play nice with ResultPager's fetchAll on the comments->all() method?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants