codefloe/forgejo-codefloe
Watch
4
12
Fork
You've already forked forgejo-codefloe
0

fix(signing): show the SSH signer name in commit notices #186

Merged
pat-s merged 2 commits from fix/signing-display-name into v16.0/forgejo-codefloe 2026-10-01 07:56:33 +00:00
Owner

SSH signing notices currently expose the server's public-key file path in the merge panel and web editor.
Display the configured SIGNING_NAME instead, so CodeFloe shows This commit will be signed with key "CodeFloe".
Fall back to the application name when the SSH signing name is blank.
Keep GPG key IDs and the actual key passed to Git unchanged.

Changed files:

  • README.md: document the signing-notice behavior in the existing Commit signing row.
  • services/asymkey/sign.go: add a shared display-name helper for SSH signing notices.
  • services/context/repo.go: use the display name in the web editor.
  • routers/web/repo/issue.go: use the display name in the pull-request merge panel.
  • services/asymkey/sign_test.go: cover named and unnamed SSH keys, missing keys, GPG IDs, and preservation of the key path passed to Git.

Validation: go test -tags 'sqlite sqlite_unlock_notify' ./services/asymkey ./services/context ./routers/web/repo passes.
Go formatting and git diff --check pass.
The commit hooks also pass backend lint and Swagger generation/validation.

SSH signing notices currently expose the server's public-key file path in the merge panel and web editor. Display the configured `SIGNING_NAME` instead, so CodeFloe shows `This commit will be signed with key "CodeFloe".` Fall back to the application name when the SSH signing name is blank. Keep GPG key IDs and the actual key passed to Git unchanged. Changed files: - `README.md`: document the signing-notice behavior in the existing Commit signing row. - `services/asymkey/sign.go`: add a shared display-name helper for SSH signing notices. - `services/context/repo.go`: use the display name in the web editor. - `routers/web/repo/issue.go`: use the display name in the pull-request merge panel. - `services/asymkey/sign_test.go`: cover named and unnamed SSH keys, missing keys, GPG IDs, and preservation of the key path passed to Git. Validation: `go test -tags 'sqlite sqlite_unlock_notify' ./services/asymkey ./services/context ./routers/web/repo` passes. Go formatting and `git diff --check` pass. The commit hooks also pass backend lint and Swagger generation/validation.
pat-s force-pushed fix/signing-display-name from 782e984d28
Some checks failed
testing / test-unit (pull_request) Has been cancelled
testing / test-e2e (pull_request) Has been cancelled
testing / test-remote-cacher (redis) (pull_request) Has been cancelled
testing / test-remote-cacher (valkey) (pull_request) Has been cancelled
testing / test-remote-cacher (garnet) (pull_request) Has been cancelled
testing / test-mysql (pull_request) Has been cancelled
testing / test-pgsql (pull_request) Has been cancelled
testing / test-sqlite (pull_request) Has been cancelled
testing / backend-checks (pull_request) Has been cancelled
testing / frontend-checks (pull_request) Has been cancelled
to 0c48e65318
Some checks failed
testing / frontend-checks (pull_request) Successful in 1m21s
testing / backend-checks (pull_request) Successful in 5m8s
testing / test-unit (pull_request) Successful in 12m25s
testing / test-remote-cacher (garnet) (pull_request) Failing after 2m56s
testing / test-remote-cacher (valkey) (pull_request) Successful in 3m10s
testing / test-remote-cacher (redis) (pull_request) Successful in 3m10s
testing / test-e2e (pull_request) Successful in 35m36s
testing / test-mysql (pull_request) Successful in 35m43s
testing / test-sqlite (pull_request) Successful in 54m53s
testing / test-pgsql (pull_request) Successful in 1h0m3s
2026-09-30 19:36:58 +00:00
Compare
pat-s scheduled this pull request to auto merge when all checks succeed 2026-09-30 19:37:13 +00:00
Merge branch 'v16.0/forgejo-codefloe' into fix/signing-display-name
All checks were successful
testing / frontend-checks (pull_request) Successful in 1m59s
testing / backend-checks (pull_request) Successful in 6m29s
testing / test-pgsql (1/4) (pull_request) Successful in 21m39s
testing / test-unit (pull_request) Successful in 11m30s
testing / test-pgsql (2/4) (pull_request) Successful in 18m35s
testing / test-pgsql (3/4) (pull_request) Successful in 22m44s
testing / test-e2e (pull_request) Successful in 28m30s
issue-labels / backporting (pull_request_target) Has been skipped
milestone / set (pull_request_target) Has been skipped
testing / test-pgsql (4/4) (pull_request) Successful in 21m26s
f16d5aeabc
pat-s merged commit ebb58aece9 into v16.0/forgejo-codefloe 2026-10-01 07:56:33 +00:00
pat-s deleted branch fix/signing-display-name 2026-10-01 07:56:34 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
codefloe/forgejo-codefloe!186
No description provided.