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

likyh pushed a commit to branch release-v0.16
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/release-v0.16 by this push:
     new 64349f079 fix(config-ui): the default value of refdiff in 
transformation error (#4622) (#4623)
64349f079 is described below

commit 64349f07905e01e3e2600a508f580a8ce7a2db44
Author: 青湛 <[email protected]>
AuthorDate: Thu Mar 9 15:22:00 2023 +0800

    fix(config-ui): the default value of refdiff in transformation error 
(#4622) (#4623)
---
 config-ui/src/plugins/register/bitbucket/config.tsx         | 2 +-
 config-ui/src/plugins/register/bitbucket/transformation.tsx | 2 +-
 config-ui/src/plugins/register/github/config.tsx            | 2 +-
 config-ui/src/plugins/register/github/transformation.tsx    | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/config-ui/src/plugins/register/bitbucket/config.tsx 
b/config-ui/src/plugins/register/bitbucket/config.tsx
index 88ac22f37..85532db91 100644
--- a/config-ui/src/plugins/register/bitbucket/config.tsx
+++ b/config-ui/src/plugins/register/bitbucket/config.tsx
@@ -68,7 +68,7 @@ export const BitBucketConfig: PluginConfigType = {
     deploymentPattern: '',
     refdiff: {
       tagsOrder: 10,
-      tagsPattern: /v\d+\.\d+(\.\d+(-rc)*\d*)*$/,
+      tagsPattern: '/v\\d+\\.\\d+(\\.\\d+(-rc)*\\d*)*$/',
     },
   },
 };
diff --git a/config-ui/src/plugins/register/bitbucket/transformation.tsx 
b/config-ui/src/plugins/register/bitbucket/transformation.tsx
index 16a8d4332..5105cadf3 100644
--- a/config-ui/src/plugins/register/bitbucket/transformation.tsx
+++ b/config-ui/src/plugins/register/bitbucket/transformation.tsx
@@ -227,7 +227,7 @@ export const BitbucketTransformation = ({ transformation, 
setTransformation }: P
         </h2>
         <Collapse isOpen={openAdditionalSettings}>
           <div className="radio">
-            <Radio checked />
+            <Radio defaultChecked />
             <p>
               Enable the <ExternalLink 
link="https://devlake.apache.org/docs/Plugins/refdiff";>RefDiff</ExternalLink>{' 
'}
               plugin to pre-calculate version-based metrics
diff --git a/config-ui/src/plugins/register/github/config.tsx 
b/config-ui/src/plugins/register/github/config.tsx
index 5732c2338..6f2565195 100644
--- a/config-ui/src/plugins/register/github/config.tsx
+++ b/config-ui/src/plugins/register/github/config.tsx
@@ -93,7 +93,7 @@ export const GitHubConfig: PluginConfigType = {
       
'(?mi)(fix|close|resolve|fixes|closes|resolves|fixed|closed|resolved)[s]*.*(((and
 )?(#|https://github.com/%s/%s/issues/)d+[ ]*)+)',
     refdiff: {
       tagsOrder: 10,
-      tagsPattern: /v\d+\.\d+(\.\d+(-rc)*\d*)*$/,
+      tagsPattern: '/v\\d+\\.\\d+(\\.\\d+(-rc)*\\d*)*$/',
     },
   },
 };
diff --git a/config-ui/src/plugins/register/github/transformation.tsx 
b/config-ui/src/plugins/register/github/transformation.tsx
index 4dea066ff..4293c1139 100644
--- a/config-ui/src/plugins/register/github/transformation.tsx
+++ b/config-ui/src/plugins/register/github/transformation.tsx
@@ -380,7 +380,7 @@ export const GitHubTransformation = ({ transformation, 
setTransformation }: Prop
         </h2>
         <Collapse isOpen={openAdditionalSettings}>
           <div className="radio">
-            <Radio checked />
+            <Radio defaultChecked />
             <p>
               Enable the <ExternalLink 
link="https://devlake.apache.org/docs/Plugins/refdiff";>RefDiff</ExternalLink>{' 
'}
               plugin to pre-calculate version-based metrics

Reply via email to