fix: add app type
continuous-integration/drone/push Build is passing Details

master
icechen 2022-01-04 20:36:28 +08:00
parent 3e0ef078c9
commit 6727c61839
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}
}