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

Update list repositories methods in Teams and Apps API. #1067

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

raghavendra89
Copy link

Updated repositories method in Teams api to support the new end point. Added params argument for Apps listRepositories method and Teams repositories method.

Copy link
Collaborator

@acrobat acrobat left a 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 = [])
Copy link
Collaborator

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

Comment on lines +146 to +149
$parameters = array_merge([
'page' => 1,
'per_page' => 30,
], $params);
Copy link
Collaborator

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

Comment on lines +111 to +114
$parameters = array_merge([
'page' => 1,
'per_page' => 30,
], $params);
Copy link
Collaborator

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

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

2 participants