-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Implement searchRepos for Bitbucket #18856
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement searchRepos for Bitbucket #18856
Conversation
public async searchRepos(user: User, searchString: string): Promise<RepositoryInfo[]> { | ||
return []; | ||
// Only load 1 page of 10 results for our searchString | ||
const results = await this.api.getRepos(user, { maxPages: 1, limit: 10, searchString }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bitbucket Server search is limited to prefix searching only, so the name must match from the beginning. For example:
test
would match test-repo
but would not match repo-test
New dependencies detected. Learn more about Socket for GitHub ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing with both Cloud and our Datacenter, everything looks good!
/unhold |
Description
Implements the
searchRepos
function for our Bitbucket & Bitbucket Server repository providers. This is used on the create workspace page as you search for repositories. Gitlab will be added in a followup PR.You can see results from bitbucket cloud/server & github in this screenshot

Summary generated by Copilot
🤖 Generated by Copilot at e13f258
Implemented repository search for Bitbucket integration. Added
searchRepos
method toBitbucketRepositoryProvider
class inbitbucket-repository-provider.ts
.Related Issue(s)
Fixes EXP-749 & EXP-751
How to test
Documentation
Preview status
Gitpod was successfully deployed to your preview environment.
Build Options
Build
Run the build with werft instead of GHA
Run Leeway with
--dont-test
Publish
Installer
Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
If enabled this will build
install/preview
If enabled this will create the environment on GCE infra
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh
. If enabled,with-preview
andwith-large-vm
will be enabled./hold