-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Fix the bug when the last code comment deleted, a review comment type comment is still in the activity list of the pull request #35133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
… comment is still in the activity list of the pull request
last call @go-gitea/technical-oversight-committee |
} | ||
|
||
const json: Record<string, any> = await response.json(); | ||
if (json.errorMessage) throw new Error(json.errorMessage); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you break a framework design again.
Do you know where the value of "errorMessage" is from? How it should be used? Is it right to use it as an exception(error)?
if (json.deletedReviewCommentHashTag) { | ||
document.querySelector(`#${json.deletedReviewCommentHashTag}`)?.remove(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix #29715
Ensure that a review comment with no content is also deleted when its last associated code comment is removed.
Introduced API functionality for deleting code comments.