Skip to content

fixed repository content listing (issue #33)#34

Closed
emocharnik wants to merge 5 commits intoBitbucketPHP:masterfrom
Scalr:master
Closed

fixed repository content listing (issue #33)#34
emocharnik wants to merge 5 commits intoBitbucketPHP:masterfrom
Scalr:master

Conversation

@emocharnik
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Member

@GrahamCampbell GrahamCampbell 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 the PR. I've left some feedback.

public function create(array $params = [])
{
$path = $this->buildSrcPath();
$path = $this->buildSrcPath(...$params);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hmm, I don't think this is quite what we want. What are the exact parameters? And how is createWithFiles effected?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

In createWithFiles method doesn't pass any parameters into buildSrcPath method.
Expected behaviour I described in the issue #33

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

If you want to list content of specific commit/branch or specific path you have to pass it as query parameter. Here is a request example
https://api.bitbucket.org/2.0/repositories/atlassian/bbql/src/eefd5ef/tests

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

sorry, mixed uo the right action method, moved to list

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That's not a query parameter? https://example.com/foo?bar=baz. bar is a query parameter in that example, bound to baz.

@GrahamCampbell
Copy link
Copy Markdown
Member

Oh, I see. You are calling the wrong method. You need to call show, not list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants