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 63fbf9fa2 fix(config-ui): update the parameter tagsOrder to tagsLimit 
(#4848)
63fbf9fa2 is described below

commit 63fbf9fa28a02c09e7e4f5306867e21f57e22bae
Author: 青湛 <[email protected]>
AuthorDate: Thu Apr 6 10:09:21 2023 +0800

    fix(config-ui): update the parameter tagsOrder to tagsLimit (#4848)
---
 config-ui/src/plugins/register/bitbucket/config.tsx         | 2 +-
 config-ui/src/plugins/register/bitbucket/transformation.tsx | 4 ++--
 config-ui/src/plugins/register/github/config.tsx            | 2 +-
 config-ui/src/plugins/register/github/transformation.tsx    | 4 ++--
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/config-ui/src/plugins/register/bitbucket/config.tsx 
b/config-ui/src/plugins/register/bitbucket/config.tsx
index 85532db91..b7c533321 100644
--- a/config-ui/src/plugins/register/bitbucket/config.tsx
+++ b/config-ui/src/plugins/register/bitbucket/config.tsx
@@ -67,7 +67,7 @@ export const BitBucketConfig: PluginConfigType = {
     productionPattern: '',
     deploymentPattern: '',
     refdiff: {
-      tagsOrder: 10,
+      tagsLimit: 10,
       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 5105cadf3..cfc70c800 100644
--- a/config-ui/src/plugins/register/bitbucket/transformation.tsx
+++ b/config-ui/src/plugins/register/bitbucket/transformation.tsx
@@ -239,13 +239,13 @@ export const BitbucketTransformation = ({ transformation, 
setTransformation }: P
             <InputGroup
               style={{ width: 60 }}
               placeholder="10"
-              value={transformation.refdiff?.tagsOrder}
+              value={transformation.refdiff?.tagsLimit}
               onChange={(e) =>
                 setTransformation({
                   ...transformation,
                   refdiff: {
                     ...transformation?.refdiff,
-                    tagsOrder: e.target.value,
+                    tagsLimit: e.target.value,
                   },
                 })
               }
diff --git a/config-ui/src/plugins/register/github/config.tsx 
b/config-ui/src/plugins/register/github/config.tsx
index 6f2565195..9189c5911 100644
--- a/config-ui/src/plugins/register/github/config.tsx
+++ b/config-ui/src/plugins/register/github/config.tsx
@@ -92,7 +92,7 @@ export const GitHubConfig: PluginConfigType = {
     prBodyClosePattern:
       
'(?mi)(fix|close|resolve|fixes|closes|resolves|fixed|closed|resolved)[s]*.*(((and
 )?(#|https://github.com/%s/%s/issues/)d+[ ]*)+)',
     refdiff: {
-      tagsOrder: 10,
+      tagsLimit: 10,
       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 4293c1139..fd9696771 100644
--- a/config-ui/src/plugins/register/github/transformation.tsx
+++ b/config-ui/src/plugins/register/github/transformation.tsx
@@ -391,13 +391,13 @@ export const GitHubTransformation = ({ transformation, 
setTransformation }: Prop
             Compare the last
             <InputGroup
               style={{ width: 60 }}
-              value={transformation.refdiff?.tagsOrder}
+              value={transformation.refdiff?.tagsLimit ?? ''}
               onChange={(e) =>
                 setTransformation({
                   ...transformation,
                   refdiff: {
                     ...transformation?.refdiff,
-                    tagsOrder: e.target.value,
+                    tagsLimit: e.target.value,
                   },
                 })
               }

Reply via email to