mirror of
https://github.com/gfleury/go-bitbucket-v1.git
synced 2025-05-20 20:24:34 -05:00
Fixing GetPullRequestResponse
This commit is contained in:
parent
b39a1467fe
commit
3e6935e03f
@ -302,7 +302,7 @@ func GetSSHKeysResponse(r *APIResponse) ([]SSHKey, error) {
|
|||||||
// 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
|
||||||
err := mapstructure.Decode(r.Values["values"], &m)
|
err := mapstructure.Decode(r.Values, &m)
|
||||||
return m, err
|
return m, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user