Gitea
Here's how you can use Secured Signal API as a notification service for gitea.
Setupโ
1. Message Templateโ
Because gitea's webhook data is very clustered, we need to use Message Templates to ensure correct message rendering.
Here is an example:
settings:
message:
template: |
{{- if and @issue (ne @issue nil) (not @is_pull) -}}
๐ **#{{@issue.number}} {{@issue.title}}**
{{ if eq @issue.state "open" -}}๐ข{{- else if eq @issue.state "closed" -}}๐ด{{- else -}}{{@issue.state}}{{- end }} | ๐ค {{@sender.full_name}}
๐ {{@issue.html_url}}
{{- end -}}
{{- if and @pull_request (ne @pull_request nil) -}}
๐ **#{{@pull_request.number}} {{@pull_request.title}}**
{{ if eq @pull_request.state "open" -}}๐ข{{- else if eq @pull_request.state "closed" -}}๐ด{{- else if eq @pull_request.state "merged" -}}๐ฃ{{- else -}}{{@pull_request.state}}{{- end }} | ๐ค {{@sender.full_name}}
๐ {{@pull_request.html_url}}
{{- end -}}
{{- if and @commits (gt (len @commits) 0) }}
๐ฅ๏ธ **Push** โ *{{@ref}}*
๐ {{@repository.full_name}} | ๐ค {{@pusher.full_name}} | ๐ข {{@total_commits}}
{{- range @commits }}
- ๐งพ *{{.message}}*
{{- if .added }}
{{- range .added }}โ {{.}} {{- end }}
{{- end -}}
{{- if .modified }}
{{- range .modified }} โ๏ธ {{.}} {{- end }}
{{- end -}}
{{- if .removed }}
{{- range .removed }} โ {{.}} {{- end }}
{{- end }}
๐ {{.url}}
{{- end }}
๐ Compare: {{@compare_url}}
{{- end -}}
Add this to your token config and modify it to your needs.
2. Webhookโ
Head to your gitea repository (or user settings) and go to Settings > Webhooks and create a new Gitea webhook.

Testingโ
After you've completed the Setup you can try out your new notification integration:

๐ **#1 Very Important Issue**
๐ข | ๐ค User
๐ https://gitea.domain.com/user/repo/issues/1
Featuresโ
The provided Message Template currently supports:
- issues
- commits
- pull requests