drone / go-bitbucket

[DEPRECATED] Go bindings for the Bitbucket API
MIT License
28 stars 17 forks source link

Fix updating of deploy-keys #1

Closed asabil closed 10 years ago

asabil commented 10 years ago

Bitbucket doesn't provide any API to update keys, so we need to delete the existing key and create a new one.

bradrydzewski commented 10 years ago

we actually have a function for this already called CreateUpdate https://github.com/drone/go-bitbucket/blob/master/bitbucket/keys.go#L98

asabil commented 10 years ago

Except that it doesn't work. It depends on Update which itself is broken