tag:github.com,2008:https://github.com/sparkcentral/go-bitbucket/releases Tags from go-bitbucket 2022-03-10T02:40:20Z tag:github.com,2008:Repository/468239126/v0.9.37 2022-03-10T02:40:20Z v0.9.37 <p>Upon receiving unexpected status code, attempt to retrieve the body (<a class="issue-link js-issue-link" href="https://github.com/ktrysmt/go-bitbucket/pull/185">k…</a></p> <p><a class="issue-link js-issue-link" href="https://github.com/ktrysmt/go-bitbucket/pull/185">…trysmt#185</a>)</p> <p>* Upon receiving unexpected status code, attempt to retrieve the body</p> <p>* Better error for when the response body cannot be read</p> <p>* Add a helper to retrieve error with body</p> marcinwyszynski tag:github.com,2008:Repository/468239126/v0.9.36 2022-01-28T03:07:24Z v0.9.36: Loop over paginated responses (#183) <p>Loop over paginated responses (<a class="issue-link js-issue-link" href="https://github.com/ktrysmt/go-bitbucket/pull/183">ktrysmt#183</a>)</p> <p>Co-authored-by: Bill Rich &lt;bill.rich@trufflesec.com&gt;</p> bill-rich tag:github.com,2008:Repository/468239126/v0.9.35 2022-01-25T09:57:38Z v0.9.35: Deprecate Repositories.ListForTeam (closes #181) (#182) <p>Deprecate Repositories.ListForTeam (<span class="issue-keyword tooltipped tooltipped-se">closes</span> <a class="issue-link js-issue-link" href="https://github.com/ktrysmt/go-bitbucket/issues/181">ktrysmt#181</a>) (<a class="issue-link js-issue-link" href="https://github.com/ktrysmt/go-bitbucket/pull/182">ktrysmt#182</a>)</p> <p>* Add tests for Repositories.GetFor(Account|Team)</p> <p>* Deprecate Repositories.GetForTeam (<span class="issue-keyword tooltipped tooltipped-se">closes</span> <a class="issue-link js-issue-link" href="https://github.com/ktrysmt/go-bitbucket/issues/181">ktrysmt#181</a>)</p> <p>Make Repositories.GetForTeam an alias to Repositories.GetForAccount, and mark <br />the former as deprecated, since they both do the same.</p> soult tag:github.com,2008:Repository/468239126/v0.9.34 2021-12-22T11:56:36Z v0.9.34 snakeice tag:github.com,2008:Repository/468239126/v0.9.33 2021-12-13T15:00:07Z v0.9.33: Add GetPipelineConfig (closes GH-176) (#177) <p>Add GetPipelineConfig (<span class="issue-keyword tooltipped tooltipped-se">closes</span> <a class="issue-link js-issue-link" href="https://github.com/ktrysmt/go-bitbucket/issues/176">ktrysmtGH-176</a>) (<a class="issue-link js-issue-link" href="https://github.com/ktrysmt/go-bitbucket/pull/177">ktrysmt#177</a>)</p> <p>* Add repository.GetPipelineConfig</p> <p>* Add tests for (Get|Update)PipelineConfig</p> <p>Co-authored-by: David Triendl &lt;david.triendl@nuvoair.com&gt;</p> soult tag:github.com,2008:Repository/468239126/v0.9.32 2021-12-03T05:08:19Z v0.9.32 yahavi tag:github.com,2008:Repository/468239126/v0.9.31 2021-11-25T13:15:20Z v0.9.31 <p>Fix bug with incorrect request payload for groups (Branch Restriction…</p> <p>…s) (<a class="issue-link js-issue-link" href="https://github.com/ktrysmt/go-bitbucket/pull/172">ktrysmt#172</a>)</p> <p>The API expects the group slug to be passed in, without this, API returns a HTTP 400 error. Also, fixed `branchRestrictionsBodyGroup` struct, specifically the inner `links` struct which accidentally included `full_slug` &amp; `slug` - both of which should be at the root level.</p> <p>Previously a request with this payload <br />``` <br />{"kind":"push","pattern":"develop","links":{"self":{"href":""}},"value":null,"id":0,"users":null,"groups":[{"name":"za-test"}]} <br />```</p> <p>Would return <br />``` <br />{"type":"error","error":{"message":"malformed groups"}} <br />```</p> <p>With the fixed payload, we now get a success response. <br />``` <br />{"kind":"push","pattern":"develop","links":{"self":{"href":""}},"value":null,"id":0,"users":null,"groups":[{"slug":"za-test"}]} <br />```</p> zahiar tag:github.com,2008:Repository/468239126/v0.9.30 2021-11-17T14:23:17Z v0.9.30: Add `comment` field to Deploy Key response data structure (#169) <p>Add `comment` field to Deploy Key response data structure (<a class="issue-link js-issue-link" href="https://github.com/ktrysmt/go-bitbucket/pull/169">ktrysmt#169</a>)</p> <p>When you add a deploy key that contains a comment, the Bitbucket API splits out the comment and returns it in a separate `comment` field in the API.</p> <p>For example, <br />`key = "ssh-rsa AAAA...=== my@comment.example"`</p> <p>API response <br />``` <br />key = "ssh-rsa AAAA...===" <br />comment = "my@comment.example" <br />```</p> zahiar tag:github.com,2008:Repository/468239126/v0.9.29 2021-11-14T05:07:45Z v0.9.29: Fix issue with `fork_policy` not being updated (#168) <p>Fix issue with `fork_policy` not being updated (<a class="issue-link js-issue-link" href="https://github.com/ktrysmt/go-bitbucket/pull/168">ktrysmt#168</a>)</p> <p>Due to an undocumented quirk in Bitbucket's API, when updating a repository, you have to pass in two additional fields which are then used together, to match the string representation of the fork_policy (which the API returns - the other two fields are not returned).</p> <p>Here is a link to an oustanding bug ticket filed with Atlassian: <a href="https://jira.atlassian.com/browse/BCLOUD-13093">https://jira.atlassian.com/browse/BCLOUD-13093</a></p> <p>Also added tests to cover the behaviour above, as well as an additional one for creating a repository, to ensure this functionality was not broken with the changes introduced.</p> zahiar tag:github.com,2008:Repository/468239126/v0.9.28 2021-10-17T01:51:05Z v0.9.28: Add repository.DeleteBranch (#164) <p>Add repository.DeleteBranch (<a class="issue-link js-issue-link" href="https://github.com/ktrysmt/go-bitbucket/pull/164">ktrysmt#164</a>)</p> <p>Implementing Rest Call :</p> <p><a href="https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/refs/branches/%7Bname%7D#delete">https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/refs/branches/%7Bname%7D#delete</a></p> chmouel