]> source.dussan.org Git - gitea.git/commit
Fix correct diff view for PR review comments in PR view page (#14002)
authorJimmy Praet <jimmy.praet@telenet.be>
Wed, 16 Dec 2020 09:54:58 +0000 (10:54 +0100)
committerGitHub <noreply@github.com>
Wed, 16 Dec 2020 09:54:58 +0000 (11:54 +0200)
commite7a77d32cc96692f5dbbd3ed1cfa7ff4a9ba026b
treede0ec4792f813f34db8d2352aa61b609016570fc
parent88b585c2e08d43af705cec178c1c7771f5d66e70
Fix correct diff view for PR review comments in PR view page (#14002)

Fixes #13683.

The diff snippet that provides context for a code review comment on the pull request timeline page used to be calculated based on the headCommitID. But in 1.13, with PR #13448, this changed to the commitID from the blame for the commented line, which seems to cause these incorrect review comment diff snippets.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
services/pull/review.go