gitea icon indicating copy to clipboard operation
gitea copied to clipboard

Fix `View File` button link if branch deleted on pull request files pages

Open metiftikci opened this issue 1 year ago • 2 comments

as title

metiftikci avatar May 23 '24 22:05 metiftikci

this is also usefull when reviewing specific commit in pull request

github also not redirecting to branch

so if you do not want to change branch link behaviour, do you have any suggestion ? like should we check if branch deleted ?

metiftikci avatar May 24 '24 07:05 metiftikci

I mean if there are serveal commits on a pull request and when view files on one commit mode. The link should be that commit's id but not end commit id?

lunny avatar May 25 '24 05:05 lunny

This is how it works after change:

Show All Commit: last commit

image

View Range: last selected commit

image

View One Commit: selected commit

image

metiftikci avatar May 25 '24 07:05 metiftikci