You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by li...@apache.org on 2023/03/29 07:25:46 UTC

[incubator-devlake] branch main updated: feat(config-ui): support plugin org (#4807)

This is an automated email from the ASF dual-hosted git repository.

likyh 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 64d8fe5f2 feat(config-ui): support plugin org (#4807)
64d8fe5f2 is described below

commit 64d8fe5f299679f324ee6e35fb7729e496d8edfd
Author: 青湛 <0x...@gmail.com>
AuthorDate: Wed Mar 29 15:25:41 2023 +0800

    feat(config-ui): support plugin org (#4807)
---
 config-ui/src/plugins/config.ts              |  2 ++
 config-ui/src/plugins/register/org/config.ts | 27 +++++++++++++++++++++++++++
 config-ui/src/plugins/register/org/index.ts  | 19 +++++++++++++++++++
 3 files changed, 48 insertions(+)

diff --git a/config-ui/src/plugins/config.ts b/config-ui/src/plugins/config.ts
index dbd0ecb40..d8554f8af 100644
--- a/config-ui/src/plugins/config.ts
+++ b/config-ui/src/plugins/config.ts
@@ -31,6 +31,7 @@ import { GitHubGraphqlConfig } from './register/github_graphql';
 import { GitLabConfig } from './register/gitlab';
 import { JenkinsConfig } from './register/jenkins';
 import { JiraConfig } from './register/jira';
+import { OrgConfig } from './register/org';
 import { RefDiffConfig } from './register/refdiff';
 import { SonarQubeConfig } from './register/sonarqube';
 import { StarRocksConfig } from './register/starrocks';
@@ -54,6 +55,7 @@ export const PluginConfig: PluginConfigType[] = [
   GitLabConfig,
   JenkinsConfig,
   JiraConfig,
+  OrgConfig,
   RefDiffConfig,
   SonarQubeConfig,
   StarRocksConfig,
diff --git a/config-ui/src/plugins/register/org/config.ts b/config-ui/src/plugins/register/org/config.ts
new file mode 100644
index 000000000..5b47e7af6
--- /dev/null
+++ b/config-ui/src/plugins/register/org/config.ts
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+import type { PluginConfigType } from '@/plugins';
+
+import { BasePipelineConfig } from '../base';
+
+export const OrgConfig: PluginConfigType = {
+  ...BasePipelineConfig,
+  plugin: 'org',
+  name: 'Org',
+};
diff --git a/config-ui/src/plugins/register/org/index.ts b/config-ui/src/plugins/register/org/index.ts
new file mode 100644
index 000000000..de415db39
--- /dev/null
+++ b/config-ui/src/plugins/register/org/index.ts
@@ -0,0 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+export * from './config';