Skip to content

Commit fd5b124

Browse files
committed
added test case
1 parent 72a87ba commit fd5b124

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

github/rules_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,17 @@ func TestRepositoryRule(t *testing.T) {
937937
},
938938
`{"type":"code_scanning","parameters":{"code_scanning_tools":[{"alerts_threshold":"all","security_alerts_threshold":"all","tool":"test"},{"alerts_threshold":"none","security_alerts_threshold":"none","tool":"test"}]}}`,
939939
},
940+
{
941+
"copilot_code_review",
942+
&RepositoryRule{
943+
Type: RulesetRuleTypeCopilotCodeReview,
944+
Parameters: &CopilotCodeReviewRuleParameters{
945+
ReviewNewPushes: true,
946+
ReviewDraftPullRequests: false,
947+
},
948+
},
949+
`{"type":"copilot_code_review","parameters":{"review_new_pushes":true,"review_draft_pull_requests":false}}`,
950+
},
940951
{
941952
"repository_create",
942953
&RepositoryRule{Type: RulesetRuleTypeRepositoryCreate, Parameters: nil},

0 commit comments

Comments
 (0)