Get git-username from custom operation

Patrik
Posts: 280
Joined: Thu Nov 28, 2013 9:32 am
Location: Hamburg/Germany
Contact:

Get git-username from custom operation

Post by Patrik » Thu Jan 07, 2021 7:15 pm

Hi,

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

Thanks and regards,
Patrik

cristi_talau
Posts: 340
Joined: Thu Sep 04, 2014 4:22 pm

Re: Get git-username from custom operation

Post by cristi_talau » Fri Jan 08, 2021 12:02 pm

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

Patrik
Posts: 280
Joined: Thu Nov 28, 2013 9:32 am
Location: Hamburg/Germany
Contact:

Re: Get git-username from custom operation

Post by Patrik » Fri Jan 08, 2021 2:23 pm

Wow, that was easy - almost boring... ;)

Thanks a lot,
Patrik

Post Reply