forgejo/web_src/js/components
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
..
ActionJobStep.test.js refactor: split ActionJobStepList out of RepoActionView (#10537) 2025-12-22 04:14:11 +01:00
ActionJobStep.vue refactor: split ActionJobStepList out of RepoActionView (#10537) 2025-12-22 04:14:11 +01:00
ActionJobStepList.test.js refactor: split ActionJobStepList out of RepoActionView (#10537) 2025-12-22 04:14:11 +01:00
ActionJobStepList.vue refactor: split ActionJobStepList out of RepoActionView (#10537) 2025-12-22 04:14:11 +01:00
ActionRunStatus.vue feat: ability to view previous logs for Actions runs that have been retried (#9017) 2025-09-04 22:46:22 +02:00
ActivityHeatmap.vue Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
ContextPopup.test.js ui: update pull request icons 2024-08-22 17:06:10 +02:00
ContextPopup.vue ui: update pull request icons (#4455) 2024-07-16 14:38:46 +00:00
DashboardRepoList.vue fix(ui): fix dashboard some style issues (#11461) 2026-03-02 05:04:57 +01:00
DiffCommitSelector.vue chore: remove not working PREFERRED_TIMESTAMP_TENSE setting (#9490) 2025-10-01 15:16:01 +02:00
DiffFileTree.vue Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
DiffFileTreeItem.vue Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
PullRequestMergeForm.test.js fix: apply signed-merge checks by merge style (#11403) 2026-04-09 20:26:27 +02:00
PullRequestMergeForm.vue fix: apply signed-merge checks by merge style (#11403) 2026-04-09 20:26:27 +02:00
RepoActionView.test.js fix: incorrect identification of outdated run attempts (#12021) 2026-04-08 20:03:10 +02:00
RepoActionView.vue fix: incorrect identification of outdated run attempts (#12021) 2026-04-08 20:03:10 +02:00
RepoActivityTopAuthors.test.js fix: don't stretch activity top author image (#10556) 2025-12-29 20:04:47 +01:00
RepoActivityTopAuthors.vue fix: don't stretch activity top author image (#10556) 2025-12-29 20:04:47 +01:00
RepoBranchTagSelector.vue feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
RepoCodeFrequency.vue fix(i18n): hardcoded strings in repository activity graphs (#11735) 2026-03-19 15:41:33 +01:00
RepoContributors.test.js fix: compare week as numbers and not as strings (#8882) 2025-08-13 22:28:12 +02:00
RepoContributors.vue fix: compare week as numbers and not as strings (#8882) 2025-08-13 22:28:12 +02:00
RepoRecentCommits.vue fix(i18n): hardcoded strings in repository activity graphs (#11735) 2026-03-19 15:41:33 +01:00