Commit Graph
38 Commits
Author SHA1 Message Date
RhenCloud f14f8f317f fix(security): fully escape forge HTML 2026-10-24 16:05:29 +08:00
翅膀 76380ff1c0 fix(check): isolate updates by check suite
Same-named checks from different suites must not edit one message.
Include the suite or app identity and retain the former key for
controlled adoption of existing tracked messages.
2026-10-23 23:22:04 +08:00
翅膀 a95feefaf8 fix(formatter): hide actions on other forges
Action buttons call the GitHub API as the linked user.
Hide them for other forges to avoid operating on a same-named
GitHub repository.
2026-10-23 23:22:00 +08:00
翅膀 2e672034d0 fix(formatter): read security severity levels
The scanner severity is not the security severity of an alert.
Prefer the security level so critical and high alerts get the right
label and color.
2026-10-23 23:21:59 +08:00
翅膀 61be34da4f fix(formatter): render deployment state values
The deployment status object stringifies as [object Object].
Render its actual state in the status field.
2026-10-23 23:21:58 +08:00
翅膀 2911519f18 fix(gitea): link push authors to their forge
A Gitea author is not the same-named GitHub account.
Build author profile links from the originating forge.
2026-10-23 23:21:54 +08:00
翅膀 aca870374f fix(formatter): strip only leading ref prefixes
A short branch or tag may itself contain refs/heads or refs/tags.
Strip one leading full-ref prefix at the caller and keep short names
unchanged when generating labels and links.
2026-10-23 23:21:50 +08:00
翅膀 e44fc60c55 fix(formatter): preserve bounded markdown text
Code spans, fences, indentation and autolinks are Markdown content,
not HTML tags to strip. Preserve them while bounding cleanup input
and reusing results across routes for the same event.
2026-10-23 23:21:46 +08:00
翅膀 99d239ff4f fix(formatter): preserve invalid code points
Out-of-range numeric entities can throw while formatting a delivery.
Keep invalid code points verbatim instead of aborting the message.
2026-10-23 23:21:43 +08:00
github-actions[bot] 0e2e30ae1a chore: auto-fix lint & formatting [skip ci] 2026-10-02 21:18:20 +08:00
RhenCloud 3567c6d321 fix(formatter): link branch and tag titles 2026-10-01 18:40:02 +08:00
RhenCloud b7fd31a665 fix(push): handle unresolved bot authors 2026-10-01 18:33:17 +08:00
RhenCloud 1057a60de7 fix(push): show differing commit author 2026-09-30 18:52:07 +08:00
github-actions[bot] ae36c22fda chore: auto-fix lint & formatting [skip ci] 2026-09-26 06:58:56 +00:00
RhenCloud e607d41432 feat(workflow): render workflow_run jobs as colored diff block
List each job on its own line with a status emoji and, for completed
jobs, the duration. Discord colors the diff fence: '+' green for
success, '-' red for other finished conclusions, plain for
running/queued/pending. Telegram/Feishu collapse it to inline code.

Sync AGENTS.md, README(s), docs guide and supported-events tables.
2026-09-26 14:58:00 +08:00
RhenCloud fd6ccda411 fix(check): key check_run in-place edits on check name + head_sha
Providers that emit a fresh check run id per phase (e.g. Cloudflare Pages)
no longer post a new message for each status change; same name + commit
SHA now edits the existing message. Falls back to the run id when name or
head_sha is absent. Docs updated in sync.
2026-08-31 01:17:13 +08:00
RhenCloud cc8bb4182f fix(push): render created tags/branches as create events instead of 0 commits 2026-08-29 16:47:00 +08:00
RhenCloud b2db616865 fix(check): show build log link for failed check suites too
The Build Log field was only added to check_run messages; failed
check_suite messages now also link check_suite.details_url.
2026-08-27 21:43:32 +08:00
RhenCloud 8681723f2a feat(check): add build log link for failed Cloudflare checks
Failed check_run messages now include a Build Log field linking to
check_run.details_url (the Cloudflare build log page).
2026-08-27 21:43:26 +08:00
RhenCloud 9899cd01bf fix(telegram): render HTML with markdown-it and strip HTML from Discord bodies 2026-08-24 22:51:26 +08:00
RhenCloud 2975087262 fix(push): link branch ref in title as inline code 2026-08-17 00:01:32 +08:00
RhenCloud df0edbb581 refactor(push): move commits to description, comparison to changes field 2026-08-16 22:46:11 +08:00
github-actions[bot] ca6dfd3f64 chore: auto-fix lint & formatting [skip ci] 2026-08-15 11:24:23 +00:00
RhenCloud 7ac7bb7958 fix(render): link title head to the event object URL 2026-08-15 18:25:23 +08:00
RhenCloud 2f8a87048e feat(formatters): add updateKey for suite/deployment/comment edit-in-place 2026-08-15 18:18:52 +08:00
RhenCloud 3af50496a7 fix(formatters): strip HTML from comment bodies so bot notifications render cleanly 2026-08-15 17:55:38 +08:00
RhenCloud eaec039ad4 refactor(core): message tracker abstraction and formatter plugin registry 2026-08-15 17:03:39 +08:00
github-actions[bot] 17eefd3c8e chore: auto-fix lint & formatting [skip ci] 2026-08-14 01:01:12 +00:00
RhenCloud c982356e0c fix(formatters): use raster PNG forge icons Discord renders
- GitHub footer icon now uses fluidicon.png instead of favicon.ico —
  Discord silently drops .ico embed footer icons (png/jpg/webp/gif only)
- Gitea instances use {origin}/assets/img/favicon.png (verified on
  codeberg.org and gitea.com); links are still derived from the repo URL
- tests + docs updated to the new icon URLs
2026-08-14 08:59:51 +08:00
github-actions[bot] c58b800987 chore: auto-fix lint & formatting [skip ci] 2026-08-14 00:51:23 +00:00
RhenCloud 3f6f7f17b5 feat(groups): host-based forge sources with optional display name
- forgeSources entries are now { host, type, name? }: the repository URL's
  hostname is matched case-insensitively against host (github.com for GitHub,
  distinct hosts for multiple Gitea instances); the footer label is the
  optional name, falling back to the host
- GroupEditor renders one row per source: host input + type select + optional
  display name (grid layout); hostname validation mirrors the server
- fix: apiFetch sends Content-Type: application/json — h3's readBody only
  parses JSON bodies with that header, so every PUT/POST from the refactored
  console arrived as a raw string and failed with 'groups must be an array'
- hardening: readJsonBody (admin + actions) JSON-parses string bodies so curl
  and older clients without the content-type header still work
- regression test: groups PUT without content-type + forgeSources round-trip
- docs: groups.md/message-format.md (en/zh), AGENTS.md, config.example.yaml
2026-08-14 08:49:48 +08:00
github-actions[bot] 17d10db845 chore: auto-fix lint & formatting [skip ci] 2026-08-14 00:10:56 +00:00
RhenCloud 3dce114cec 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-'
2026-08-14 08:10:04 +08:00
RhenCloud a5324fb0ea fix(formatters): localize PR buttons, cap oversized content, dedupe status logic
- PR merge/close button labels now follow the group language (actions.merge/close)
  instead of hardcoded Chinese
- clamp content to Discord embed limits (title 256, description 4096, field value
  1024, 25 fields) in formatters plus a render-layer safety net; Telegram gets a
  tag-safe 4096-char cap (capHtml closes dangling tags)
- raise commit subject truncation from 72 to 200 chars (MAX_COMMIT_SUBJECT)
- extract workflowStatus/workflowRunStatus/statusColorKey helpers shared by
  check_run/check_suite/workflow_run/workflow_job
- dedupe deployment ref/sha fields via addDeploymentRefFields
- commit_comment without a commit id uses title_plain (no dangling ???????)
- tag pushes now report 'Tag created'; zh push title includes the {ref}
- sender profile link derives from the repo's forge origin instead of github.com
- group webhook log emoji injected via emojiPrefix, removed from locale files
- dispatchEvent accepts preloaded groups (single KV read per webhook)
- webhook 401 logs distinguish 'secret not configured' from 'invalid signature'
2026-08-14 07:41:19 +08:00
RhenCloud cf65111e4e fix(formatters): dedupe push count line, link workflow run name to actions 2026-08-13 19:37:20 +08:00
RhenCloud dfb65ef70d fix: link only the repo head in message titles, keep the subject plain 2026-08-13 19:18:55 +08:00
RhenCloud 84d8a5384d fix(push): render git push branch deletions as a delete message 2026-08-13 19:01:01 +08:00
RhenCloud b139712a91 feat: migrate to Nuxt 4 (Nitro) and Tailwind CSS v3 2026-08-13 17:43:33 +08:00