Skip to content

Commit 27e8b95

Browse files
Merge pull request #176 from devtron-labs/feat/bitbucket-dc
feat: add ssh and password type
2 parents 39ae900 + 4e847c5 commit 27e8b95

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "0.0.86-beta-3",
3+
"version": "0.0.86-beta-16",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

src/Shared/Helpers.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ export const getWebhookEventIcon = (eventName: WebhookEventNameType) => {
121121
export const isNullOrUndefined = (value: unknown): boolean => value === null || value === undefined
122122

123123
export const handleDisableSubmitOnEnter = (event: React.KeyboardEvent<HTMLFormElement>) => {
124-
if (event.key === 'Enter') {
124+
const isTextArea = event.target instanceof HTMLTextAreaElement
125+
126+
if (event.key === 'Enter' && !isTextArea) {
125127
event.preventDefault()
126128
}
127129
}

src/Shared/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,13 +312,15 @@ export type AggregationKeysType = keyof typeof AggregationKeys
312312
export enum GitOpsAuthModeType {
313313
SSH = 'SSH',
314314
PASSWORD = 'PASSWORD',
315+
SSH_AND_PASSWORD = 'PAT_AND_SSH',
315316
}
316317

317318
export interface BaseGitOpsType {
318319
authMode: GitOpsAuthModeType
319320
sshKey: string
320321
sshHost: string
321322
username: string
323+
token: string
322324
}
323325

324326
export type GitOpsFieldKeyType =

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ export interface customEnv {
6969
ENABLE_RESOURCE_SCAN?: boolean
7070
FEATURE_USER_DEFINED_GITOPS_REPO_ENABLE: boolean
7171
ENABLE_RESOURCE_SCAN_V2?: boolean
72-
ENABLE_GITOPS_BITBUCKET_SOURCE: boolean
7372
HIDE_RESOURCE_WATCHER?: boolean
7473
}
7574
declare global {

0 commit comments

Comments
 (0)