stash set author display name to use email instead of user name

lokivog
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 31, 2013

Is it possible to change the display name stash users to display the author of each commit? Currently it shows the authors user name and I was wondering if that can be changed to show the authors email address. Sort of how you can do "git blame --show-email [file]". So I want to use email as the display name in the stash repository browser when browsing the repo.

1 answer

0 votes
cofarrell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 31, 2013

Hi,

I'm afraid that we don't currently have any mechanism for displaying that information in Stash. I suspect your best bet is watch/vote for this issue, which is about linking a committer to a user profile page (or some fallback):

https://jira.atlassian.com/browse/STASH-3235

Cheers,

Charles

lokivog
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 31, 2013

Hi Charles, thanks for the quick reply. The issue you referenced isn't exactly what I was looking for, although I do think that feature would be nice too. My question and issue is merely for display purposes on existing UI. My company is using ldap for authentication so every comitter's user name is each users issued company id which is meaningless for developers. If you want to see who made a change, it requiers looking at the committers Id and than looking that id up in our company directory, pretty tedious! I took a screen shot of it on jing, this might help explain it better: http://screencast.com/t/7rxsHCQRf

Basically we would like to configure the stash UI to display the author as author.email instead of author.username. Does that make sense and is that possible?

cofarrell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 1, 2013

Hi,

Sorry, I wasn't suggesting that the above issue was exactly what you were looking for, more that it's something that we plan on doing and will require a change to how we show the author. I imagine that by looking up the user details at that point we could also display their 'name' rather than what's recorded against the commit (unless the user couldn't be found). I think that would then be roughly equivalent to what you're looking for?

Something that I forgot to mention that might be able to help in the short term is our upcoming support in 2.5 for '.mailmap' files, which would allow you to override the displayed userid with a real name. This has the extra benefit that you would get the same result when running Git locally.

https://jira.atlassian.com/browse/STASH-3084

Other than that I'm not sure if we have any intention to reveal the email address as well. I will have to ask someone on my team and get back to you.

Cheers,

Charles

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events