Default verification of commit messages
Adjusted the default setting for `gptReviewCommitMessages` to true,
enabling ChatGPT to check the alignment of commit messages with the
Change Set content by default.
Jira-Id: IT-103
Change-Id: I8f5247e10646cc3ac0073fcec92a0edbfe37bcef
Signed-off-by: Patrizio <patrizio.gelosi@amarulasolutions.com>
diff --git a/README.md b/README.md
index d18357e..01e6dc4 100644
--- a/README.md
+++ b/README.md
@@ -124,8 +124,8 @@
setting of 1.0.
- `gptReviewPatchSet`: Set to true by default. When switched to false, it disables the automatic review of Patch Sets as
they are created or updated.
-- `gptReviewCommitMessages`: The default value is false. When enabled by setting to true, this option also verifies if
- the commit message matches with the content of the review.
+- `gptReviewCommitMessages`: The default value is true. When enabled, this option also verifies if the commit message
+ matches with the content of the Change Set.
- `gptFullFileReview`: Enabled by default. Activating this option sends both unchanged lines and changes to ChatGPT for
review, offering additional context information. Deactivating it (set to false) results in only the changed lines
being submitted for review.
diff --git a/src/main/java/com/googlesource/gerrit/plugins/chatgpt/config/Configuration.java b/src/main/java/com/googlesource/gerrit/plugins/chatgpt/config/Configuration.java
index 1593e98..6ad6b92 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/chatgpt/config/Configuration.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/chatgpt/config/Configuration.java
@@ -20,7 +20,7 @@
public static final double DEFAULT_GPT_REVIEW_TEMPERATURE = 0.2;
public static final double DEFAULT_GPT_COMMENT_TEMPERATURE = 1.0;
private static final boolean DEFAULT_REVIEW_PATCH_SET = true;
- private static final boolean DEFAULT_REVIEW_COMMIT_MESSAGES = false;
+ private static final boolean DEFAULT_REVIEW_COMMIT_MESSAGES = true;
private static final boolean DEFAULT_FULL_FILE_REVIEW = true;
private static final boolean DEFAULT_STREAM_OUTPUT = false;
private static final boolean DEFAULT_GLOBAL_ENABLE = false;