Skip to content

Conversation

@soulcloude00
Copy link

@soulcloude00 soulcloude00 commented Dec 2, 2025

Description

This PR addresses issue #103 by adding informative feedback when a user requests a re-review (@kody start-review) but no new changes are detected since the last review.

Previously, the pipeline would skip silently in this scenario. Now, Kody will post a comment explicitly informing the user that no new changes were found.

Changes

  • Modified FetchChangedFilesStage to detect when no files are changed during a re-review.
  • Implemented createNoChangesComment in CommentManagerService to post the feedback message.
  • Added the "no changes detected" message to the translation files (en-US.json).

Fixes

Fixes #103


Based on the provided code changes, here is a description of the pull request:

Functional Changes

  • Re-review Feedback: Implemented a new feature to provide feedback when a code review is triggered on a Pull Request (specifically during re-reviews) but no changed files are detected.
  • New Comment Notification: When the FetchChangedFilesStage detects no files to review during a subsequent execution, it now triggers a "No changes detected" comment on the PR instead of just skipping silently.
  • Localization: Added a new translation key noChangesDetected to the en-US dictionary to support the new status message.

Implementation Details

  • Pipeline Update: Modified FetchChangedFilesStage to inject CommentManagerService and call createNoChangesComment when the file list is empty and a previous execution context exists.
  • Service Extension: Added the createNoChangesComment method to CommentManagerService (and its contract), which handles fetching the translation, sanitizing the markdown (specifically for Bitbucket), and posting the comment.
  • Type Definitions: Updated the PullRequestFinishSummaryMarkdown interface in translations.ts to include the new message key.
  • Code Cleanup: Applied minor formatting and indentation fixes in CommentManagerService.

@kody-ai
Copy link

kody-ai bot commented Dec 2, 2025

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the `@kody start-review` command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug
Performance
Security
Breaking Changes
Cross File
Kody Rules
Code Style
Refactoring
Error Handling
Maintainability
Potential Issues
Documentation And Comments
Performance And Optimization

Access your configuration settings here.

@sartorijr92
Copy link
Contributor

Your trial has ended! 😢

To keep getting reviews, activate your plan here.

Got questions about plans or want to see if we can extend your trial? Talk to our founders here.😎

1 similar comment
@sartorijr92
Copy link
Contributor

Your trial has ended! 😢

To keep getting reviews, activate your plan here.

Got questions about plans or want to see if we can extend your trial? Talk to our founders here.😎

@sonarqubecloud
Copy link

@soulcloude00
Copy link
Author

@malinosqui

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide feedback when no new changes since last review

2 participants