summary refs log tree commit diff
path: root/src/api/routes/webhooks (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Attempt 1 dev/openapi-improvementsRory&2025-10-163-6/+6
|
* Reorganise schemas a little bitRory&2025-10-153-3/+4
|
* Pass mergeParams: true to new router calls due to express behavior changeRory&2025-09-303-3/+3
|
* Clean up unused importsRory&2025-09-301-1/+0
|
* Proxy avatar URL + adjust event logicZane Helton2025-06-291-17/+132
| | | | | | | | I've proxied the URLs with `getProxyUrl` specifying the size as 80x80. I've also adjusted the event logic so that unstarring doesn't trigger an alert and I've disabled the 'watch' event because Discord doesn't use it either.
* Make tsc happy when using strings as Date in embedZane Helton2025-06-292-2/+22
| | | | | | | | | | | | | Validation on embeds has interesting behavior. Embeds have a `timestamp` property that is of type `Date`. However when providing a Date, `WebhookExecuteSchema` silently ends the operation. The resolution was to use strings and to annotate them with `// @ts-expect-error`. This was not my first choice, but it was the best option I saw. The other option is to allow `Embeds` to pass strings as a timestamp but I'd want a second opinion before making that change.
* Refactor `/github` endpoint into it's own fileZane Helton2025-06-292-561/+423
|
* Capitalize `ref_type` when using in embedZane Helton2025-06-291-1/+2
| | | | | | | | | The GitHub API provides `ref_type` as lowercase. For consistency, this adds a utility function and makes use of it when formatting the `create` event from GitHub. tag => Tag branch => Branch
* Implement webhook handler for GitHubZane Helton2025-06-291-136/+551
| | | | | | I've created a middleware that runs when `/github` is appended to the webhook URL. The middleware parses the GitHub webhook and turns it into usable embeds.
* Validate Name for webhooks enforced moreroot2025-03-251-31/+1
|
* Added better user configuration and removed extra loggingroot2025-03-251-10/+10
|
* Updated error message for empty webhook update bodyroot2025-03-242-2/+2
|
* Added Name Validation utility functionroot2025-03-242-32/+8
|
* Fixed errors in authorization for webhooks with tokensroot2025-03-232-5/+306
|
* PrettierTomatoCake2024-07-181-1/+2
|
* Consistent relations, url property, src channelTomatoCake2024-07-182-3/+18
|
* Perms for GET webhook, url propertyTomatoCake2024-07-182-11/+32
|
* Fix ESLint & prettierTomatoCake2024-07-182-1/+2
|
* webhook fixes & username/avatar property for msgTomatoCake2024-07-181-1/+24
|
* Start implementing webhooksPuyodead12023-12-102-0/+247