github.com/argoproj/argo-cd/v3@v3.2.1/notifications_catalog/templates/app-sync-running.yaml (about) 1 message: | 2 The sync operation of application {{.app.metadata.name}} has started at {{.app.status.operationState.startedAt}}. 3 Sync operation details are available at: {{.context.argocdUrl}}/applications/{{.app.metadata.name}}?operation=true . 4 email: 5 subject: "Start syncing application {{.app.metadata.name}}." 6 slack: 7 attachments: | 8 [{ 9 "title": "{{ .app.metadata.name}}", 10 "title_link":"{{.context.argocdUrl}}/applications/{{.app.metadata.name}}", 11 "color": "#0DADEA", 12 "fields": [ 13 { 14 "title": "Sync Status", 15 "value": "{{.app.status.sync.status}}", 16 "short": true 17 }, 18 { 19 "title": {{- if .app.spec.source }} "Repository" {{- else if .app.spec.sources }} "Repositories" {{- end }}, 20 "value": {{- if .app.spec.source }} ":arrow_heading_up: {{ .app.spec.source.repoURL }}" {{- else if .app.spec.sources }} "{{- range $index, $source := .app.spec.sources }}{{ if $index }}\n{{ end }}:arrow_heading_up: {{ $source.repoURL }}{{- end }}" {{- end }}, 21 "short": true 22 } 23 {{range $index, $c := .app.status.conditions}} 24 , 25 { 26 "title": "{{$c.type}}", 27 "value": "{{$c.message}}", 28 "short": true 29 } 30 {{end}} 31 ] 32 }] 33 teams: 34 title: "Start syncing application {{.app.metadata.name}}." 35 facts: | 36 [{ 37 "name": "Sync Status", 38 "value": "{{.app.status.sync.status}}" 39 }, 40 { 41 "name": "Started at", 42 "value": "{{.app.status.operationState.startedAt}}" 43 }, 44 { 45 "name": {{- if .app.spec.source }} "Repository" {{- else if .app.spec.sources }} "Repositories" {{- end }}, 46 "value": {{- if .app.spec.source }} "⬆️ {{ .app.spec.source.repoURL }}" {{- else if .app.spec.sources }} "{{- range $index, $source := .app.spec.sources }}{{ if $index }}\n{{ end }}⬆️ {{ $source.repoURL }}{{- end }}" {{- end }} 47 } 48 {{range $index, $c := .app.status.conditions}} 49 , 50 { 51 "name": "{{$c.type}}", 52 "value": "{{$c.message}}" 53 } 54 {{end}} 55 ] 56 potentialAction: | 57 [{ 58 "@type":"OpenUri", 59 "name":"Open Operation", 60 "targets":[{ 61 "os":"default", 62 "uri":"{{.context.argocdUrl}}/applications/{{.app.metadata.name}}?operation=true" 63 }] 64 }, 65 { 66 "@type":"OpenUri", 67 "name":"Open Repository", 68 "targets":[{ 69 "os":"default", 70 "uri":{{- if .app.spec.source }} "⬆️ {{ .app.spec.source.repoURL }}" {{- else if .app.spec.sources }} "{{- range $index, $source := .app.spec.sources }}{{ if $index }}\n{{ end }}⬆️ {{ $source.repoURL }}{{- end }}" {{- end }} 71 }] 72 }]