From 9c2f3dac71a2f10472ad1df345b3fc159e376a88 Mon Sep 17 00:00:00 2001 From: Antonin Delpeuch Date: Tue, 10 Dec 2024 22:51:44 +0100 Subject: [PATCH] Reduce delay to 30 minutes --- models/git/branch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/git/branch.go b/models/git/branch.go index 8fadf945ae..74923f2b9b 100644 --- a/models/git/branch.go +++ b/models/git/branch.go @@ -428,7 +428,7 @@ func FindRecentlyPushedNewBranches(ctx context.Context, repoID, userID int64, ex Where("pusher_id=? AND is_deleted=?", userID, false). And("name <> ?", excludeBranchName). And("repo_id = ?", repoID). - And("commit_time >= ?", time.Now().Add(-time.Hour*6).Unix()). + And("commit_time >= ?", time.Now().Add(-time.Minute*30).Unix()). NotIn("name", subQuery). OrderBy("branch.commit_time DESC"). Limit(2).