-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add handling for ssh authMode #1776
base: main
Are you sure you want to change the base?
Conversation
src/components/gitOps/constants.ts
Outdated
@@ -24,7 +24,7 @@ export const DefaultGitOpsConfig = { | |||
active: true, | |||
} | |||
|
|||
export const DefaultShortGitOps = { | |||
export const DefaultShortGitOps: GitOpsState['isError'] = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please create separate type for this.
src/components/gitOps/gitops.type.ts
Outdated
AWS_CODE_COMMIT = 'AWS_CODE_COMMIT', | ||
} | ||
|
||
export type GitProviderType = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Infer this from GitProvider
@@ -51,15 +58,32 @@ const GitProviderTabIcons: React.FC<{ gitops: string }> = ({ gitops }) => { | |||
case 'Bitbucket Cloud': | |||
case 'Bitbucket': | |||
return <Bitbucket /> | |||
case 'AWS Code Commit': | |||
return <ICAwsCodeCommit className="dc__no-shrink" /> | |||
} | |||
} | |||
|
|||
const GitProviderTab: React.FC<{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this to types file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have to add url in git account selector
feat: generic gitops
feat: bitbucket dc
|
Description
This PR intends to bring following changes:
Fixes devtron-labs/devtron#5140
Type of change
Checklist: