Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend
Submodule frontend updated 37 files
+0 −133 docs/01-overview.md
+22 −24 docs/README.md
+4 −0 src/App.tsx
+34 −1 src/api_service/analysis/analysisService.ts
+41 −0 src/api_service/codeHosting/gitlab/gitlabService.interface.ts
+100 −0 src/api_service/codeHosting/gitlab/gitlabService.ts
+1 −1 src/api_service/integration/integration.interface.ts
+40 −5 src/api_service/integration/integrationService.ts
+80 −2 src/api_service/project/projectService.ts
+15 −1 src/components/BranchPRHierarchy.tsx
+12 −8 src/components/CommentCommandsConfig.tsx
+27 −3 src/components/DetailedProjectStats.tsx
+427 −0 src/components/IssueListWithFilters.tsx
+3 −3 src/components/IssuesByFileDisplay.tsx
+121 −6 src/components/WelcomePage.tsx
+267 −0 src/components/common/RepositoryTokenForm.tsx
+193 −0 src/components/gitlab/GitLabRepositoryTokenForm.tsx
+4 −4 src/components/ui/calendar.tsx
+1 −1 src/components/ui/scroll-area.tsx
+7 −1 src/lib/routes.ts
+6 −25 src/pages/Account/CodeHosting/bitbucket/HostingSettings.tsx
+85 −38 src/pages/Account/CodeHosting/github/GitHubHostingSettings.tsx
+201 −0 src/pages/Account/CodeHosting/gitlab/AddConnection.tsx
+581 −0 src/pages/Account/CodeHosting/gitlab/GitLabHostingSettings.tsx
+21 −30 src/pages/Account/Project/BranchIssues.tsx
+446 −45 src/pages/Account/Project/ImportProject.tsx
+95 −88 src/pages/Account/Project/IssueDetails.tsx
+158 −4 src/pages/Account/Project/ProjectConfiguration.tsx
+4 −100 src/pages/Account/Project/ProjectManagement.tsx
+82 −11 src/pages/Docs/CreateVCSConnection.tsx
+268 −95 src/pages/Docs/Developer/Architecture.tsx
+273 −77 src/pages/Docs/Developer/Configuration.tsx
+10 −0 src/pages/Docs/DocsSidebar.tsx
+5 −5 src/pages/Docs/Documentation.tsx
+86 −7 src/pages/Docs/GettingStarted.tsx
+313 −0 src/pages/Docs/VCS/GitLab.tsx
+243 −85 src/pages/ProjectDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@ private void addVcsCredentials(AiAnalysisRequestImpl.Builder<?> builder, VcsConn
if (connection.getConnectionType() == EVcsConnectionType.APPLICATION && connection.getAccessToken() != null) {
String accessToken = tokenEncryptionService.decrypt(connection.getAccessToken());
builder.withAccessToken(accessToken);
} else if (connection.getConnectionType() == EVcsConnectionType.PERSONAL_TOKEN &&
} else if ((connection.getConnectionType() == EVcsConnectionType.PERSONAL_TOKEN ||
connection.getConnectionType() == EVcsConnectionType.REPOSITORY_TOKEN) &&
connection.getConfiguration() instanceof GitLabConfig config) {
builder.withAccessToken(config.accessToken());
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,22 @@ public RepoOnboardResponse onboardRepository(Long workspaceId, EVcsProvider prov
boolean webhooksConfigured = false;
if (request.isSetupWebhooks()) {
try {
webhooksConfigured = setupWebhooks(client, externalWorkspaceId, repo.slug(), binding, project);
// For REPOSITORY_TOKEN connections, use the full repo path for webhook setup
String webhookWorkspaceId = externalWorkspaceId;
String webhookRepoSlug = repo.slug();
if (connection.getConnectionType() == EVcsConnectionType.REPOSITORY_TOKEN
&& connection.getRepositoryPath() != null
&& !connection.getRepositoryPath().isBlank()) {
String repositoryPath = connection.getRepositoryPath();
int lastSlash = repositoryPath.lastIndexOf('/');
if (lastSlash > 0) {
webhookWorkspaceId = repositoryPath.substring(0, lastSlash);
webhookRepoSlug = repositoryPath.substring(lastSlash + 1);
}
log.debug("REPOSITORY_TOKEN webhook setup - using repositoryPath: {}, namespace: {}, slug: {}",
repositoryPath, webhookWorkspaceId, webhookRepoSlug);
}
webhooksConfigured = setupWebhooks(client, webhookWorkspaceId, webhookRepoSlug, binding, project);
} catch (Exception e) {
log.warn("Failed to setup webhooks for {}: {}", repo.fullName(), e.getMessage());
}
Expand Down