[Fix] Split repo name from build in title (#4)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

Reviewed-on: #4
Co-authored-by: parra <victor+git@parravidales.es>
Co-committed-by: parra <victor+git@parravidales.es>
This commit is contained in:
parra 2023-10-28 18:14:53 +02:00 committed by parra
parent 04a45d0c58
commit 7dc1ee294d

View file

@ -56,7 +56,7 @@ func loadDataFromEnv(data any) {
func buildAppData(data *Data) {
data.App.Title = data.Drone.RepoName + "Build #" + data.Drone.BuildNumber + " " + data.Drone.BuildStatus
data.App.Title = data.Drone.RepoName + " - Build #" + data.Drone.BuildNumber + " " + data.Drone.BuildStatus
if strings.Contains(data.Ci.CommitRef, "refs/tags/") {
data.App.Tags = append(data.App.Tags, data.Drone.Tag)