Skip to content

Add support for pagination and parameters in the pull request comments API. #576

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

Merged
merged 2 commits into from
May 3, 2017

Conversation

a-ast
Copy link
Contributor

@a-ast a-ast commented May 1, 2017

Pull request review comments API allows pagination and additional parameters like sort and direction: https://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository

My PR extends existing Comments::all method to allow passing of parameters.

Copy link
Collaborator

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. Im just missing some docs.

@@ -38,13 +38,18 @@ public function configure($bodyType = null, $apiVersion = null)
return $this;
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a method doc block here? It would also be great if you linked to https://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Collaborator

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent. Thank you

@Nyholm Nyholm merged commit 4729cec into KnpLabs:master May 3, 2017
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.

4 participants