GetPullRequestDiff: add PullRequestDiffOptions param #542

Merged
6543 merged 9 commits from noerw/go-sdk:add-binary-diff-opt into master 2022-01-13 17:30:39 +00:00
Showing only changes of commit 1653c52cb6 - Show all commits

View File

@ -270,6 +270,7 @@ type PullRequestDiffOptions struct {
Binary bool
6543 marked this conversation as resolved
Review

since this is optional and upstream default is true - we should change it to *bool type

since this is optional and upstream default is true - we should change it to `*bool` type
Review

No, upstream default is false.

No, upstream default is false.
}
// QueryEncode converts the options to a query string
func (o PullRequestDiffOptions) QueryEncode() string {
query := make(url.Values)
query.Add("binary", fmt.Sprintf("%v", o.Binary))