Skip to content

Commit 516752a

Browse files
committed
fix: PreventSelfReview on CreateUpdateEnv struct
1 parent eb5ae07 commit 516752a

3 files changed

Lines changed: 19 additions & 19 deletions

File tree

github/github-accessors.go

Lines changed: 8 additions & 8 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: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/repos_environments.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ type Environment struct {
1717
Owner *string `json:"owner,omitempty"`
1818
Repo *string `json:"repo,omitempty"`
1919
EnvironmentName *string `json:"environment_name,omitempty"`
20-
PreventSelfReview *bool `json:"prevent_self_review,omitempty"`
2120
WaitTimer *int `json:"wait_timer,omitempty"`
2221
Reviewers []*EnvReviewers `json:"reviewers,omitempty"`
2322
DeploymentBranchPolicy *BranchPolicy `json:"deployment_branch_policy,omitempty"`
@@ -175,6 +174,7 @@ type CreateUpdateEnvironment struct {
175174
Reviewers []*EnvReviewers `json:"reviewers"`
176175
CanAdminsBypass *bool `json:"can_admins_bypass"`
177176
DeploymentBranchPolicy *BranchPolicy `json:"deployment_branch_policy"`
177+
PreventSelfReview *bool `json:"prevent_self_review,omitempty"`
178178
}
179179

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

0 commit comments

Comments
 (0)