Skip to content

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.

2 participants