-
-
Notifications
You must be signed in to change notification settings - Fork 598
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
Update list repositories methods in Teams and Apps API. #1067
base: master
Are you sure you want to change the base?
Update list repositories methods in Teams and Apps API. #1067
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR @raghavendra89! There are a few unnecessary changes and BC breaks that need to be fixed before we can merge the PR.
* | ||
* @return array | ||
*/ | ||
public function listRepositories($userId = null) | ||
public function listRepositories(array $params = []) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't remove/replace parameters as this would be a BC break. If the user parameter is not required anymore this should be deprecated so that we can remove it in the next major version
$parameters = array_merge([ | ||
'page' => 1, | ||
'per_page' => 30, | ||
], $params); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be needed as the ResultPager
class should be used to loop over multiple pages of results
$parameters = array_merge([ | ||
'page' => 1, | ||
'per_page' => 30, | ||
], $params); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be needed as the ResultPager
class should be used to loop over multiple pages of results
Updated
repositories
method in Teams api to support the new end point. Added params argument for AppslistRepositories
method and Teamsrepositories
method.