star7th / star7th/coolmonitor

webhook 测试通知

Open
#58 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
877
Forks
107
PR merge metrics
No merged PRs in 30d

Description

一直测试失败,查了下代码,发现测试通知接口是使用固定webhookData,而不是自定义的body template

src/app/api/settings/notifications/test/route.ts 165行

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/app/api/settings/notifications/test/route.ts around line 165 and inspect how the test notification builds its webhook payload. Compare the fixed webhookData with the configured custom body template. Done means the test notification uses the custom template and the webhook test no longer fails for that configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.