Add Repo Name in notification title #3

Merged
parra merged 2 commits from repo-name-in-title into main 2023-10-28 18:12:14 +02:00
2 changed files with 2 additions and 1 deletions

View file

@ -81,4 +81,5 @@ DRONE_STAGE_STATUS=
DRONE_TAG= DRONE_TAG=
DRONE_BUILD_LINK= DRONE_BUILD_LINK=
DRONE_COMMIT_LINK= DRONE_COMMIT_LINK=
DRONE_REPO_NAME=
``` ```

View file

@ -56,7 +56,7 @@ func loadDataFromEnv(data any) {
func buildAppData(data *Data) { func buildAppData(data *Data) {
data.App.Title = "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/") { if strings.Contains(data.Ci.CommitRef, "refs/tags/") {
data.App.Tags = append(data.App.Tags, data.Drone.Tag) data.App.Tags = append(data.App.Tags, data.Drone.Tag)