-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove ref name in PR commits page #25876
Remove ref name in PR commits page #25876
Conversation
Why not just remove it from template? |
It uses |
I don't think this is the right way to fix that problem. |
Checked all usages, it seems that we can remove it from template safely. |
routers/web/web.go
Outdated
@@ -1280,7 +1280,7 @@ func registerRoutes(m *web.Route) { | |||
m.Get("", repo.SetWhitespaceBehavior, repo.GetPullDiffStats, repo.ViewIssue) | |||
m.Get(".diff", repo.DownloadPullDiff) | |||
m.Get(".patch", repo.DownloadPullPatch) | |||
m.Get("/commits", context.RepoRef(), repo.SetWhitespaceBehavior, repo.GetPullDiffStats, repo.ViewPullCommits) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this really need to be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this can be removed here, but if you think this is not safe, we can keep it.
Since the commit table is shared by some pages, could you also have screenshots for other commits pages? |
* upstream/main: feat(API): update and delete secret for managing organization secrets (go-gitea#26660) Remove ref name in PR commits page (go-gitea#25876) Modify the content format of the Feishu webhook (go-gitea#25106) Handle "comment form combo editor init" more gracefully (go-gitea#26688) Prefer variables over subprocesses (go-gitea#26690) Fix archived unix time when archiving the label (go-gitea#26681) Make "link-action" backend code respond correct JSON content (go-gitea#26680) Fix doubled box-shadow in branch dropdown menu (go-gitea#26678) Refactor toast module (go-gitea#26677)
The branch name display here is based on the repo's default branch which is not correct.
For example, if I changed the default branch, the branch name here will also be changed:
you can confirm this in :
https://try.gitea.io/yp05327/testrepo/pulls/1/commits
I think we do not need to display branch name here, as we already have the branch info above.