Skip to content

Commit

Permalink
fix: PreventSelfReview on CreateUpdateEnv struct
Browse files Browse the repository at this point in the history
  • Loading branch information
brekelj1 committed Oct 9, 2023
1 parent eb5ae07 commit 516752a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
16 changes: 8 additions & 8 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions github/github-accessors_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion github/repos_environments.go
Expand Up @@ -17,7 +17,6 @@ type Environment struct {
Owner *string `json:"owner,omitempty"`
Repo *string `json:"repo,omitempty"`
EnvironmentName *string `json:"environment_name,omitempty"`
PreventSelfReview *bool `json:"prevent_self_review,omitempty"`
WaitTimer *int `json:"wait_timer,omitempty"`
Reviewers []*EnvReviewers `json:"reviewers,omitempty"`
DeploymentBranchPolicy *BranchPolicy `json:"deployment_branch_policy,omitempty"`
Expand Down Expand Up @@ -175,6 +174,7 @@ type CreateUpdateEnvironment struct {
Reviewers []*EnvReviewers `json:"reviewers"`
CanAdminsBypass *bool `json:"can_admins_bypass"`
DeploymentBranchPolicy *BranchPolicy `json:"deployment_branch_policy"`
PreventSelfReview *bool `json:"prevent_self_review,omitempty"`
}

// createUpdateEnvironmentNoEnterprise represents the fields accepted for Pro/Teams private repos.
Expand Down

0 comments on commit 516752a

Please sign in to comment.