Skip to content

Commit c9e5fa0

Browse files
authored
Merge pull request microsoft#139 from SilverdewBaker/huan/property-response-value
Fix response to return valid response body in GetPullRequestProperties
2 parents 8dbf8bf + c508c33 commit c9e5fa0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

azuredevops/git/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3873,7 +3873,7 @@ func (client *ClientImpl) GetPullRequestProperties(ctx context.Context, args Get
38733873
}
38743874

38753875
var responseValue interface{}
3876-
err = client.Client.UnmarshalBody(resp, responseValue)
3876+
err = client.Client.UnmarshalBody(resp, &responseValue)
38773877
return responseValue, err
38783878
}
38793879

azuredevops/v6/git/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3933,7 +3933,7 @@ func (client *ClientImpl) GetPullRequestProperties(ctx context.Context, args Get
39333933
}
39343934

39353935
var responseValue interface{}
3936-
err = client.Client.UnmarshalBody(resp, responseValue)
3936+
err = client.Client.UnmarshalBody(resp, &responseValue)
39373937
return responseValue, err
39383938
}
39393939

azuredevops/v7/git/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3973,7 +3973,7 @@ func (client *ClientImpl) GetPullRequestProperties(ctx context.Context, args Get
39733973
}
39743974

39753975
var responseValue interface{}
3976-
err = client.Client.UnmarshalBody(resp, responseValue)
3976+
err = client.Client.UnmarshalBody(resp, &responseValue)
39773977
return responseValue, err
39783978
}
39793979

0 commit comments

Comments
 (0)