mirror of
https://github.com/go-gitea/gitea.git
synced 2025-02-02 15:09:33 -05:00
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.  The latest commit is 2 weeks ago.  The notification comes from another repo with same branch name:  After: In forked repo:  New PR Link will redirect to the original repo:  In the original repo:  New PR Link:  In the same repo:  New PR Link:  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>
84 lines
1.6 KiB
YAML
84 lines
1.6 KiB
YAML
-
|
|
id: 1
|
|
repo_id: 1
|
|
name: 'foo'
|
|
commit_id: '65f1bf27bc3bf70f64657658635e66094edbcb4d'
|
|
commit_message: 'first commit'
|
|
commit_time: 978307100
|
|
pusher_id: 1
|
|
is_deleted: true
|
|
deleted_by_id: 1
|
|
deleted_unix: 978307200
|
|
|
|
-
|
|
id: 2
|
|
repo_id: 1
|
|
name: 'bar'
|
|
commit_id: '62fb502a7172d4453f0322a2cc85bddffa57f07a'
|
|
commit_message: 'second commit'
|
|
commit_time: 978307100
|
|
pusher_id: 1
|
|
is_deleted: true
|
|
deleted_by_id: 99
|
|
deleted_unix: 978307200
|
|
|
|
-
|
|
id: 3
|
|
repo_id: 1
|
|
name: 'branch2'
|
|
commit_id: '985f0301dba5e7b34be866819cd15ad3d8f508ee'
|
|
commit_message: 'make pull5 outdated'
|
|
commit_time: 1579166279
|
|
pusher_id: 1
|
|
is_deleted: false
|
|
deleted_by_id: 0
|
|
deleted_unix: 0
|
|
|
|
-
|
|
id: 4
|
|
repo_id: 1
|
|
name: 'master'
|
|
commit_id: '65f1bf27bc3bf70f64657658635e66094edbcb4d'
|
|
commit_message: 'Initial commit'
|
|
commit_time: 1489927679
|
|
pusher_id: 1
|
|
is_deleted: false
|
|
deleted_by_id: 0
|
|
deleted_unix: 0
|
|
|
|
-
|
|
id: 5
|
|
repo_id: 10
|
|
name: 'master'
|
|
commit_id: '65f1bf27bc3bf70f64657658635e66094edbcb4d'
|
|
commit_message: 'Initial commit'
|
|
commit_time: 1489927679
|
|
pusher_id: 12
|
|
is_deleted: false
|
|
deleted_by_id: 0
|
|
deleted_unix: 0
|
|
|
|
-
|
|
id: 6
|
|
repo_id: 10
|
|
name: 'outdated-new-branch'
|
|
commit_id: 'cb24c347e328d83c1e0c3c908a6b2c0a2fcb8a3d'
|
|
commit_message: 'add'
|
|
commit_time: 1489927679
|
|
pusher_id: 12
|
|
is_deleted: false
|
|
deleted_by_id: 0
|
|
deleted_unix: 0
|
|
|
|
-
|
|
id: 14
|
|
repo_id: 11
|
|
name: 'master'
|
|
commit_id: '65f1bf27bc3bf70f64657658635e66094edbcb4d'
|
|
commit_message: 'Initial commit'
|
|
commit_time: 1489927679
|
|
pusher_id: 13
|
|
is_deleted: false
|
|
deleted_by_id: 0
|
|
deleted_unix: 0
|