Skip to content

Commit

Permalink
feat: add support for other misc integration regions
Browse files Browse the repository at this point in the history
  • Loading branch information
McPizza0 committed Nov 22, 2024
1 parent aec770d commit 2d01190
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions backend/src/server/routes/v1/integration-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ export const registerIntegrationRouter = async (server: FastifyZodProvider) => {
awsIamRole: awsRoleDetails.role
};
}
} else {
integration.metadata = {
region: integration.region
};
}

return { integration };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ const metadataMappings: Record<keyof NonNullable<TIntegrationWithEnv["metadata"]
shouldProtectSecrets: "GitLab Secret Protection Enabled",
shouldEnableDelete: "GitHub Secret Deletion Enabled",
awsIamRole: "AWS IAM Role",
awsRegion: "AWS Region"
awsRegion: "AWS Region",
region: "Region"
} as const;

export const IntegrationSettingsSection = ({ integration }: Props) => {
Expand Down

0 comments on commit 2d01190

Please sign in to comment.