Files
ntfy/server/templates/github.yml
binwiederhier b1e935da45 TEmplate dir
2025-07-16 13:49:15 +02:00

24 lines
1008 B
YAML

message: |
{{- if .pull_request }}
🔀 PR {{ .action }}: #{{ .pull_request.number }} — {{ .pull_request.title }}
📦 {{ .repository.full_name }}
👤 {{ .pull_request.user.login }}
🌿 {{ .pull_request.head.ref }} → {{ .pull_request.base.ref }}
🔗 {{ .pull_request.html_url }}
📝 {{ .pull_request.body | default "(no description)" }}
{{- else if and .starred_at (eq .action "created")}}
⭐ {{ .sender.login }} starred {{ .repository.full_name }}
📦 {{ .repository.description | default "(no description)" }}
🔗 {{ .repository.html_url }}
📅 {{ .starred_at }}
{{- else if and .comment (eq .action "created") }}
💬 New comment on issue #{{ .issue.number }} — {{ .issue.title }}
📦 {{ .repository.full_name }}
👤 {{ .comment.user.login }}
🔗 {{ .comment.html_url }}
📝 {{ .comment.body | default "(no comment body)" }}
{{- else }}
{{ fail "Unsupported GitHub event type or action." }}
{{- end }}