Skip to content

Allow to provide parameters for PullRequests list #136

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 4 commits into from
Jun 24, 2014
Merged

Allow to provide parameters for PullRequests list #136

merged 4 commits into from
Jun 24, 2014

Conversation

syphernl
Copy link
Contributor

According to the API documentation of the v3 API a sort can be added and some other parameters not yet supported by this library. I have changed the "all" function to allow parameters to be given.

According to the [API documentation](https://developer.github.com/v3/pulls/#list-pull-requests) of the v3 API a sort can be added and some other parameters not yet supported by this library. I have changed the "all" function to allow parameters to be given.
@cursedcoder
Copy link
Contributor

tests are failing, could you please fix it?

);

return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/pulls', $parameters);
return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/pulls', $params );
Copy link
Contributor

Choose a reason for hiding this comment

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

remove space after variable params

@syphernl
Copy link
Contributor Author

As requested / suggested.

@cursedcoder
Copy link
Contributor

are you sure?

Parse error: syntax error, unexpected ';' in /home/travis/build/KnpLabs/php-github-api/test/Github/Tests/Api/PullRequestTest.php on line 36

$parameters = array_merge(array(
'page' => 1,
'per_page' => 30
), $params);
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove extra spacing

@syphernl
Copy link
Contributor Author

It looks like this is now ready to be merged @cursedcoder

@cursedcoder
Copy link
Contributor

very nice @syphernl

cursedcoder added a commit that referenced this pull request Jun 24, 2014
Allow to provide parameters for PullRequests list
@cursedcoder cursedcoder merged commit c5475e2 into KnpLabs:master Jun 24, 2014
@stof
Copy link
Contributor

stof commented Aug 18, 2014

@cursedcoder merging a BC break and releasing it in a patch-level release (1.2.4 in this case) is really not nice for people depending on your library. Please follow semver

@cursedcoder
Copy link
Contributor

@stof ok

kordero added a commit to kordero/hifi-web that referenced this pull request Sep 24, 2014
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.

3 participants