You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
useGpgSignerAuthor keeps the OpenPGP UID comment in the author name #61
area: coreTouches core library / runtime source codepriority: highNeeds attention soon — not blocking, but don't let it sitsemver: patchThis release contains only backwards-compatible bug fixesstatus: implementedBuilt and deployed, but not yet fully tested/verifiedtype: bugSomething is broken or not behaving as expected
With useGpgSignerAuthor (--use-gpg-signer-author), detectGitAuthor() (src/utils/git.mjs) reads the last commit's signer with git log -1 --format=%GS and parses it with parseSignerUid(). An OpenPGP user ID has the form Name (Comment) <email>, and the parser keeps the comment as part of the name:
Existing CLDMV headers use Nate Corcoran <CLDMV>, so the option can't be used to keep new headers consistent with them. Without the option, the author comes from git config user.name (Shinrai).
Fix
parseSignerUid() strips an OpenPGP UID comment, the parenthesised part before <email>, from the name. Nested or escaped parentheses in the comment are handled per RFC 4880's user ID convention.
A UID with no comment, no email or no name still parses as it does today.
Tests: a UID with a comment, without a comment, email only, name only, a parenthesis inside the name, an empty signer (unsigned commit falls back to user.name and then the log author), and --company suffixing on top.
Context
This came up while planning to roll fix-headers out to every CLDMV v4 repo. The rollout config will use useGpgSignerAuthor: true plus company: "CLDMV", so new files match the existing @Author: Nate Corcoran <CLDMV> headers.
Merged into next via #62 (437a798): parseSignerUid() drops the OpenPGP UID comment, so a signer of Nate Corcoran (2023 PC) <…> with --company CLDMV now gives @Author: Nate Corcoran <CLDMV>. Ships in v1.4.0 (release PR #47); this issue closes when that release lands on master.
area: coreTouches core library / runtime source codepriority: highNeeds attention soon — not blocking, but don't let it sitsemver: patchThis release contains only backwards-compatible bug fixesstatus: implementedBuilt and deployed, but not yet fully tested/verifiedtype: bugSomething is broken or not behaving as expected
Activity
Shinrai commentedon Sep 28, 2026
Merged into
nextvia #62 (437a798):parseSignerUid()drops the OpenPGP UID comment, so a signer ofNate Corcoran (2023 PC) <…>with--company CLDMVnow gives@Author: Nate Corcoran <CLDMV>. Ships in v1.4.0 (release PR #47); this issue closes when that release lands onmaster.release: v2.0.0 - re-cut the release notes as v2.0.0