forgejo/services/webhook
Gusted 77dbc35138 chore: add modernizer linter (#11936)
- Go has a suite of small linters that helps with modernizing Go code by using newer functions and catching small mistakes, https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/modernize.
- Enable this linter in golangci-lint.
- There's also [`go fix`](https://go.dev/blog/gofix), which is not yet released as a linter in golangci-lint: https://github.com/golangci/golangci-lint/pull/6385

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11936
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2026-04-02 03:29:37 +02:00
..
shared Actions Failure, Succes, Recover Webhooks (#7508) 2025-06-03 14:29:19 +02:00
sourcehut chore: remove branding from context imports (#9628) 2025-10-11 01:52:51 +02:00
TestPushCommits feat: add commit limit for webhook payload (#6797) 2025-02-07 19:26:50 +00:00
default.go feat(ui): redesign migration selection screen (#6795) 2025-04-19 13:51:35 +00:00
default_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
deliver.go chore(cleanup): replaces unnecessary calls to formatting functions by non-formatting equivalents (#7994) 2025-05-29 17:34:29 +02:00
deliver_test.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
dingtalk.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
dingtalk_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
discord.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
discord_test.go fix: webook/discord: omit empty embeds.footer from the payload for Spacebar compatibility (#11588) 2026-03-10 16:50:04 +01:00
feishu.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
feishu_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
general.go feat: place user names into inline code blocks for Slack (#10147) 2025-11-25 23:24:05 +01:00
general_test.go feat: place user names into inline code blocks for Slack (#10147) 2025-11-25 23:24:05 +01:00
gogs.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
main_test.go chore: move all test blank imports in a single package (#10662) 2026-01-02 05:32:32 +01:00
matrix.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
matrix_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
msteams.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
msteams_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
notifier.go feat: make upload URL compatible with GitHub API (#9285) 2025-09-15 15:53:35 +02:00
notifier_test.go Actions Failure, Succes, Recover Webhooks (#7508) 2025-06-03 14:29:19 +02:00
packagist.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
packagist_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
slack.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
slack_test.go feat: place user names into inline code blocks for Slack (#10147) 2025-11-25 23:24:05 +01:00
telegram.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
telegram_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
webhook.go fix: allow test delivery for webhooks not enabled for push events (#11073) 2026-01-27 23:19:34 +01:00
webhook_test.go fix: allow test delivery for webhooks not enabled for push events (#11073) 2026-01-27 23:19:34 +01:00
wechatwork.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00