Skip to content

Commit 1dc51d6

Browse files
committed
cr comments: pr case and omitempty
1 parent 22e98de commit 1dc51d6

4 files changed

Lines changed: 14 additions & 14 deletions

File tree

github/github-accessors.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-accessors_test.go

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-stringify_test.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/repos.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ type Repository struct {
6969
AllowAutoMerge *bool `json:"allow_auto_merge,omitempty"`
7070
AllowForking *bool `json:"allow_forking,omitempty"`
7171
DeleteBranchOnMerge *bool `json:"delete_branch_on_merge,omitempty"`
72-
UseSquashPrTitleAsDefault *bool `json:"use_squash_pr_title_as_default"`
72+
UseSquashPRTitleAsDefault *bool `json:"use_squash_pr_title_as_default,omitempty"`
7373
Topics []string `json:"topics,omitempty"`
7474
Archived *bool `json:"archived,omitempty"`
7575
Disabled *bool `json:"disabled,omitempty"`
@@ -373,7 +373,7 @@ type createRepoRequest struct {
373373
AllowAutoMerge *bool `json:"allow_auto_merge,omitempty"`
374374
AllowForking *bool `json:"allow_forking,omitempty"`
375375
DeleteBranchOnMerge *bool `json:"delete_branch_on_merge,omitempty"`
376-
UseSquashPrTitleAsDefault *bool `json:"use_squash_pr_title_as_default"`
376+
UseSquashPRTitleAsDefault *bool `json:"use_squash_pr_title_as_default,omitempty"`
377377
}
378378

379379
// Create a new repository. If an organization is specified, the new
@@ -419,7 +419,7 @@ func (s *RepositoriesService) Create(ctx context.Context, org string, repo *Repo
419419
AllowAutoMerge: repo.AllowAutoMerge,
420420
AllowForking: repo.AllowForking,
421421
DeleteBranchOnMerge: repo.DeleteBranchOnMerge,
422-
UseSquashPrTitleAsDefault: repo.UseSquashPrTitleAsDefault,
422+
UseSquashPRTitleAsDefault: repo.UseSquashPRTitleAsDefault,
423423
}
424424

425425
req, err := s.client.NewRequest("POST", u, repoReq)

0 commit comments

Comments
 (0)