mirror of https://github.com/go-gitea/gitea
improve
This commit is contained in:
parent
4de1b0514c
commit
94025efd44
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue