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 2022/09/29 02:11:32 UTC

[incubator-devlake] branch main updated: fix: add dora label to github incident group (#3246)

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 6b610ed3 fix: add dora label to github incident group (#3246)
6b610ed3 is described below

commit 6b610ed34a471f6d9a5334e8fa428c7a425034cb
Author: Julien Chinapen <ju...@merico.dev>
AuthorDate: Wed Sep 28 22:11:27 2022 -0400

    fix: add dora label to github incident group (#3246)
---
 config-ui/src/pages/configure/settings/github.jsx | 16 ++++++++++++++--
 config-ui/src/pages/configure/settings/jira.jsx   |  8 ++++++--
 2 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/config-ui/src/pages/configure/settings/github.jsx b/config-ui/src/pages/configure/settings/github.jsx
index 4f11200e..6512b8ff 100644
--- a/config-ui/src/pages/configure/settings/github.jsx
+++ b/config-ui/src/pages/configure/settings/github.jsx
@@ -26,7 +26,8 @@ import {
   Colors,
   Icon,
   Popover,
-  Position
+  Position,
+  Intent
 } from '@blueprintjs/core'
 import { DataEntityTypes } from '@/data/DataEntities'
 import Deployment from '@/components/blueprints/transformations/CICD/Deployment'
@@ -239,7 +240,18 @@ export default function GithubSettings(props) {
               <FormGroup
                 disabled={isSaving || isSavingConnection}
                 inline={true}
-                label='Type/Incident'
+                label={
+                  <>
+                    Type/Incident
+                    <Tag
+                      intent={Intent.PRIMARY}
+                      style={{ fontSize: '10px', marginLeft: '5px' }}
+                      minimal
+                    >
+                      DORA
+                    </Tag>
+                  </>
+                }
                 labelFor='github-issue-incident'
                 className='formGroup'
                 contentClassName='formGroupContent'
diff --git a/config-ui/src/pages/configure/settings/jira.jsx b/config-ui/src/pages/configure/settings/jira.jsx
index 7b24f2fb..fea5931e 100644
--- a/config-ui/src/pages/configure/settings/jira.jsx
+++ b/config-ui/src/pages/configure/settings/jira.jsx
@@ -154,8 +154,12 @@ export default function JiraSettings(props) {
   const [bugTags, setBugTags] = useState(savedBugTags)
   const [incidentTags, setIncidentTags] = useState(savedIncidentTags)
   const allChosenTagsInThisBoard = useMemo(
-    () => [...requirementTags[configuredBoard?.id], ...bugTags[configuredBoard?.id], ...incidentTags[configuredBoard?.id]],
-    [configuredBoard?.id, requirementTags, bugTags, incidentTags],
+    () => [
+      ...requirementTags[configuredBoard?.id],
+      ...bugTags[configuredBoard?.id],
+      ...incidentTags[configuredBoard?.id]
+    ],
+    [configuredBoard?.id, requirementTags, bugTags, incidentTags]
   )
 
   const [requirementTagsList, setRequirementTagsList] = useState([])