Use author name of the current comment not the one of the issue

Signed-off-by: pep <pep@bouah.net>
This commit is contained in:
pep 2026-06-11 22:03:16 +02:00
commit 5fc65c7636
No known key found for this signature in database
GPG key ID: DEDA74AEECA9D0F2

View file

@ -38,7 +38,11 @@ impl From<FjIssue> for Issue {
action: Some(other.action.into()), action: Some(other.action.into()),
title: other.issue.title, title: other.issue.title,
author: User { author: User {
name: other.issue.user.login, name: other
.comment
.as_ref()
.map(|c| c.user.login.clone())
.unwrap_or(other.issue.user.login),
}, },
repository: Repository { repository: Repository {
name: other.repository.name, name: other.repository.name,
@ -60,7 +64,11 @@ impl From<FjIssue> for Note {
merge_request: None, merge_request: None,
snippet: false, snippet: false,
author: User { author: User {
name: other.issue.user.login, name: other
.comment
.as_ref()
.map(|c| c.user.login.clone())
.unwrap_or(other.issue.user.login),
}, },
repository: Repository { repository: Repository {
name: other.repository.name, name: other.repository.name,