forgejo/routers/web/repo
Gergely Nagy 70c5e2021d
[GITEA] Rework when recently pushed branches are displayed
With this change, the "You pushed on branch xyz" banner will be
displayed when either the viewed repository or its base repo (if the
current one's a fork) has pull requests enabled. Previously it only
displayed if the viewed repo had PRs enabled.

Furthermore, if the viewed repository is an original repository that the
viewing user has a fork of, if the forked repository has recently pushed
branches, then the banner will appear for the original repository too.
In this case, the notification will include branches from the viewing
user's fork, and branches they pushed to the base repo, too.

Refs: https://codeberg.org/forgejo/forgejo/pulls/2195

Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
(cherry picked from commit a29f10661d)
2024-01-22 18:13:43 +00:00
..
actions [GITEA] allow viewing the latest Action Run on the web 2024-01-22 18:13:41 +00:00
badges [GITEA] Add support for shields.io-based badges 2024-01-22 18:13:42 +00:00
flags [FEAT] Repository flags 2024-01-22 18:13:42 +00:00
setting [GITEA] Optionally allow anyone to edit Wikis 2024-01-22 18:13:41 +00:00
activity.go
attachment.go
blame.go
branch.go
cherry_pick.go
commit.go [GITEA] Detect file rename and show in history 2024-01-22 18:13:40 +00:00
compare.go
download.go
editor.go [GITEA] Allow user to select email for file operations in Web UI 2024-01-22 18:13:41 +00:00
editor_test.go
find.go
githttp.go
githttp_test.go
helper.go
helper_test.go
issue.go [GITEA] Fix /issues/search endpoint 2024-01-22 18:13:42 +00:00
issue_content_history.go [GITEA] Fix panic in canSoftDeleteContentHistory 2024-01-22 18:13:42 +00:00
issue_dependency.go
issue_label.go
issue_label_test.go
issue_lock.go
issue_pin.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go Revert adding htmx until we finaly decide to add it (#28879) 2024-01-21 21:42:35 +08:00
main_test.go
middlewares.go
migrate.go
milestone.go
packages.go
patch.go
projects.go
projects_test.go
pull.go [GITEA] pulls: "Edit File" button in "Files Changed" tab 2024-01-22 18:13:42 +00:00
pull_review.go
release.go [GITEA] Allow release creation on commit 2024-01-22 17:59:54 +00:00
release_test.go
render.go
repo.go
search.go
topic.go
treelist.go
view.go [GITEA] Rework when recently pushed branches are displayed 2024-01-22 18:13:43 +00:00
view_test.go
wiki.go
wiki_test.go