This is an automated email from the ASF dual-hosted git repository.
mintsweet pushed a commit to branch feat-dora-config
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/feat-dora-config by this push:
new 9b35011d1 fix: adjust the deploymentPattern and productionPattern
default value
9b35011d1 is described below
commit 9b35011d1cf758f1b10e3398497afa8e37589805
Author: mintsweet <[email protected]>
AuthorDate: Sat Sep 14 22:32:20 2024 +1200
fix: adjust the deploymentPattern and productionPattern default value
---
config-ui/src/plugins/register/github/config.tsx | 3 ---
config-ui/src/plugins/register/github/transformation.tsx | 6 ++++++
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/config-ui/src/plugins/register/github/config.tsx
b/config-ui/src/plugins/register/github/config.tsx
index a7fb882f1..d2e8cbda3 100644
--- a/config-ui/src/plugins/register/github/config.tsx
+++ b/config-ui/src/plugins/register/github/config.tsx
@@ -106,9 +106,6 @@ export const GitHubConfig: IPluginConfig = {
issuePriority: '(highest|high|medium|low|p0|p1|p2|p3)',
issueComponent: 'component(.*)',
issueSeverity: 'severity(.*)',
- envNamePattern: '(?i)prod(.*)',
- deploymentPattern: '',
- productionPattern: '',
prType: 'type(.*)',
prComponent: 'component(.*)',
prBodyClosePattern:
diff --git a/config-ui/src/plugins/register/github/transformation.tsx
b/config-ui/src/plugins/register/github/transformation.tsx
index 8a7d033ac..fd8c6aea3 100644
--- a/config-ui/src/plugins/register/github/transformation.tsx
+++ b/config-ui/src/plugins/register/github/transformation.tsx
@@ -69,6 +69,12 @@ export const GitHubTransformation = ({
const checked = (e.target as HTMLInputElement).checked;
if (!checked) {
+ setTransformation({
+ ...transformation,
+ deploymentPattern: undefined,
+ productionPattern: undefined,
+ });
+ } else {
setTransformation({
...transformation,
deploymentPattern: '',