adding test containers
Some checks failed
Check scripts syntax / check-scripts-syntax (push) Successful in 3s
Test automated-nfs-backup / test-automated-nfs-backup (push) Successful in 4s
Haven Notify Build and Deploy / Build Haven Notify Image (pull_request) Has been cancelled
Haven Notify Build and Deploy / Build Haven Notify Image (PR) (pull_request) Has been cancelled
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (pull_request) Has been cancelled
Haven Notify Build and Deploy / Test Haven Notify (pull_request) Has been cancelled
Some checks failed
Check scripts syntax / check-scripts-syntax (push) Successful in 3s
Test automated-nfs-backup / test-automated-nfs-backup (push) Successful in 4s
Haven Notify Build and Deploy / Build Haven Notify Image (pull_request) Has been cancelled
Haven Notify Build and Deploy / Build Haven Notify Image (PR) (pull_request) Has been cancelled
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (pull_request) Has been cancelled
Haven Notify Build and Deploy / Test Haven Notify (pull_request) Has been cancelled
This commit is contained in:
@@ -1,36 +1,26 @@
|
||||
{{/*
|
||||
Error Notification Template
|
||||
Variables expected:
|
||||
- .caller: The caller of the error
|
||||
- .message: The error message
|
||||
- .critical: Boolean indicating if the error is critical
|
||||
- .extra: Optional array of additional fields with .name and .value
|
||||
*/}}
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
"title": "❌ Error",
|
||||
"description": "**{{.caller}}** encountered an error!",
|
||||
"color": {{if .critical}}15158332{{else}}15844367{{end}},
|
||||
"description": {{json (printf "**%s** encountered an error!" .Caller)}},
|
||||
"color": {{if .Critical}}15158332{{else}}15844367{{end}},
|
||||
"fields": [
|
||||
{
|
||||
"name": "📄 Message",
|
||||
"value": "{{.message}}",
|
||||
"value": {{json .Message}},
|
||||
"inline": false
|
||||
}
|
||||
{{- if .extra}}
|
||||
{{- range $index, $field := .extra}},
|
||||
{{- range .Extra}},
|
||||
{
|
||||
"name": "{{$field.name}}",
|
||||
"value": "{{$field.value}}",
|
||||
"name": {{json .Name}},
|
||||
"value": {{json .Value}},
|
||||
"inline": true
|
||||
}
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
],
|
||||
"footer": {
|
||||
"text": "✨ Haven Notify ✨"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user