forgejo/models
Gergely Nagy 48b25be67a
[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)
(cherry picked from commit 70c5e2021d)
2024-01-28 11:05:33 +01:00
..
actions [GITEA] Add support for shields.io-based badges 2024-01-28 10:55:00 +01:00
activities
admin
asymkey
auth [GITEA] Fix session generation for database 2024-01-28 10:54:59 +01:00
avatars
db [GITEA] Log SQL queries when the database return error 2024-01-28 10:58:28 +01:00
dbfs
fixtures
forgejo/semver
forgejo_migrations [FEAT] Repository flags 2024-01-28 10:58:28 +01:00
git [GITEA] Rework when recently pushed branches are displayed 2024-01-28 11:05:33 +01:00
issues [GITEA] Avoid WHERE IN for comment migration query 2024-01-28 10:54:59 +01:00
migrations
organization
packages
perm [GITEA] Optionally allow anyone to edit Wikis 2024-01-28 10:54:59 +01:00
project
pull
repo [GITEA] Fix the topic search paging 2024-01-28 10:58:28 +01:00
secret
shared/types
system
unit
unittest
user [GITEA] add option for banning dots in usernames (squash) set in test 2024-01-28 10:55:00 +01:00
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go
org.go
org_team.go
org_team_test.go
org_test.go
repo.go
repo_test.go
repo_transfer.go
repo_transfer_test.go