@juspay/yama 1.4.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # [1.5.0](https://github.com/juspay/yama/compare/v1.4.1...v1.5.0) (2025-09-19)
2
+
3
+ ### Features
4
+
5
+ - **summary:** Added config support for summary comment ([666ea5c](https://github.com/juspay/yama/commit/666ea5c78b93d2ef3df24a09f95581a4b8e75650))
6
+
1
7
  ## [1.4.1](https://github.com/juspay/yama/compare/v1.4.0...v1.4.1) (2025-09-18)
2
8
 
3
9
  ### Bug Fixes
@@ -465,8 +465,9 @@ Return ONLY valid JSON:
465
465
  });
466
466
  }
467
467
  }
468
- // Post summary comment (include failed comments info if any)
469
- if (uniqueViolations.length > 0) {
468
+ // Post summary comment (include failed comments info if any) - only if enabled in config
469
+ const shouldPostSummary = this.reviewConfig.postSummaryComment !== false; // Default to true if not specified
470
+ if (uniqueViolations.length > 0 && shouldPostSummary) {
470
471
  try {
471
472
  const summaryComment = this.generateSummaryComment(uniqueViolations, context, failedComments);
472
473
  await this.bitbucketProvider.addComment(context.identifier, summaryComment);
@@ -477,6 +478,9 @@ Return ONLY valid JSON:
477
478
  logger.debug(`❌ Failed to post summary comment: ${error.message}`);
478
479
  }
479
480
  }
481
+ else if (uniqueViolations.length > 0 && !shouldPostSummary) {
482
+ logger.debug("📝 Summary comment posting disabled in configuration");
483
+ }
480
484
  logger.success(`✅ Posted ${commentsPosted} comments successfully`);
481
485
  if (commentsFailed > 0) {
482
486
  logger.warn(`⚠️ Failed to post ${commentsFailed} inline comments`);
@@ -283,6 +283,7 @@ export interface CodeReviewConfig {
283
283
  systemPrompt?: string;
284
284
  analysisTemplate?: string;
285
285
  focusAreas?: string[];
286
+ postSummaryComment?: boolean;
286
287
  batchProcessing?: BatchProcessingConfig;
287
288
  multiInstance?: MultiInstanceConfig;
288
289
  semanticDeduplication?: SemanticDeduplicationConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/yama",
3
- "version": "1.4.1",
3
+ "version": "1.5.0",
4
4
  "description": "Enterprise-grade Pull Request automation toolkit with AI-powered code review and description enhancement",
5
5
  "keywords": [
6
6
  "pr",
@@ -29,6 +29,7 @@ features:
29
29
  # Code Review Configuration
30
30
  codeReview:
31
31
  enabled: true
32
+ postSummaryComment: true # Post summary comment at the end of review (default: true)
32
33
  severityLevels: ["CRITICAL", "MAJOR", "MINOR", "SUGGESTION"]
33
34
  categories:
34
35
  [