File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,6 +74,11 @@ func TestGithubRepositoryRulesets(t *testing.T) {
7474 require_last_push_approval = true
7575 }
7676
77+ copilot_code_review {
78+ review_new_pushes = true
79+ review_draft_pull_requests = false
80+ }
81+
7782 required_status_checks {
7883
7984 required_check {
@@ -123,6 +128,16 @@ func TestGithubRepositoryRulesets(t *testing.T) {
123128 "rules.0.required_code_scanning.0.required_code_scanning_tool.0.tool" ,
124129 "CodeQL" ,
125130 ),
131+ resource .TestCheckResourceAttr (
132+ "github_repository_ruleset.test" ,
133+ "rules.0.copilot_code_review.0.review_new_pushes" ,
134+ "true" ,
135+ ),
136+ resource .TestCheckResourceAttr (
137+ "github_repository_ruleset.test" ,
138+ "rules.0.copilot_code_review.0.review_draft_pull_requests" ,
139+ "false" ,
140+ ),
126141 )
127142
128143 testCase := func (t * testing.T , mode string ) {
You can’t perform that action at this time.
0 commit comments