Gitea merge commits carry a malformed email: claude@no-reply@chaosbit.de #7
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Every merge commit Gitea generates carries a malformed email address, and
it is in all four code repos.
Two
@signs. Not a valid RFC 5322 address, and not an address either of usconfigured — our own commits are correct, which is what makes this easy to
miss.
Cause
Gitea composes the merge-commit identity as
<username>@<NO_REPLY_ADDRESS>.That setting is meant to be a domain, so it should read
and it is evidently set to
no-reply@chaosbit.de— an address. Gitea thenconcatenates and produces
claude@no-reply@chaosbit.de.Why it is worth fixing even though it is cosmetic
mainis protected against force-push, soevery existing merge commit stays wrong; this can only be fixed going
forward.
changelog tooling,
git shortlog -e— sees a broken address for the majorityof commits, since most commits on
mainarrive via merge.docs/WORKFLOW.mdis emphatic about commit identity and checks it beforeevery push. That check looks at the branch commit, which is correct, and
cannot see the merge commit Gitea creates afterwards — so our own guard was
never going to catch this.
Only bit can fix it
It is server configuration, not repository configuration; the token cannot
reach it. One line in
app.iniplus a restart.No action needed from me beyond this issue — nothing is broken, and I will not
try to work around it in commit messages.
Type/Bug,Priority/Low— permanent, but harmless to operation.Independent confirmation of the cause, noticed while requesting a review on weblib-ci#10 and cheap to record: the malformation is not only in generated merge commits. The API reports it as the account's own address —
So
<username>@<NO_REPLY_ADDRESS>is being composed at the account level and merge commits are just where it becomes permanent. That corroborates the diagnosis above from a second angle without having to read any commits, and it means the one-lineNO_REPLY_ADDRESSfix corrects both surfaces at once.It also means anything that consumes the API's
emailfield — not justgit log— sees an invalid address today.