Skip to content

Code review comment on pull request line number is wrong #35040

@lunny

Description

@lunny

Description

The line number should start from 1 but not. It's a blank space.

How to reproduce it?
1 Creating a file with only 1 line and push to one branch
2 Edit the file with deleting this line and add another 4 different lines and creating a pull request
3 Create a code review on the third line

Gitea Version

main

Can you reproduce the bug on the Gitea demo site?

https://demo.gitea.com/lunny/test-pr-review/pulls/1

Screenshots

Image

How are you running Gitea?

local development env

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