You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi all !
for some reason in our organization , when someone makes commit on open PR it sends the update about the commit with wrong format.
wrong username = other user from our organization
Hi Vladimir and welcome to the community!
The part that you marked as 'wrong username' shows the authenticated user that made the push.
The part that you marked as 'correct commiter username' is based on the author of the commit, which is configured locally in Git, and has nothing to do with authentication.
If the user who pushes these commits is the 'correct user', then based on the email, this user is pushing using the credentials of the 'wrong user'.
The two users may be sharing the same computer that has either the HTTPS credentials or the SSH keys of the wrong user.
If each user uses a different computer, then either the correct user has on their computer HTTPS credentials or SSH keys of the wrong user (which is not advised, credentials and account SSH keys should not be shared with other users), or they are (sometimes?) using the wrong user's computer.
I would suggest asking the correct user
If you have any questions, please feel free to let me know.
Kind regards,
Theodora
Hello @Vladimir Pikovski ,
Welcome to the Atlassian Community!
The usernames shown in the different sections of the Pull Request e-mail notification come from different sources.
The username from the header (" <username> updated pull request") is based on the bitbucket account used to authenticate the push to bitbucket. This is the user whose credentials were used to authenticate the push.
On the other hand, the Author of the commit is based on the local git configuration of the machine where the commit was created. Once you create a commit in your local repository, git will sign the commit with the username and e-mail address you have in your git-config. To check what is the username current configured you can use the following command :
git config --get user.email
git config --get user.name
If the user used for pushing and the user configured in your local gitconfig are different, the Pull Request e-mail notification will indeed show different usernames.
In this case, to fix the issue, you would have to either:
Hope that helps! Let me know in case you have any questions.
Thank you, @Vladimir Pikovski .
Kind regards,
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.