Package org.kohsuke.github
Class GitUser
- java.lang.Object
-
- org.kohsuke.github.GitUser
-
- Direct Known Subclasses:
GHCommit.GHAuthor,GHCompare.User,GHPullRequestCommitDetail.Authorship
public class GitUser extends Object
Represents a user in Git who authors/commits a commit.In contrast,
GHUseris an user of GitHub. Because Git allows a person to use multiple e-mail addresses and names when creating a commit, there's generally no meaningful mapping betweenGHUserandGitUser.- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description GitUser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetDate()Gets date.StringgetEmail()Gets email.StringgetName()Gets name.
-
-
-
Method Detail
-
getName
public String getName()
Gets name.- Returns:
- Human readable name of the user, such as "Kohsuke Kawaguchi"
-
getEmail
public String getEmail()
Gets email.- Returns:
- E -mail address, such as "foo@example.com"
-
getDate
public Date getDate()
Gets date.- Returns:
- This field doesn't appear to be consistently available in all the situations where this class is used.
-
-