summaryrefslogtreecommitdiff
path: root/src/weepinbell/webhook.clj
AgeCommit message (Collapse)Author
10 daystest, webhook: tidy up webhook; add testseltrac
- (send-webhook) does not need to validate URLs; (trigger) already does that; replace validation logic with :pre conditional - (make-request) does not need to fallback to empty string when event-key is nil. it should never be nil.
2026-10-13style: cljfmt everythingeltrac
2026-09-27webhook: fix AssertionError when event keys are not complete in user's configeltrac
2026-09-23webhook: fix not identifying custom functions as functionseltrac
2026-09-19processor, webhook: send webhooks with customizable payloadeltrac
- processor will call hook functions with webmention data - refactor webhook.clj massively - add dynamic parameter substitution for urls, e.g. {source} {target} {event}...... - add config option :webhook-request, a function with parameters [hook, data] that returns a map (resembling {:headers ... :body ...}). webhook.clj uses this function to generate payload. - allow map besids URL string in config option :webhook. if it's a URL, sends webhook request to it with payload generated by :webhook-request; if it's a map, it should be like {:url ... :request-fn ...}, which specifies a payload generator. - add request-fn preset :ntfy
2026-09-18docs: add missing docstrings and mark certain components as deprecatedeltrac
2026-09-16style: format the codebaseeltrac
starting from now, every commit should be cljfmt-fixed
2026-09-15httpclient, webhook, verifier: add weepinbell.http.client to wrap ↵eltrac
org.httpkit.client comment
2026-09-14processor, verifier, webhook: tidy up log msg/level; improve code styleeltrac
processor: tidy up log msg and level; improve code style - all messages start with a lower-case letter - all webmention-related logging contains first 8-digit of its id - use WARN level when something is deleted, not INFO - use WARN level when exceptional cases happen, not ERROR - get rid of emojis in log messages utils: digest-short function for logging verifier: tidy up log messages; improve code style - use `cond` instead of nested `if`s - same message format as processor's logs webhook: tidy up log messages; send webhooks robustly - use same logging formats as processor and verifier - handle error, 4xx, 5xx status and log them - move logging inside webhook module, away from core.clj
2026-09-11refactor(receiver, webhook, utils): replace commons validatoreltrac
used java.net to create a small validator that passes the test refactor: rename validator to url, and move other url funcs here
2026-09-11refactor(verifier, utils, webhook): replace hato with http-kiteltrac
since http-kit handle both server and client, hato as a client can be replaced
2026-09-10refactor(verifier, webhook): replace clj-http with hato #9eltrac
2026-05-09style: format all source codeeltrac
2026-04-22refactor: simple DI using callbackseltrac
2026-04-20feat: add more webhookseltrac
on-create, on-update and on-delete
2026-03-28fix: make sure it's valid url before trying to trigger webhookeltrac
2026-03-17feat(webhook): trigger webhooks on receiving new mentionseltrac