mirror of
https://github.com/gfleury/go-bitbucket-v1.git
synced 2025-04-04 17:00:12 -05:00
Adding GetBuildStatusesResponse
This commit is contained in:
parent
14d4b869a5
commit
dede03b917
@ -449,6 +449,13 @@ func GetSSHKeysResponse(r *APIResponse) ([]SSHKey, error) {
|
|||||||
return m, err
|
return m, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetBuildStatusResponse cast BuildStatus into structure
|
||||||
|
func GetBuildStatusesResponse(r *APIResponse) ([]BuildStatus, error) {
|
||||||
|
var m []BuildStatus
|
||||||
|
err := mapstructure.Decode(r.Values["values"], &m)
|
||||||
|
return m, err
|
||||||
|
}
|
||||||
|
|
||||||
// GetPullRequestResponse cast PullRequest into structure
|
// GetPullRequestResponse cast PullRequest into structure
|
||||||
func GetPullRequestResponse(r *APIResponse) (PullRequest, error) {
|
func GetPullRequestResponse(r *APIResponse) (PullRequest, error) {
|
||||||
var m PullRequest
|
var m PullRequest
|
||||||
|
Loading…
x
Reference in New Issue
Block a user