mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 16:44:26 +00:00
Only show newly pushed branches message in the same repository (#26148)
Partly fixes #26130 This is a quick fix. #25812 will fully fix the bug.
This commit is contained in:
parent
bd4c7ce578
commit
338d03ce2f
@ -394,6 +394,7 @@ func FindRecentlyPushedNewBranches(ctx context.Context, repoID, userID int64, ex
|
|||||||
err := db.GetEngine(ctx).
|
err := db.GetEngine(ctx).
|
||||||
Where("pusher_id=? AND is_deleted=?", userID, false).
|
Where("pusher_id=? AND is_deleted=?", userID, false).
|
||||||
And("name <> ?", excludeBranchName).
|
And("name <> ?", excludeBranchName).
|
||||||
|
And("repo_id = ?", repoID).
|
||||||
And("updated_unix >= ?", time.Now().Add(-time.Hour*6).Unix()).
|
And("updated_unix >= ?", time.Now().Add(-time.Hour*6).Unix()).
|
||||||
NotIn("name", subQuery).
|
NotIn("name", subQuery).
|
||||||
OrderBy("branch.updated_unix DESC").
|
OrderBy("branch.updated_unix DESC").
|
||||||
|
Loading…
Reference in New Issue
Block a user