Skip to content

Code comments are not invalidated if the line they reference is removed #10686

Closed
@CirnoT

Description

@CirnoT

Description

The code comment is not invalidated (marked as outdated) if line it is referencing is removed by future commit. Example can be seen on https://try.gitea.io/CirnoT/checkInvalidation/pulls/1/commits. The comment was made against lines that were removed in a25e77b1d3 however it is not marked as outdated and attempting to comment on it will raise HTTP 500:

[E] CreateCodeComment: LineBlame ... exit status 128 - fatal: file ... has only ... lines

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions