Skip to content

Conversation

@mfb2
Copy link
Contributor

@mfb2 mfb2 commented Jul 25, 2019

This commit adds the ability to list files and retrieve blobs from
Bitbucket.

This commit adds the ability to list files and retrieve blobs from
Bitbucket.
return c
}

func (c *Client) executeRaw(method string, urlStr string, text string) ([]byte, error) {
Copy link
Contributor Author

@mfb2 mfb2 Jul 25, 2019

Choose a reason for hiding this comment

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

When requesting file content from Bitbucket, a blob is returned; however, the existing execute and doRequest functions expected a JSON payload to be returned. As such, execute / doRequest in their prior state resulted in errors due to an attempt to parse the response. These new functions were introduced to get the raw payload back from the Bitbucket API and pass that along to the consumer.

Copy link
Owner

Choose a reason for hiding this comment

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

That's right, and I understood it. LGTM! 👍

@ktrysmt ktrysmt merged commit c69b646 into ktrysmt:master Jul 25, 2019
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