Skip to content

Commit 17c1392

Browse files
authored
Merge pull request #115 from kusaridev/pxp928-disable-code-review
add cofig value FullCodeReviewEnabled
2 parents 8e67a61 + 81ecc5f commit 17c1392

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

api/configuration/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ type Config struct {
66
StatusCheckName string `yaml:"status_check_name"` // Name of the status check (default: "Kusari Inspector")
77
PostCommentOnFailure bool `yaml:"post_comment_on_failure"` // Also post comment when status check fails
88
PostCommentOnSuccess bool `yaml:"post_comment_on_success"` // Also post comment when status check succeeds
9+
FullCodeReviewEnabled bool `yaml:"full_code_review_enabled"` // Full code review via the LLM (enabled by default)
910
}

pkg/configuration/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ var DefaultConfig = configuration.Config{
2020
StatusCheckName: "Kusari Inspector",
2121
PostCommentOnFailure: true,
2222
PostCommentOnSuccess: false,
23+
FullCodeReviewEnabled: true,
2324
}
2425

2526
func GenerateConfig(forceWrite bool) error {

pkg/configuration/testdata/config-changed.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ container_version_pinning_check_enabled: true
33
status_check_name: Kusari Inspectormatic
44
post_comment_on_failure: true
55
post_comment_on_success: false
6+
full_code_review_enabled: false

pkg/configuration/testdata/config-default.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ container_version_pinning_check_enabled: true
33
status_check_name: Kusari Inspector
44
post_comment_on_failure: true
55
post_comment_on_success: false
6+
full_code_review_enabled: true

0 commit comments

Comments
 (0)