# GitHub comment impersonation

**URL:** https://community.exalate.com/t/github-comment-impersonation/4293
**Category:** General Questions
**Tags:** cloud-github, migrated\_question
**Created:** [November 4, 2024, 6:45am UTC](https://community.exalate.com/t/github-comment-impersonation/4293 "2024-11-04T06:45:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)
#### Post date: [November 4, 2024, 6:45am UTC](https://community.exalate.com/t/github-comment-impersonation/4293/1 "2024-11-04T06:45:26Z")

</div>

_Originally asked by Guilherme Duarte on 28 July 2020 [(original question)](https://oldcommunity.exalate.com/questions/11341030)_

* * *

Is it possible to impersonate comments on GitHub during import from an external source?

I’ve tried the documented methods but with no luck… Source: [Github Cloud](https://oldcommunity.exalate.com/pages/viewpage.action?pageId=2588958)_(old community)_

* * *

---

<div class="post-metadata">

### Author: ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)
#### Post date: [November 4, 2024, 6:45am UTC](https://community.exalate.com/t/github-comment-impersonation/4293/2 "2024-11-04T06:45:27Z")

</div>

_Answer by Ariel Aguilar on 14 July 2021_

Hi Guilherme,

The best you could do since there is a limitation with the Proxy user on Github, the name cannot be modified. Then, you can impersonate the author on comments as you add an indicator string. So yo could do:

```auto
issue.comments = commentHelper.mergeComments(issue, replica,                      
                    {
                       comment ->
                       comment.body =
                          "[" + comment.author.email + "] " +
                          comment.body + "\n" 
                    }
)
//This will help to add a reference from the email/author coming from Jira on each GitHub comment.

```

Kind regards,

Ariel

* * *
