This commit is contained in:
yp05327 2023-07-24 08:09:29 +00:00
parent 4de1b0514c
commit 94025efd44
1 changed files with 5 additions and 3 deletions

View File

@ -457,10 +457,12 @@ func FindRecentlyPushedNewBranches(ctx context.Context, opts *FindRecentlyPushed
// should not use branch name here, because if there are branches with same name in different repos,
// we can not detect them correctly
PullRequestCond: builder.NotIn("branch.id", prBranchIds),
// only display top 2 latest branch
ListOptions: db.ListOptions{
PageSize: 2,
Page: 1,
},
}
// only display top 2 latest branch
findBranchOpts.PageSize = 2
findBranchOpts.Page = 1
return FindBranches(ctx, findBranchOpts)
}