feat(secret-sync): Add Azure Devops PR suggestions

This commit is contained in:
carlosmonastyrski
2025-06-06 10:08:31 -03:00
parent d9bc4da6f1
commit bf72638600
11 changed files with 14 additions and 21 deletions
@@ -70,7 +70,7 @@ const listAzureDevOpsProjects = async (
// Use the standard Azure DevOps Projects API endpoint
// This endpoint returns only projects that the authenticated user has access to
const devOpsEndpoint = `${IntegrationUrls.AZURE_DEVOPS_API_URL}/${orgName}/_apis/projects?api-version=7.1`;
const devOpsEndpoint = `${IntegrationUrls.AZURE_DEVOPS_API_URL}/${encodeURIComponent(orgName)}/_apis/projects?api-version=7.1`;
try {
const { data } = await request.get<TAzureDevOpsProjectsResponse>(devOpsEndpoint, {
headers: getAuthHeaders(appConnection, accessToken)
@@ -52,11 +52,3 @@ export interface TAzureListRegisteredAppsResponse {
"@odata.nextLink"?: string;
value: TAzureRegisteredApp[];
}
export interface TAzureDevOps {
keyId: string;
displayName?: string;
startDateTime: string;
endDateTime: string;
secretText?: string;
}