fix: add app type
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
3e0ef078c9
commit
6727c61839
|
@ -132,7 +132,7 @@ func getDeployApiByCommitMessage(api ApiList, message string) ApiList {
|
||||||
foundApp := foundAppByMessage(message)
|
foundApp := foundAppByMessage(message)
|
||||||
for _, app := range foundApp {
|
for _, app := range foundApp {
|
||||||
for _, a := range api {
|
for _, a := range api {
|
||||||
if a.Name == app {
|
if "api-"+a.Name == app {
|
||||||
ret = append(ret, a)
|
ret = append(ret, a)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -163,7 +163,7 @@ func getDeployServiceByCommitMessage(service ServiceList, message string) Servic
|
||||||
foundApp := foundAppByMessage(message)
|
foundApp := foundAppByMessage(message)
|
||||||
for _, app := range foundApp {
|
for _, app := range foundApp {
|
||||||
for _, s := range service {
|
for _, s := range service {
|
||||||
if s.Name == app {
|
if "service-"+s.Name == app {
|
||||||
ret = append(ret, s)
|
ret = append(ret, s)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue