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
commit 428273ac3ca97e4c48dd113cdaf01b658d7ff2b9 Author: mintsweet <0x1304...@gmail.com> 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: '',