@@ -426,9 +426,16 @@ func (b *BranchRestrictionsOptions) WithContext(ctx context.Context) *BranchRest
426
426
}
427
427
428
428
type DiffOptions struct {
429
- Owner string `json:"owner"`
430
- RepoSlug string `json:"repo_slug"`
431
- Spec string `json:"spec"`
429
+ Owner string `json:"owner"`
430
+ RepoSlug string `json:"repo_slug"`
431
+ Spec string `json:"spec"`
432
+ Context int `json:"context"`
433
+ Path string `json:"path"`
434
+ FromPullRequestID int `json:"from_pullrequest_id"`
435
+ Whitespace bool `json:"ignore_whitespace"`
436
+ Binary bool `json:"binary"`
437
+ Renames bool `json:"renames"`
438
+ Topic bool `json:"topic"`
432
439
}
433
440
434
441
type DiffStatOptions struct {
@@ -437,14 +444,15 @@ type DiffStatOptions struct {
437
444
Spec string `json:"spec"`
438
445
FromPullRequestID int `json:"from_pullrequest_id"`
439
446
Whitespace bool `json:"ignore_whitespace"`
440
- Merge bool `json:"merge"`
441
- Path string `json:"path"`
442
- Renames bool `json:"renames"`
443
- Topic bool `json:"topic"`
444
- PageNum int `json:"page"`
445
- Pagelen int `json:"pagelen"`
446
- MaxDepth int `json:"max_depth"`
447
- Fields []string
447
+ // Deprecated: Merge is deprecated use Topic
448
+ Merge bool `json:"merge"`
449
+ Path string `json:"path"`
450
+ Renames bool `json:"renames"`
451
+ Topic bool `json:"topic"`
452
+ PageNum int `json:"page"`
453
+ Pagelen int `json:"pagelen"`
454
+ MaxDepth int `json:"max_depth"`
455
+ Fields []string
448
456
}
449
457
450
458
type WebhooksOptions struct {
0 commit comments