gitea/services
Giteabot 66ccae8b90
Fix discord webhook 400 status code when description limit is exceeded (#34084) (#34124)
Backport #34084 by @Mopcho

Fixes [#34027](https://github.com/go-gitea/gitea/issues/34027)

Discord does not allow for description bigger than 2048 bytes. If the
description is bigger than that it will throw 400 and the event won't
appear in discord. To fix that, in the createPayload method we now slice
the description to ensure it doesn’t exceed the limit.

---------

Co-authored-by: Mopcho <47301161+Mopcho@users.noreply.github.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2025-04-05 02:08:04 +00:00
..
actions Fix auto concurrency cancellation skips commit status updates (#33764) (#33849) 2025-03-11 16:51:58 +00:00
agit Add reviewers selection to new pull request (#32403) 2024-11-09 04:48:31 +00:00
asymkey Fix some pending problems (#29985) 2024-03-22 19:17:30 +08:00
attachment Include file extension checks in attachment API (#32151) 2024-11-06 21:34:32 +00:00
auth Fix context usage (#33554) (#33557) 2025-02-11 19:46:27 +08:00
automerge Add new event commit status creation and webhook implementation (#27151) 2024-11-07 06:41:49 +00:00
context Do not show 500 error when default branch doesn't exist (#34096) (#34097) 2025-04-02 18:16:41 +08:00
contexttest Check if reverse proxy is correctly configured (#30890) 2024-05-10 20:07:01 +08:00
convert Do not call "git diff" when listing PRs (#33817) 2025-03-08 07:41:51 +00:00
cron Use default Git timeout when checking repo health (#33593) (#33598) 2025-02-14 15:38:55 +00:00
doctor add additional ReplaceAll in pathsep to cater for different pathsep (#34061) (#34070) 2025-03-30 05:51:08 +00:00
externalaccount allow synchronizing user status from OAuth2 login providers (#31572) 2024-07-16 20:33:16 +02:00
feed Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
forms Fix commit status events (#33320) (#33493) 2025-02-05 11:35:47 +08:00
gitdiff Try to figure out attribute checker problem (#33901) (#33902) 2025-03-17 11:59:51 -07:00
indexer Update issue indexer after merging a PR (#30715) 2024-05-08 14:45:15 +00:00
issue Pull request updates will also trigger code owners review requests (#33744) (#34045) 2025-03-28 17:24:31 +00:00
lfs Fix SSH LFS memory usage (#33455) (#33460) 2025-01-31 11:30:16 +00:00
mailer Support for email addresses containing uppercase characters when activating user account (#32998) (#33001) 2024-12-27 11:41:41 +00:00
markup Fix context usage (#33554) (#33557) 2025-02-11 19:46:27 +08:00
migrations Remove aws go sdk package dependency (#33029) (#33047) 2024-12-30 06:55:06 +00:00
mirror Fix mirror bug (#33597) (#33607) 2025-02-15 21:17:34 -08:00
notify Add new event commit status creation and webhook implementation (#27151) 2024-11-07 06:41:49 +00:00
oauth2_provider Introduce OrgList and add LoadTeams, optimaze Load teams for orgs (#32543) 2024-11-26 21:55:06 +00:00
org Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
packages Fix invalid version in RPM package path (#34112) (#34115) 2025-04-03 21:18:46 +00:00
projects Fix project issues list and counting (#33594) (#33619) 2025-02-18 00:59:32 +08:00
pull Pull request updates will also trigger code owners review requests (#33744) (#34045) 2025-03-28 17:24:31 +00:00
release Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
repository Pull request updates will also trigger code owners review requests (#33744) (#34045) 2025-03-28 17:24:31 +00:00
secrets Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
task Fix "force private" logic (#31012) 2024-05-20 00:56:45 +00:00
uinotification Penultimate round of db.DefaultContext refactor (#27414) 2023-10-11 04:24:07 +00:00
user Move team related functions to service layer (#32537) 2024-11-27 21:12:26 +00:00
webhook Fix discord webhook 400 status code when description limit is exceeded (#34084) (#34124) 2025-04-05 02:08:04 +00:00
webtheme Initial support for colorblindness-friendly themes (#30625) 2024-04-24 00:18:41 +08:00
wiki Use global lock instead of NewExclusivePool to allow distributed lock between multiple Gitea instances (#31813) 2024-09-06 10:12:41 +00:00