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

Closed
opened 2025-11-02 11:21:44 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @lunny on GitHub (Jul 10, 2025).

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

Originally created by @lunny on GitHub (Jul 10, 2025). ### 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 <img width="1022" height="293" alt="Image" src="https://github.com/user-attachments/assets/3c11090d-d281-42b5-a22e-6a91c7ff724f" /> ### How are you running Gitea? local development env
GiteaMirror added the type/bug label 2025-11-02 11:21:44 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14741