mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-03-04 19:11:35 +00:00
BitbucketDC: optimize repository search (#4919)
Co-authored-by: tal <tal@localhost>
This commit is contained in:
parent
f917f938a2
commit
0ecd57d2df
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ func (c *client) Repo(ctx context.Context, u *model.User, rID model.ForgeRemoteI
|
|||
|
||||
var repo *bb.Repository
|
||||
if rID.IsValid() {
|
||||
opts := &bb.RepositorySearchOptions{Permission: bb.PermissionRepoWrite, ListOptions: bb.ListOptions{Limit: listLimit}}
|
||||
opts := &bb.RepositorySearchOptions{Name: name, ProjectKey: owner, Permission: bb.PermissionRepoWrite, ListOptions: bb.ListOptions{Limit: listLimit}}
|
||||
for {
|
||||
repos, resp, err := bc.Projects.SearchRepositories(ctx, opts)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue