slack icon indicating copy to clipboard operation
slack copied to clipboard

Wrong username on commits

Open lord-enzo opened this issue 5 years ago • 11 comments

Sometimes, when doing a commit, another user is displayed on the channel as the commiter, instead of the actual one.

If you click the commit link, in GitHub is properly addressed, it's just the channel that displays another user within our organisation (always the same one).

For example, in commit 35123b1982632730908c980f0b3f4ff720ae7c48 done at 12:31, we got this notification in Slack: Screenshot 2019-03-22 at 12 53 16

But it was actually done by me (@lord-enzo ), not the user on the image...

lord-enzo avatar Mar 22 '19 11:03 lord-enzo

Thanks for opening this issue! If you would like to help implement an improvement, read more about contributing and consider submitting a pull request.

welcome[bot] avatar Mar 22 '19 11:03 welcome[bot]

I've experienced this problem for the past months, but today it suddenly showed the correct name in our slack channel. If someone else can verify the same thing this issue might be a non-issue :)

Edit: I just reazlied it randomly started working due to a fresh OS, so there is some variable set per computer that doesn't reflect what the git bash user is.

upscalebaby avatar Sep 16 '19 13:09 upscalebaby

Same issue in our channel

hhijazi avatar Oct 12 '19 21:10 hhijazi

Experiencing this issue too. Does anyone know of a fix?

FIX: This was happening to me after I set up 2FA for my account. Then, at my place of work, my commits were showing up as someone else. I fixed it by wiping my credentials from the keychain, and re-entering my username and password.

jackrieger avatar Dec 03 '19 16:12 jackrieger

Happening here too.

mcurtes avatar Apr 14 '20 13:04 mcurtes

Experiencing the same thing

kylepeeler avatar Oct 06 '20 16:10 kylepeeler

One thing that fixed it was to delete credentials from keychain related to github and slack, and re-entering your username and password. Thanks to @jackrieger for pointing this out!

hhijazi avatar Oct 07 '20 18:10 hhijazi

I tried deleting the credentials from the keychain, but I'm still having the issue

engrun avatar Oct 12 '20 12:10 engrun

git config user.email "xxxme" git config user.name "cxx" git config user.password "cxxxx" git config credential.username "xxxx"

It worked like a charm for me.

KulluHoum avatar May 18 '21 04:05 KulluHoum

I cannot believe this issue is still opened and not solved after 3 years! I'm experiencing this same problem as of today. The repository having issue has only one collaborator and we are both using git on Ubuntu 18.04 running on WSL2. This kind of beats the purpose of integrating into Slack since all commits shown on slack channel are supposedly done by me but if you click on link it displays user ok on github.com. Configuring git appropriately didn't solve the issue for me. Super and utterly annoying.

joelpou avatar Aug 16 '22 03:08 joelpou

Happening again for me as well.

jackrieger avatar Aug 16 '22 19:08 jackrieger

If it is for scheduled notifications, use SLACK_MSG_AUTHOR : <memberId>innotification actions.

gadee1 avatar Dec 28 '22 13:12 gadee1

i change from https to ssh and it solves the problem. not sure why tho

YukiCuiYuqing avatar Mar 29 '23 15:03 YukiCuiYuqing