Page 1 of 1

Get git-username from custom operation

Posted: Thu Jan 07, 2021 7:15 pm
by Patrik
Hi,

is there a way to get the current git user name from within my implementation of AuthorOperationWithResult?

Thanks and regards,
Patrik

Re: Get git-username from custom operation

Posted: Fri Jan 08, 2021 12:02 pm
by cristi_talau
Hello,

The name of the Git user is also set as the "reviewer" name that is used for comments and change tracking. This name can be obtained by using

Code: Select all

authorDocumentModel.getReviewController().getReviewerAuthorName()
Best,
Cristian

Re: Get git-username from custom operation

Posted: Fri Jan 08, 2021 2:23 pm
by Patrik
Wow, that was easy - almost boring... ;)

Thanks a lot,
Patrik