Is there a way to retrieve the ApplicationUser using commit id? My goal is to get the real author’s name and email, and not the name and email they are using in the git configuration
Available information I have:
- Repository Object
- Commit Object
Is there a way to retrieve the ApplicationUser using commit id? My goal is to get the real author’s name and email, and not the name and email they are using in the git configuration
Available information I have:
My goal is to get the real author’s name and email, and not the name and email they are using in the git configuration
You can’t.
ApplicationUser is indeed retrieved by e-mail from the commit; see com.atlassian.stash.internal.commit.DatabaseCommitEnricher#mapContributorsByEmail
used by com.atlassian.stash.internal.commit.DefaultCommitService#getCommit
.