Open
Description
Description
We should allow for custom webhooks. And while we're at it, migrate current webhooks into the new format (This is make it easy for people to remove slack-support (or rename to Mattermost) link to issue ).
I see this being interated in 5 steps (maybe less depending on size of PRs)
- Add a new webhook-type for custom payloads, this one reads
{name}_payload.tmpl
and logo{name}.png
fromoptions/webhooks/
andcustom/webhooks/
. - Add UI for actually enabling them
- Support for "Metadata", as in
Name
, and custom fields (for config-page). Should be in a file...
Could also add support for URL-based icon (to reuse gitea-logo) - Support for sending custom Headers
- Migrates all existing Slack & Gitea webhooks to the new format 🎉
The way I see it we'd end up with this:
/options/webhooks/
/gitea.png
/gitea_payload.tmpl
/gitea_headers.tmpl
/gitea_metadata.yml
/slack.png
/slack_payload.tmpl
/slack_headers.tmpl
/slack_metadata.yml
/custom/webhooks/
/foobar.png
/foobar_payload.tmpl
/foobar_headers.tmpl
/foobar_metadata.yml
Screenshots
Will try to make mockup screenshots