GitHub - Feature delete outdated comments#467
Open
datpmt wants to merge 1 commit intoprontolabs:masterfrom
Open
GitHub - Feature delete outdated comments#467datpmt wants to merge 1 commit intoprontolabs:masterfrom
datpmt wants to merge 1 commit intoprontolabs:masterfrom
Conversation
datpmt
commented
Dec 12, 2024
- Remove outdated comments that were previously left on the code if the user has pushed new commits addressing those comments.
- Ensure that all resolved comments are cleared to keep the review process clean and up-to-date.
ashkulz
requested changes
Jan 11, 2025
Member
ashkulz
left a comment
There was a problem hiding this comment.
Sorry for the late feedback, I'm not sure this is a good idea as-is.
- A lot of workflows would prefer that the PR comment is marked as resolved, rather than be deleted altogether. It might be acceptable if this is disabled by default, but you can opt-in via some configuration option.
- Sometimes there is conversation on a PR comment from
prontoand I'm not sure what the API does -- does it just delete the thread or just the comment? Either way, it's not going to look good even if the thread is retained -- would like screenshots of how both scenarios look like. - It's implemented just for GitHub PRs, but I'm not sure why it couldn't extent to Gitlab MRs which also have the same logic.
Member
|
See this code for something which should work for resolving the comments, since there's no direct API for this. |
|
I would say the default should be resolving rather than deleting if possible with a setting to delete as an option. If there was back on forth on a pronto comment thread and it just vanished due to updating a style rule/changing code that artifact of discussion would be lost. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.