feat: provide feedback on re-review with no changes (fixes #103) #417
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



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
en-US.json).Fixes
Fixes #103
Based on the provided code changes, here is a description of the pull request:
Functional Changes
FetchChangedFilesStagedetects no files to review during a subsequent execution, it now triggers a "No changes detected" comment on the PR instead of just skipping silently.noChangesDetectedto theen-USdictionary to support the new status message.Implementation Details
FetchChangedFilesStageto injectCommentManagerServiceand callcreateNoChangesCommentwhen the file list is empty and a previous execution context exists.createNoChangesCommentmethod toCommentManagerService(and its contract), which handles fetching the translation, sanitizing the markdown (specifically for Bitbucket), and posting the comment.PullRequestFinishSummaryMarkdowninterface intranslations.tsto include the new message key.CommentManagerService.