Add Repo Name in notification title (#3)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #3 Co-authored-by: parra <victor+git@parravidales.es> Co-committed-by: parra <victor+git@parravidales.es>
This commit is contained in:
parent
9f86b72ce9
commit
04a45d0c58
2 changed files with 2 additions and 1 deletions
|
@ -81,4 +81,5 @@ DRONE_STAGE_STATUS=
|
|||
DRONE_TAG=
|
||||
DRONE_BUILD_LINK=
|
||||
DRONE_COMMIT_LINK=
|
||||
DRONE_REPO_NAME=
|
||||
```
|
||||
|
|
|
@ -56,7 +56,7 @@ func loadDataFromEnv(data any) {
|
|||
|
||||
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/") {
|
||||
data.App.Tags = append(data.App.Tags, data.Drone.Tag)
|
||||
|
|
Loading…
Reference in a new issue