gitea/modules
Lunny Xiao 23971a77a0
Add tests for webhook and fix some webhook bugs (#33396) (#33442)
This PR created a mock webhook server in the tests and added integration
tests for generic webhooks.
It also fixes bugs in package webhooks and pull request comment
webhooks.

This also corrected an error on the package webhook. The previous
implementation uses a `User` struct as an organization, now it has been
corrected but it will not be consistent with the previous
implementation, some fields which not belong to the organization have
been removed.

Backport #33396
Backport part of #33337
2025-02-02 14:44:50 +08:00
..
actions Fix wrong status of `Set up Job` when first step is skipped (#32120) 2024-09-24 18:34:08 +00:00
activitypub Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
analyze Rename code_langauge.go to code_language.go (#26377) 2023-08-07 15:00:53 -04:00
assetfs Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
auth Fix pam auth test regression (#33169) (#33174) 2025-01-09 13:33:50 +00:00
avatar Use `crypto/sha256` (#29386) 2024-02-25 13:32:13 +00:00
badge Implement actions badge svgs (#28102) 2024-02-27 18:56:18 +01:00
base Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
cache fix(cache): cache test triggered by non memory cache (#33220) (#33221) 2025-01-12 09:19:37 +08:00
charset refactor: remove redundant err declarations (#32381) 2024-10-30 19:36:24 +00:00
container Refactor sidebar assignee&milestone&project selectors (#32465) 2024-11-11 04:07:54 +08:00
csv Refactor markup render system (#32589) 2024-11-22 05:48:09 +00:00
dump Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
emoji Update emoji set to Unicode 15 (#25595) 2023-06-29 16:29:48 +00:00
eventsource Final round of `db.DefaultContext` refactor (#27587) 2023-10-14 08:37:24 +00:00
generate Refactor JWT secret generating & decoding code (#29172) 2024-02-16 15:18:30 +00:00
git Fix `GetCommitBranchStart` bug (#33298) (#33421) 2025-02-01 09:43:10 +01:00
gitgraph Fix milestone deadline and date related problems (#32339) 2024-11-05 07:46:40 +00:00
gitrepo Refactor markup package (#32399) 2024-11-04 10:59:50 +00:00
globallock Make API "compare" accept commit IDs (#32801) 2024-12-12 08:10:09 +00:00
graceful Update golangci-lint to v1.62.2, fix issues (#32845) 2024-12-15 02:31:07 +00:00
hcaptcha Consume hcaptcha and pwn deps (#22610) 2023-01-29 09:49:51 -06:00
highlight Add option to disable ambiguous unicode characters detection (#28454) 2023-12-17 14:38:54 +00:00
hostmatcher Support allowed hosts for migrations to work with proxy (#32025) 2024-09-11 05:47:00 +00:00
htmlutil Refactor markup render system (#32533) 2024-11-18 13:25:42 +08:00
httpcache Fix wrong last modify time (#32102) 2024-09-21 21:56:25 +00:00
httplib Fix SSH LFS memory usage (#33455) (#33460) 2025-01-31 11:30:16 +00:00
indexer Fix bleve fuzziness search (#33078) (#33087) 2025-01-02 21:45:14 +00:00
issue/template bump to go 1.23 (#31855) 2024-09-10 02:23:07 +00:00
json Replace `interface{}` with `any` (#25686) 2023-07-04 18:36:08 +00:00
label Make label templates have consistent behavior and priority (#23749) 2023-04-10 16:44:02 +08:00
lfs Revert empty lfs ref name (#33454) (#33457) 2025-01-31 10:27:23 +00:00
lfstransfer Fix SSH LFS memory usage (#33455) (#33460) 2025-01-31 11:30:16 +00:00
log Deprecated gopid in log (#32932) 2024-12-20 16:20:51 +00:00
markup Update go tool dependencies (#32916) (#33355) 2025-01-22 11:37:47 -05:00
mcaptcha Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
metrics Rename project board -> column to make the UI less confusing (#30170) 2024-05-27 08:59:54 +00:00
migration Support migrating GitHub/GitLab PR draft status (#32242) 2024-10-13 22:58:13 +03:00
nosql Update tool dependencies, lock govulncheck and actionlint (#25655) 2023-07-09 11:58:06 +00:00
optional Resolve lint for unused parameter and unnecessary type arguments (#30750) 2024-04-29 08:47:56 +00:00
options Use a general approach to access custom/static/builtin assets (#24022) 2023-04-12 18:16:45 +08:00
packages Fix package error handling and npm meta and empty repo guide (#33112) 2025-01-06 14:17:28 +08:00
paginator Use more specific test methods (#24265) 2023-04-22 17:56:27 -04:00
pprof Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
private Fix SSH LFS memory usage (#33455) (#33460) 2025-01-31 11:30:16 +00:00
process Update misspell to 0.5.1 and add `misspellings.csv` (#30573) 2024-04-27 08:03:49 +00:00
proxy Use proxy for pull mirror (#22771) 2023-02-11 08:39:50 +08:00
proxyprotocol Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
public Refactor CORS handler (#28587) 2023-12-25 20:13:18 +08:00
queue Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
recaptcha Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
references fix trailing comma not matched in the case of alphanumeric issue (#32945) (#32959) 2024-12-23 06:08:35 +08:00
regexplru Upgrade go dependencies (#25819) 2023-07-14 11:00:31 +08:00
repository Trivial fixes (#33304) (#33312) 2025-01-18 03:09:17 +08:00
secret Use `crypto/sha256` (#29386) 2024-02-25 13:32:13 +00:00
session Improve oauth2 client "preferred username field" logic and the error handling (#30622) 2024-04-25 11:22:32 +00:00
setting Fix bleve fuzziness search (#33078) (#33087) 2025-01-02 21:45:14 +00:00
sitemap Fix sitemap (#22272) 2022-12-30 23:31:00 +08:00
ssh Fine tune ssh related comments and code (#32846) 2024-12-15 06:07:50 +00:00
storage Fix user avatar (#33439) 2025-01-30 17:11:13 +08:00
structs Add tests for webhook and fix some webhook bugs (#33396) (#33442) 2025-02-02 14:44:50 +08:00
svg Refactor markup render system (#32533) 2024-11-18 13:25:42 +08:00
sync Use global lock instead of NewExclusivePool to allow distributed lock between multiple Gitea instances (#31813) 2024-09-06 10:12:41 +00:00
system Refactor testfixtures (#33028) 2024-12-30 02:49:49 +00:00
templates Make tracked time representation display as hours (#33315) (#33334) 2025-01-21 06:49:58 +08:00
test Remove sub-path from container registry realm (#31293) 2024-06-09 16:29:29 +08:00
testlogger Improve testing and try to fix MySQL hanging (#32515) 2024-11-15 23:45:07 +08:00
timeutil Refactor DateUtils and merge TimeSince (#32409) 2024-11-04 11:30:00 +00:00
translation Render embedded code preview by permlink in markdown (#30234) 2024-04-02 17:48:27 +00:00
turnstile Add new captcha: cloudflare turnstile (#22369) 2023-02-05 15:29:03 +08:00
typesniffer Add avif image file support (#32508) 2024-11-15 00:55:50 +00:00
updatechecker Replace more db.DefaultContext (#27628) 2023-10-15 17:46:06 +02:00
uri Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
user Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
util Update go tool dependencies (#32916) (#33355) 2025-01-22 11:37:47 -05:00
validation Validate OAuth Redirect URIs (#32643) 2024-11-28 10:50:27 +08:00
web Refactor markdown editor and use it for milestone description editor (#32688) 2024-12-04 02:11:34 +00:00
webhook Add tests for webhook and fix some webhook bugs (#33396) (#33442) 2025-02-02 14:44:50 +08:00
zstd Support compression for Actions logs (#31761) 2024-08-09 10:10:30 +08:00