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:
parent
43106fc657
commit
5fc65c7636
1 changed files with 10 additions and 2 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue