]> source.dussan.org Git - gitea.git/commit
Newly pushed branches hints on repository home page (#25715)
authorLunny Xiao <xiaolunwen@gmail.com>
Sat, 8 Jul 2023 03:19:00 +0000 (11:19 +0800)
committerGitHub <noreply@github.com>
Sat, 8 Jul 2023 03:19:00 +0000 (05:19 +0200)
commit6375419468edc95fdfac94aac3b0e10b23743557
treee104617051a314fa33e62ebcf7c149d0d0434b82
parente0a780d75b79233ceb97116b9ae8563a9942aff9
Newly pushed branches hints on repository home page (#25715)

This PR will display a pull request creation hint on the repository home
page when there are newly created branches with no pull request. Only
the recent 6 hours and 2 updated branches will be displayed.

Inspired by #14003
Replace #14003
Resolves #311
Resolves #13196
Resolves #23743

co-authored by @kolaente
models/git/branch.go
models/repo/repo.go
options/locale/locale_en-US.ini
routers/web/repo/view.go
templates/repo/code/recently_pushed_new_branches.tmpl [new file with mode: 0644]
templates/repo/home.tmpl
tests/integration/repo_branch_test.go