forgejo/routers/web/repo/setting
Gusted 4b56c05e65 fix: validate input for default_{merge,update}_style (#7395)
- Add `binding:"In(...)"` to the `default_merge_style` and `default_update_style` fields to only accept recognized merge and update styles.
- Resolves https://codeberg.org/forgejo/forgejo/issues/7389
- Added integration test for the API (`binding` works in the exact same way for the API and web routes).

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7395
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-03-31 03:33:18 +00:00
..
avatar.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
collaboration.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
default_branch.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
deploy_key.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
git_hooks.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
lfs.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
main_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
protected_branch.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
protected_tag.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
runners.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
secrets.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
setting.go fix: validate input for default_{merge,update}_style (#7395) 2025-03-31 03:33:18 +00:00
settings_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
variables.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
webhook.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00