GoogleCloudPlatform / cloud-build-notifiers

Notifier images for Cloud Build, complete with build status filtering and Google Secret Manager integration
Apache License 2.0
138 stars 143 forks source link

[SMTP] Customize Subject Email (by build template) #201

Closed michaelact closed 2 months ago

michaelact commented 5 months ago

Example configuration:

spec:
  notification:
    delivery:
      subject: '{{ if eq .Build.Status 3 }}✅ Build Successful ({{ .Build.Substitutions.REPO_NAME }}){{ else }}❌ Build Failure ({{ .Build.Substitutions.REPO_NAME }}){{ end }} | {{.Build.Substitutions._COMMIT_MESSAGE}}'
prabenzom commented 3 months ago

/gcbrun

prabenzom commented 3 months ago

/gcbrun

michaelact commented 2 months ago

Thanks!