From 6727c618390a6920225b301fa5a99f5182d5258a Mon Sep 17 00:00:00 2001 From: icechen Date: Tue, 4 Jan 2022 20:36:28 +0800 Subject: [PATCH] fix: add app type --- config_handler/config_handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config_handler/config_handler.go b/config_handler/config_handler.go index 7fd120d..0a4cf63 100644 --- a/config_handler/config_handler.go +++ b/config_handler/config_handler.go @@ -132,7 +132,7 @@ func getDeployApiByCommitMessage(api ApiList, message string) ApiList { foundApp := foundAppByMessage(message) for _, app := range foundApp { for _, a := range api { - if a.Name == app { + if "api-"+a.Name == app { ret = append(ret, a) } } @@ -163,7 +163,7 @@ func getDeployServiceByCommitMessage(service ServiceList, message string) Servic foundApp := foundAppByMessage(message) for _, app := range foundApp { for _, s := range service { - if s.Name == app { + if "service-"+s.Name == app { ret = append(ret, s) } }