This is an automated email from the ASF dual-hosted git repository.
klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 9ad350545 fix(webhook): rename webook to webhook (#6281)
9ad350545 is described below
commit 9ad35054567107c168ef7c9fe15c5099f6394c91
Author: Lynwee <[email protected]>
AuthorDate: Thu Oct 19 11:56:22 2023 +0800
fix(webhook): rename webook to webhook (#6281)
---
config-ui/src/api/plugin/webhook/index.ts | 2 +-
config-ui/src/pages/project/detail/webhooks-panel.tsx | 4 ++--
config-ui/src/plugins/components/connection-list/index.tsx | 2 +-
config-ui/src/plugins/config.ts | 2 +-
config-ui/src/plugins/register/{webook => webhook}/assets/icon.svg | 0
.../plugins/register/{webook => webhook}/components/create-dialog.tsx | 0
.../plugins/register/{webook => webhook}/components/delete-dialog.tsx | 0
.../plugins/register/{webook => webhook}/components/edit-dialog.tsx | 0
.../src/plugins/register/{webook => webhook}/components/index.ts | 0
.../register/{webook => webhook}/components/selector-dialog.tsx | 0
.../plugins/register/{webook => webhook}/components/view-dialog.tsx | 0
config-ui/src/plugins/register/{webook => webhook}/config.ts | 0
config-ui/src/plugins/register/{webook => webhook}/connection.tsx | 0
config-ui/src/plugins/register/{webook => webhook}/index.ts | 0
config-ui/src/plugins/register/{webook => webhook}/styled.ts | 0
config-ui/src/plugins/register/{webook => webhook}/types.ts | 0
16 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/config-ui/src/api/plugin/webhook/index.ts
b/config-ui/src/api/plugin/webhook/index.ts
index eb84d54f5..27155d23a 100644
--- a/config-ui/src/api/plugin/webhook/index.ts
+++ b/config-ui/src/api/plugin/webhook/index.ts
@@ -31,7 +31,7 @@ export const get = (
id: string;
apiKey: string;
};
-}> => connection.get('webook', id) as any;
+}> => connection.get('webhook', id) as any;
export const create = (payload: any): Promise<{ id: string; apiKey: { apiKey:
string } }> =>
connection.create('webhook', payload) as any;
diff --git a/config-ui/src/pages/project/detail/webhooks-panel.tsx
b/config-ui/src/pages/project/detail/webhooks-panel.tsx
index ea53ae2c5..00bc1c142 100644
--- a/config-ui/src/pages/project/detail/webhooks-panel.tsx
+++ b/config-ui/src/pages/project/detail/webhooks-panel.tsx
@@ -21,8 +21,8 @@ import { Button, Intent } from '@blueprintjs/core';
import API from '@/api';
import { Alert, NoData } from '@/components';
-import type { WebhookItemType } from '@/plugins/register/webook';
-import { WebhookCreateDialog, WebhookSelectorDialog, WebHookConnection } from
'@/plugins/register/webook';
+import type { WebhookItemType } from '@/plugins/register/webhook';
+import { WebhookCreateDialog, WebhookSelectorDialog, WebHookConnection } from
'@/plugins/register/webhook';
import { operator } from '@/utils';
import type { ProjectType } from '../types';
diff --git a/config-ui/src/plugins/components/connection-list/index.tsx
b/config-ui/src/plugins/components/connection-list/index.tsx
index aa439d8db..634dd7dad 100644
--- a/config-ui/src/plugins/components/connection-list/index.tsx
+++ b/config-ui/src/plugins/components/connection-list/index.tsx
@@ -23,7 +23,7 @@ import { Table } from '@/components';
import { useConnections } from '@/hooks';
import { ConnectionStatus } from '@/plugins';
-import { WebHookConnection } from '@/plugins/register/webook';
+import { WebHookConnection } from '@/plugins/register/webhook';
interface Props {
plugin: string;
diff --git a/config-ui/src/plugins/config.ts b/config-ui/src/plugins/config.ts
index 23860b275..ebac6b5fe 100644
--- a/config-ui/src/plugins/config.ts
+++ b/config-ui/src/plugins/config.ts
@@ -27,7 +27,7 @@ import { JiraConfig } from './register/jira';
import { PagerDutyConfig } from './register/pagerduty';
import { SonarQubeConfig } from './register/sonarqube';
import { TAPDConfig } from './register/tapd';
-import { WebhookConfig } from './register/webook';
+import { WebhookConfig } from './register/webhook';
import { TeambitionConfig } from './register/teambition';
import { ZenTaoConfig } from './register/zentao';
diff --git a/config-ui/src/plugins/register/webook/assets/icon.svg
b/config-ui/src/plugins/register/webhook/assets/icon.svg
similarity index 100%
rename from config-ui/src/plugins/register/webook/assets/icon.svg
rename to config-ui/src/plugins/register/webhook/assets/icon.svg
diff --git a/config-ui/src/plugins/register/webook/components/create-dialog.tsx
b/config-ui/src/plugins/register/webhook/components/create-dialog.tsx
similarity index 100%
rename from config-ui/src/plugins/register/webook/components/create-dialog.tsx
rename to config-ui/src/plugins/register/webhook/components/create-dialog.tsx
diff --git a/config-ui/src/plugins/register/webook/components/delete-dialog.tsx
b/config-ui/src/plugins/register/webhook/components/delete-dialog.tsx
similarity index 100%
rename from config-ui/src/plugins/register/webook/components/delete-dialog.tsx
rename to config-ui/src/plugins/register/webhook/components/delete-dialog.tsx
diff --git a/config-ui/src/plugins/register/webook/components/edit-dialog.tsx
b/config-ui/src/plugins/register/webhook/components/edit-dialog.tsx
similarity index 100%
rename from config-ui/src/plugins/register/webook/components/edit-dialog.tsx
rename to config-ui/src/plugins/register/webhook/components/edit-dialog.tsx
diff --git a/config-ui/src/plugins/register/webook/components/index.ts
b/config-ui/src/plugins/register/webhook/components/index.ts
similarity index 100%
rename from config-ui/src/plugins/register/webook/components/index.ts
rename to config-ui/src/plugins/register/webhook/components/index.ts
diff --git
a/config-ui/src/plugins/register/webook/components/selector-dialog.tsx
b/config-ui/src/plugins/register/webhook/components/selector-dialog.tsx
similarity index 100%
rename from config-ui/src/plugins/register/webook/components/selector-dialog.tsx
rename to config-ui/src/plugins/register/webhook/components/selector-dialog.tsx
diff --git a/config-ui/src/plugins/register/webook/components/view-dialog.tsx
b/config-ui/src/plugins/register/webhook/components/view-dialog.tsx
similarity index 100%
rename from config-ui/src/plugins/register/webook/components/view-dialog.tsx
rename to config-ui/src/plugins/register/webhook/components/view-dialog.tsx
diff --git a/config-ui/src/plugins/register/webook/config.ts
b/config-ui/src/plugins/register/webhook/config.ts
similarity index 100%
rename from config-ui/src/plugins/register/webook/config.ts
rename to config-ui/src/plugins/register/webhook/config.ts
diff --git a/config-ui/src/plugins/register/webook/connection.tsx
b/config-ui/src/plugins/register/webhook/connection.tsx
similarity index 100%
rename from config-ui/src/plugins/register/webook/connection.tsx
rename to config-ui/src/plugins/register/webhook/connection.tsx
diff --git a/config-ui/src/plugins/register/webook/index.ts
b/config-ui/src/plugins/register/webhook/index.ts
similarity index 100%
rename from config-ui/src/plugins/register/webook/index.ts
rename to config-ui/src/plugins/register/webhook/index.ts
diff --git a/config-ui/src/plugins/register/webook/styled.ts
b/config-ui/src/plugins/register/webhook/styled.ts
similarity index 100%
rename from config-ui/src/plugins/register/webook/styled.ts
rename to config-ui/src/plugins/register/webhook/styled.ts
diff --git a/config-ui/src/plugins/register/webook/types.ts
b/config-ui/src/plugins/register/webhook/types.ts
similarity index 100%
rename from config-ui/src/plugins/register/webook/types.ts
rename to config-ui/src/plugins/register/webhook/types.ts