Skip to content

Commit 5a12546

Browse files
committed
fix: also add the email identity as username identity if no username identity is present
Signed-off-by: Uroš Marolt <uros@marolt.me>
1 parent c77ba3c commit 5a12546

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

services/apps/data_sink_worker/src/service/activity.service.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,12 @@ export default class ActivityService extends LoggerBase {
342342
)
343343
if (emailFallback) {
344344
activity.username = emailFallback.value
345+
activity.member.identities.push({
346+
platform,
347+
type: MemberIdentityType.USERNAME,
348+
value: emailFallback.value,
349+
verified: emailFallback.verified,
350+
})
345351
} else {
346352
// No usable identity at all (e.g. git commit with empty author email).
347353
// Nothing to attribute — skip silently rather than error.

0 commit comments

Comments
 (0)