diff --git a/backend/ee-repo-ref.txt b/backend/ee-repo-ref.txt index 016382afe0..03cbd1fd10 100644 --- a/backend/ee-repo-ref.txt +++ b/backend/ee-repo-ref.txt @@ -1 +1 @@ -a81fe447c13c5dd59eb60594123f36984ccb7058 \ No newline at end of file +a2c83c51c9b501e3660fe82416a73e487356158d \ No newline at end of file diff --git a/backend/windmill-api/openapi.yaml b/backend/windmill-api/openapi.yaml index b333955c9f..d87047d0d5 100644 --- a/backend/windmill-api/openapi.yaml +++ b/backend/windmill-api/openapi.yaml @@ -603,6 +603,13 @@ paths: operationId: getGlobalConnectedRepositories tags: - Git Sync + parameters: + - name: search + in: query + description: Search repositories by name + required: false + schema: + type: string responses: "200": description: connected repositories @@ -19537,10 +19544,18 @@ components: required: - name - url + total_count: + type: number + description: Total number of repositories available for this installation + per_page: + type: number + description: Number of repositories loaded per page required: - installation_id - account_id - repositories + - total_count + - per_page WorkspaceGithubInstallation: type: object diff --git a/frontend/src/lib/components/GitHubAppIntegration.svelte b/frontend/src/lib/components/GitHubAppIntegration.svelte index 5c6ed53f65..5b485f2867 100644 --- a/frontend/src/lib/components/GitHubAppIntegration.svelte +++ b/frontend/src/lib/components/GitHubAppIntegration.svelte @@ -9,7 +9,6 @@ loadGithubInstallations, startInstallationCheck, stopInstallationCheck, - getRepositories, addInstallationToWorkspace, deleteInstallation, exportInstallation, @@ -18,6 +17,7 @@ handleInstallClick, type GitHubAppState } from '$lib/githubApp' + import RepositorySelector from './RepositorySelector.svelte' interface Props { resourceType: string @@ -215,17 +215,21 @@ {#if githubState.selectedGHAppAccountId} -
-

Repository

-
- + {@const selectedInstallation = githubState.workspaceGithubInstallations.find( + (inst) => inst.account_id === githubState.selectedGHAppAccountId + )} + {#if selectedInstallation} +
+

Repository

+
-
+ {/if} {/if}