jojo/templates
abdo e16dc2ebfd fix: apply signed-merge checks by merge style (#11403)
Fixes #6438

When a protected branch requires signed commits and no signing key is available, fast-forward-only merges should still be allowed because they do not create a new commit.

This patch applies signing checks by merge behaviour/style instead of one global gate:

- pass `mergeStyle` through `CheckPullMergeable(...)` in web/API/automerge paths
- require signing for commit-creating styles (`merge`, `rebase`, `rebase-merge`, `squash`)
- bypass signing precheck only for `fast-forward-only`
- align merge UI options with backend behaviour so signing-dependent styles are unavailable when signing cannot happen
- add Go unit tests for merge-style signing requirements
- add frontend unit coverage for the no-allowed-merge-styles guard

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11403
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: abdo <dev@abdo.wtf>
Co-committed-by: abdo <dev@abdo.wtf>
2026-04-09 20:26:27 +02:00
..
admin feat: add admin views for federation configuration, hosts and users (#11115) 2026-04-09 19:38:33 +02:00
api/packages/pypi Update templates/api/packages/pypi/simple.tmpl 2024-04-12 16:43:30 +00:00
base Add aria-current="page" to active navbar items (#11887) 2026-03-31 23:02:10 +02:00
custom [FEAT] Repository flags 2024-02-05 16:09:42 +01:00
demo chore(ui): change /devtest to /-/demo (#11019) 2026-01-26 13:12:25 +01:00
explore fix(ui): use octicon-repo-forked in repo list (#10227) 2025-11-26 11:21:20 +01:00
htmx fix(ui): Make 'Clear milestone' work with HTMX (#8266) 2025-08-11 20:10:10 +02:00
mail fix: release email links (#9690) 2025-10-16 16:12:32 +02:00
moderation feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
org feat: "Add member" button in org members list (#11848) 2026-03-31 02:56:12 +02:00
package fix: RPM registry addrepo instructions (#11478) 2026-03-07 19:05:29 +01:00
projects fix(ui): update sort dropdown structure for consistency across templates (#11423) 2026-02-24 04:21:59 +01:00
repo fix: apply signed-merge checks by merge style (#11403) 2026-04-09 20:26:27 +02:00
shared fix: display runner version on details page (#12059) 2026-04-09 16:51:16 +02:00
status fix(ui): remove extra helpers from statuspages (#9753) 2025-10-20 12:03:58 +02:00
swagger feat: add /actions/runs/{id}/jobs (#11915) 2026-04-06 03:43:41 +02:00
user fix: URL-encode login provider name in the href attribute (#10301) 2026-03-31 21:51:57 +02:00
webhook chore: rename SafeHTML to TrustHTML (#11481) 2026-03-08 02:41:37 +01:00
home.tmpl Split Forgejo landing page template to allow patching or removing Forgejo introduction section (#6675) 2025-02-03 08:41:52 +00:00
home_forgejo.tmpl Split Forgejo landing page template to allow patching or removing Forgejo introduction section (#6675) 2025-02-03 08:41:52 +00:00
install.tmpl Added alt's to <img> 2025-01-31 21:22:00 +00:00
post-install.tmpl [BRANDING] Custom loading animation for Forgejo 2024-02-05 16:02:13 +01:00