mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-20 17:13:49 +00:00
feat(groups): optional forge source label in message footers
- Group.forgeLabel (default off, editable per group in the console) shows the source forge on every message the group's routes dispatch - Discord embed footer: forge name next to the repo + the site's favicon as icon_url (Gitea instance's own favicon from its origin) - Telegram footer: hyperlinked site name (GitHub or Gitea hostname); custom webhooks render a plain 'Custom' label - forgeInfo() derives branding from event.provider + repository.html_url; dispatch attaches it to the NeutralMessage like mentionRoleIds - validateGroups accepts forgeLabel booleans; GroupEditor gains the toggle - tests: forgeInfo unit, discord/telegram footer render, dispatch on/off - docs: groups.md + message-format.md (en/zh), config.example.yaml, AGENTS.md - fix: wrangler.jsonc compatibility_date was an incomplete '2026-'
This commit is contained in:
19 files changed
+273
-16
No files matched your search
@@ -14,6 +14,7 @@ groups:
|
||||
# providers: ["github", "gitea"] # restrict to source platforms (optional; empty = all)
|
||||
# installationId: 12345678 # GitHub App installation binding (auto-created on installation.created)
|
||||
# emoji: true # include emoji in messages (default true)
|
||||
# forgeLabel: false # show the forge source (GitHub / Gitea / custom) in message footers (default false)
|
||||
# lang: "en" # message language for this group's routes (en/zh, default en)
|
||||
# Webhook log channel: a Discord channel/thread or Telegram chat/topic that
|
||||
# receives a summary of every webhook this group's routes dispatch.
|
||||
|
||||
Reference in new issue
Block a user