Skip to content

Inline comments show up on wrong line if force push occurs before submitting comment #21113

@Be-ing

Description

@Be-ing

Description

I was reviewing a pull request and posted a comment inline in the code. Between the time I opened the page for the pull request and submitted the comment, the PR author force pushed. The comment was posted on the wrong line, which led to a confused response. It would have been helpful if Gitea warned me that the code had changed before letting me submit the comment.

Gitea Version

1.16

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

https://codeberg.org

Database

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions