You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Repetitive reviews are created for the same diff when the workflow is triggered multiple times. This causes the PR to be flooded with comments. Would be good if only new diff comments are created.
The text was updated successfully, but these errors were encountered:
Fixes#37
Prevent repetitive reviews for the same diff when the workflow is triggered multiple times.
* **Fetch existing review comments**: Add a function to fetch existing review comments using `octokit.pulls.listReviewComments`.
* **Check for duplicate comments**: Modify the logic to check for existing comments before creating new ones. Compare new comments with existing ones to avoid duplicates.
* **Update review creation**: Update `octokit.pulls.createReview` call to only include new comments if there are any.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/parkerbxyz/suggest-changes/issues/37?shareId=XXXX-XXXX-XXXX-XXXX).
Repetitive reviews are created for the same diff when the workflow is triggered multiple times. This causes the PR to be flooded with comments. Would be good if only new diff comments are created.
The text was updated successfully, but these errors were encountered: