tag:github.com,2008:https://github.com/sparkcentral/go-bitbucket/releasesRelease notes from go-bitbucket2022-03-10T02:40:20Ztag:github.com,2008:Repository/468239126/v0.9.372022-03-10T02:40:20Zv0.9.37<p>Upon receiving unexpected status code, attempt to retrieve the body (…</p>marcinwyszynskitag:github.com,2008:Repository/468239126/v0.9.362022-01-28T03:07:24Zv0.9.36: Loop over paginated responses (#183)<p>Co-authored-by: Bill Rich <a href="mailto:bill.rich@trufflesec.com">bill.rich@trufflesec.com</a></p>bill-richtag:github.com,2008:Repository/468239126/v0.9.352022-01-25T09:57:38Zv0.9.35: Deprecate Repositories.ListForTeam (closes #181) (#182)<ul>
<li>
<p>Add tests for Repositories.GetFor(Account|Team)</p>
</li>
<li>
<p>Deprecate Repositories.GetForTeam (closes <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1110880262" data-permission-text="Title is private" data-url="https://github.com/ktrysmt/go-bitbucket/issues/181" data-hovercard-type="issue" data-hovercard-url="/ktrysmt/go-bitbucket/issues/181/hovercard" href="https://github.com/ktrysmt/go-bitbucket/issues/181">ktrysmt#181</a>)</p>
</li>
</ul>
<p>Make Repositories.GetForTeam an alias to Repositories.GetForAccount, and mark<br>
the former as deprecated, since they both do the same.</p>soulttag:github.com,2008:Repository/468239126/v0.9.342021-12-22T11:56:36Zv0.9.34<p>fix 202 in http valid response (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1086288892" data-permission-text="Title is private" data-url="https://github.com/ktrysmt/go-bitbucket/issues/178" data-hovercard-type="pull_request" data-hovercard-url="/ktrysmt/go-bitbucket/pull/178/hovercard" href="https://github.com/ktrysmt/go-bitbucket/pull/178">ktrysmt#178</a>)</p>snakeicetag:github.com,2008:Repository/468239126/v0.9.332021-12-13T15:00:07Zv0.9.33: Add GetPipelineConfig (closes GH-176) (#177)<ul>
<li>
<p>Add repository.GetPipelineConfig</p>
</li>
<li>
<p>Add tests for (Get|Update)PipelineConfig</p>
</li>
</ul>
<p>Co-authored-by: David Triendl <a href="mailto:david.triendl@nuvoair.com">david.triendl@nuvoair.com</a></p>soulttag:github.com,2008:Repository/468239126/v0.9.322021-12-03T05:08:19Zv0.9.32<p>Remove usage of os.Exit (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1069737238" data-permission-text="Title is private" data-url="https://github.com/ktrysmt/go-bitbucket/issues/175" data-hovercard-type="pull_request" data-hovercard-url="/ktrysmt/go-bitbucket/pull/175/hovercard" href="https://github.com/ktrysmt/go-bitbucket/pull/175">ktrysmt#175</a>)</p>yahavitag:github.com,2008:Repository/468239126/v0.9.312021-11-25T13:15:20Zv0.9.31<p>Fix bug with incorrect request payload for groups (Branch Restriction…</p>zahiartag:github.com,2008:Repository/468239126/v0.9.302021-11-17T14:23:17Zv0.9.30: Add `comment` field to Deploy Key response data structure (#169)<p>When you add a deploy key that contains a comment, the Bitbucket API splits out the comment and returns it in a separate <code>comment</code> field in the API.</p>
<p>For example,<br>
<code>key = "ssh-rsa AAAA...=== my@comment.example"</code></p>
<p>API response</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="key = "ssh-rsa AAAA...==="
comment = "my@comment.example""><pre class="notranslate"><code>key = "ssh-rsa AAAA...==="
comment = "my@comment.example"
</code></pre></div>zahiartag:github.com,2008:Repository/468239126/v0.9.292021-11-14T05:07:45Zv0.9.29: Fix issue with `fork_policy` not being updated (#168)<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" rel="nofollow">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>zahiartag:github.com,2008:Repository/468239126/v0.9.282021-10-17T01:51:05Zv0.9.28: Add repository.DeleteBranch (#164)<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" rel="nofollow">https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/refs/branches/%7Bname%7D#delete</a></p>chmouel