You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/models/fixtures
yp05327 daf2a4c047
Fix wrong display of recently pushed notification (#25812)
There's a bug in #25715: 
If user pushed a commit into another repo with same branch name, the
no-related repo will display the recently pushed notification
incorrectly.
It is simple to fix this, we should match the repo id in the sql query.


![image](https://github.com/go-gitea/gitea/assets/18380374/9411a926-16f1-419e-a1b5-e953af38bab1)
The latest commit is 2 weeks ago.

![image](https://github.com/go-gitea/gitea/assets/18380374/52f9ab22-4999-43ac-a86f-6d36fb1e0411)

The notification comes from another repo with same branch name:

![image](https://github.com/go-gitea/gitea/assets/18380374/a26bc335-8e5b-4b9c-a965-c3dc3fa6f252)


After:
In forked repo:

![image](https://github.com/go-gitea/gitea/assets/18380374/ce6ffc35-deb7-4be7-8b09-184207392f32)
New PR Link will redirect to the original repo:

![image](https://github.com/go-gitea/gitea/assets/18380374/7b98e76f-0c75-494c-9462-80cf9f98e786)
In the original repo:

![image](https://github.com/go-gitea/gitea/assets/18380374/5f6a821b-e51a-4bbd-9980-d9eb94a3c847)
New PR Link:

![image](https://github.com/go-gitea/gitea/assets/18380374/1ce8c879-9f11-4312-8c32-695d7d9af0df)

In the same repo:

![image](https://github.com/go-gitea/gitea/assets/18380374/64b56073-4d0e-40c4-b8a0-80be7a775f69)
New PR Link:

![image](https://github.com/go-gitea/gitea/assets/18380374/96e1b6a3-fb98-40ee-b2ee-648039fb0dcf)

08/15 Update:
Follow #26257, added permission check and logic fix mentioned in
https://github.com/go-gitea/gitea/pull/26257#discussion_r1294085203


2024/04/25 Update:
Fix #30611

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
9 months ago
..
access.yml Add user blocking (#29028) 11 months ago
access_token.yml Fix more yaml lint errors (#27284) 1 year ago
action.yml Support "." char as user name for User/Orgs in RSS/ATOM/GPG/KEYS path ... (#23874) 2 years ago
action_run.yml Actions Artifacts v4 backend (#28965) 11 months ago
action_run_job.yml Actions Artifacts v4 backend (#28965) 11 months ago
action_runner_token.yml Add unit tests for action runner token (#27670) 1 year ago
action_task.yml Actions Artifacts v4 backend (#28965) 11 months ago
attachment.yml Allow get release download files and lfs files with oauth2 token format (#26430) 1 year ago
branch.yml Fix wrong display of recently pushed notification (#25812) 9 months ago
collaboration.yml Add user blocking (#29028) 11 months ago
comment.yml Fix template error when comment review doesn't exist (#29888) 11 months ago
commit_status.yml
commit_status_index.yml Fix more yaml lint errors (#27284) 1 year ago
deploy_key.yml
email_address.yml Allow non-admin users to delete review requests (#29057) 11 months ago
external_login_user.yml add test coverage for original author conversion during migrations (#18506) 3 years ago
follow.yml Fix user visible check (#21210) 2 years ago
gpg_key.yml Fix verifyCommits error when push a new branch (#26664) 1 year ago
gpg_key_import.yml
hook_task.yml Store webhook event in database (#29145) 11 months ago
issue.yml Allow non-admin users to delete review requests (#29057) 11 months ago
issue_assignees.yml Add user blocking (#29028) 11 months ago
issue_index.yml Fix wrong display of recently pushed notification (#25812) 9 months ago
issue_label.yml
issue_user.yml
issue_watch.yml
label.yml Allow to archive labels (#26478) 1 year ago
lfs_meta_object.yml Test views of LFS files (#22196) 2 years ago
login_source.yml
milestone.yml Add some api integration tests (#18872) 2 years ago
mirror.yml Fix bug of branches API with tests (#25578) 2 years ago
notice.yml
notification.yml
oauth2_application.yml Record OAuth client type at registration (#21316) 2 years ago
oauth2_authorization_code.yml Record OAuth client type at registration (#21316) 2 years ago
oauth2_grant.yml Record OAuth client type at registration (#21316) 2 years ago
org_user.yml Fix wrong display of recently pushed notification (#25812) 9 months ago
project.yml Add default board to new projects, remove uncategorized pseudo-board (#29874) 10 months ago
project_board.yml Add default board to new projects, remove uncategorized pseudo-board (#29874) 10 months ago
project_issue.yml
protected_branch.yml
protected_tag.yml Protected tag is no internal server error (#30962) 9 months ago
public_key.yml Fix more yaml lint errors (#27284) 1 year ago
pull_request.yml Update misspell to 0.5.1 and add `misspellings.csv` (#30573) 9 months ago
reaction.yml Fix more yaml lint errors (#27284) 1 year ago
release.yml Allow get release download files and lfs files with oauth2 token format (#26430) 1 year ago
renamed_branch.yml
repo_archiver.yml
repo_indexer_status.yml
repo_redirect.yml
repo_topic.yml
repo_transfer.yml Add user blocking (#29028) 11 months ago
repo_unit.yml Fix projects mode bugs (#29593) 11 months ago
repository.yml Fix wrong display of recently pushed notification (#25812) 9 months ago
review.yml Fix template error when comment review doesn't exist (#29888) 11 months ago
star.yml Add user blocking (#29028) 11 months ago
stopwatch.yml
system_setting.yml Fix context cache bug & enable context cache for dashabord commits' authors (#26991) 1 year ago
team.yml Fix wrong display of recently pushed notification (#25812) 9 months ago
team_repo.yml Allow non-admin users to delete review requests (#29057) 11 months ago
team_unit.yml Fix wrong display of recently pushed notification (#25812) 9 months ago
team_user.yml Fix wrong display of recently pushed notification (#25812) 9 months ago
topic.yml Add some api integration tests (#18872) 2 years ago
tracked_time.yml
two_factor.yml
user.yml Fix wrong display of recently pushed notification (#25812) 9 months ago
user_blocking.yml Add user blocking (#29028) 11 months ago
user_open_id.yml
user_redirect.yml
watch.yml Add user blocking (#29028) 11 months ago
webauthn_credential.yml Add some api integration tests (#18872) 2 years ago
webhook.yml Add user webhooks (#21563) 2 years ago