• We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      After importing existing git repositories into Stash I've found that Stash doesn't match commit authors to Stash users, despite of same names and emails.

            [BSERV-3235] Link committers to users

            Linking related issue STASH-4603

            Roger Barnes (Inactive) added a comment - Linking related issue STASH-4603

            Ian Lee added a comment -

            +1 to @Andrew Herron 's suggestion

            Ian Lee added a comment - +1 to @Andrew Herron 's suggestion

            Flavio Beck added a comment - Commit checker: https://marketplace.atlassian.com/plugins/com.isroot.stash.plugin.yacc

            Actually we have have a problem due to this feature. Our Stash is linked to our Jira user management. Some email addresses of our Stash users are not unique within Jira's account management, since the email addresses reappear on some generic accounts. Nonetheless these generic accounts are none licensed Stash accounts.

            Since we updated to 2.12., the names of our generic accounts appear in Stash's commit history, which is a bit confusing.

            In this scenario, it would make more sense, not to pick the first account with the given email address, but pick the first account with the email address, which is a "licensed" account within Stash.

            Lars Girndt added a comment - Actually we have have a problem due to this feature. Our Stash is linked to our Jira user management. Some email addresses of our Stash users are not unique within Jira's account management, since the email addresses reappear on some generic accounts. Nonetheless these generic accounts are none licensed Stash accounts. Since we updated to 2.12., the names of our generic accounts appear in Stash's commit history, which is a bit confusing. In this scenario, it would make more sense, not to pick the first account with the given email address, but pick the first account with the email address, which is a "licensed" account within Stash.

            that sounds good - now all we need is the ability to add multiple email addresses to a user (this is really handy on github). That avoids most of the needs for a mailmap file

            Andrew Herron added a comment - that sounds good - now all we need is the ability to add multiple email addresses to a user (this is really handy on github). That avoids most of the needs for a mailmap file

            Stash 2.12 will link committers to Stash users using their e-mail address. The display name used on the commit is ignored in this iteration; only the e-mail address is considered. Committers for which a matching user is found will be linked to their user profiles on all screens (listing commits, viewing a specific commit, viewing file blame).

            If the e-mail address for a committer does not match their user account e-mail (for example, a user accidentally committed to the "company" repository using their personal credentials), a .mailmap file can be added to the repository to map their personal e-mail address to their Stash e-mail address. User linking will then automatically kick in.

            Bryan Turner (Inactive) added a comment - Stash 2.12 will link committers to Stash users using their e-mail address. The display name used on the commit is ignored in this iteration; only the e-mail address is considered. Committers for which a matching user is found will be linked to their user profiles on all screens (listing commits, viewing a specific commit, viewing file blame). If the e-mail address for a committer does not match their user account e-mail (for example, a user accidentally committed to the "company" repository using their personal credentials), a .mailmap file can be added to the repository to map their personal e-mail address to their Stash e-mail address. User linking will then automatically kick in.

            When you get around to implementing this (in 2.8 would be nice ) you might need the flexibility of matching on the user.name AND/OR the user.email values. The "OR" is important for us because we login to Stash using numeric user names (we use Active Directory auth) but user.name is something sane (i.e. the user's real name). The user.email field is the "truth".

            David Bevin added a comment - When you get around to implementing this (in 2.8 would be nice ) you might need the flexibility of matching on the user.name AND/OR the user.email values. The "OR" is important for us because we login to Stash using numeric user names (we use Active Directory auth) but user.name is something sane (i.e. the user's real name). The user.email field is the "truth".

            Terin,

            I'll point out that Stash does not have support for commenting on commits. That is a 3rd party plugin and not maintained by Atlassian. As a result, even when Stash begins linking accounts to commits, until that plugin is fixed, it will likely continue to e-mail the wrong person. In your case, though, the easiest fix would be to add a .mailmap file to your Stash repository that maps your personal e-mail to your work e-mail (See STASH-3084). That will change the output of the Git commands Stash runs (automatically), which should also result in the commenter plugin sending e-mail to your work address.

            Note that I'm not saying that obviates the need for this feature. I'm only trying to offer a workaround that may help until we can ship this.

            Best regards,
            Bryan Turner

            Bryan Turner (Inactive) added a comment - Terin, I'll point out that Stash does not have support for commenting on commits. That is a 3rd party plugin and not maintained by Atlassian. As a result, even when Stash begins linking accounts to commits, until that plugin is fixed, it will likely continue to e-mail the wrong person. In your case, though, the easiest fix would be to add a .mailmap file to your Stash repository that maps your personal e-mail to your work e-mail (See STASH-3084 ). That will change the output of the Git commands Stash runs (automatically), which should also result in the commenter plugin sending e-mail to your work address. Note that I'm not saying that obviates the need for this feature. I'm only trying to offer a workaround that may help until we can ship this. Best regards, Bryan Turner

            I would like to be able to link emails to user accounts. Due to the fact that I use the same dotfiles everywhere, I end up committing to company repos as my canonical email address. When someone comments on a commit, Stash then emails my canonical email, not my work address.

            Linking multiple email addresses to single accounts is comment elsewhere, BitBucket and GitHub, so it's absence from Stash is disappointing.

            Terin Stock added a comment - I would like to be able to link emails to user accounts. Due to the fact that I use the same dotfiles everywhere, I end up committing to company repos as my canonical email address. When someone comments on a commit, Stash then emails my canonical email, not my work address. Linking multiple email addresses to single accounts is comment elsewhere, BitBucket and GitHub, so it's absence from Stash is disappointing.

            It seems I did the same thing as Oleg! I spent probably an hour or more, trying to figure out why the commits weren't connected to the user accounts

            This would be a great feature and help make Stash a bit more "social". It would be great to see my co-workers' activities.

            A simple match between account e-mail address and the e-mail of the commit author would work, but it would be even better if it was possible to list other addresses that should be matched to an account.

            Erik Brännström added a comment - It seems I did the same thing as Oleg! I spent probably an hour or more, trying to figure out why the commits weren't connected to the user accounts This would be a great feature and help make Stash a bit more "social". It would be great to see my co-workers' activities. A simple match between account e-mail address and the e-mail of the commit author would work, but it would be even better if it was possible to list other addresses that should be matched to an account.

              Unassigned Unassigned
              347e5a4fa397 Oleg Shparber
              Votes:
              38 Vote for this issue
              Watchers:
              40 Start watching this issue

                Created:
                Updated:
                Resolved: