Skip to content

Commit

Permalink
Merge pull request #139 from SilverdewBaker/huan/property-response-value
Browse files Browse the repository at this point in the history
Fix response to return valid response body in GetPullRequestProperties
  • Loading branch information
nechvatalp authored Sep 14, 2023
2 parents 8dbf8bf + c508c33 commit c9e5fa0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion azuredevops/git/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3873,7 +3873,7 @@ func (client *ClientImpl) GetPullRequestProperties(ctx context.Context, args Get
}

var responseValue interface{}
err = client.Client.UnmarshalBody(resp, responseValue)
err = client.Client.UnmarshalBody(resp, &responseValue)
return responseValue, err
}

Expand Down
2 changes: 1 addition & 1 deletion azuredevops/v6/git/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3933,7 +3933,7 @@ func (client *ClientImpl) GetPullRequestProperties(ctx context.Context, args Get
}

var responseValue interface{}
err = client.Client.UnmarshalBody(resp, responseValue)
err = client.Client.UnmarshalBody(resp, &responseValue)
return responseValue, err
}

Expand Down
2 changes: 1 addition & 1 deletion azuredevops/v7/git/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3973,7 +3973,7 @@ func (client *ClientImpl) GetPullRequestProperties(ctx context.Context, args Get
}

var responseValue interface{}
err = client.Client.UnmarshalBody(resp, responseValue)
err = client.Client.UnmarshalBody(resp, &responseValue)
return responseValue, err
}

Expand Down

0 comments on commit c9e5fa0

Please sign in to comment.