mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Patch self-hosted gitlab integration
This commit is contained in:
@@ -15,6 +15,7 @@ import { IntegrationAuthMetadata } from "../models/integrationAuth/types";
|
||||
interface Update {
|
||||
workspace: string;
|
||||
integration: string;
|
||||
url?: string;
|
||||
teamId?: string;
|
||||
accountId?: string;
|
||||
metadata?: IntegrationAuthMetadata
|
||||
@@ -63,6 +64,10 @@ export const handleOAuthExchangeHelper = async ({
|
||||
workspace: workspaceId,
|
||||
integration
|
||||
};
|
||||
|
||||
if (res.url) {
|
||||
update.url = res.url;
|
||||
}
|
||||
|
||||
switch (integration) {
|
||||
case INTEGRATION_VERCEL:
|
||||
|
||||
@@ -423,6 +423,7 @@ const exchangeCodeGitlab = async ({
|
||||
accessToken: res.access_token,
|
||||
refreshToken: res.refresh_token,
|
||||
accessExpiresAt,
|
||||
url
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -84,6 +84,7 @@ export default function GitLabCreateIntegrationPage() {
|
||||
const selectedSourceEnvironment = watch("selectedSourceEnvironment");
|
||||
const targetEntity = watch("targetEntity");
|
||||
const targetTeamId = watch("targetTeamId");
|
||||
const targetAppIdValue = watch("targetAppId");
|
||||
|
||||
const { mutateAsync } = useCreateIntegration();
|
||||
|
||||
@@ -440,6 +441,7 @@ export default function GitLabCreateIntegrationPage() {
|
||||
size="sm"
|
||||
type="submit"
|
||||
isLoading={isLoading}
|
||||
isDisabled={targetAppIdValue === "none"}
|
||||
>
|
||||
Create Integration
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user