Closed
Description
Description
Apparently, the I've viewed this file
implementation is half broken now.
It's still working without complaint because it's "dangling on a single thread that hasn't been destroyed yet":
I've put in a safe-guard that apparently is the only reason it's still working:
gitea/routers/web/repo/pull_review.go
Lines 277 to 279 in f5ce2ed
For some reason, the
head commit SHA
isn't set (anymore?), so reviews always get assigned to the newest commit which isn't necessarily the commit someone has reviewed (in case they had their tab open for long enough that other commits were pushed)I've traced this bug back to
gitea/templates/repo/diff/box.tmpl
Line 142 in f5ce2ed
as apparently
PullHeadCommitID
is empty/not present.However, I have no idea why this would be the case or if it has always been that way, and simply no one noticed.
(I doubt it, I remember testing the whole functionality, and I would have probably noticed it if the head-commit was always empty)
Gitea Version
1.20.0+dev-833-g040970c32
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?
try.gitea.io/ gitea.com and from compiled from source
Database
None