java.lang.Object
org.kohsuke.github.GitUser
Represents a user in Git who authors/commits a commit.
In contrast, GHUser
is 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 between GHUser
and GitUser
.
- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
GitUser
public GitUser()Instantiates a new git user.
-
-
Method Details
-
getName
Gets the git user name for an author or committer on a git commit.- Returns:
- Human readable name of the user, such as "Kohsuke Kawaguchi"
-
getEmail
Gets the git email for an author or committer on a git commit.- Returns:
- E-mail address, such as "foo@example.com"
-
getUsername
Gets username. Note: it presents only in events.- Returns:
- GitHub username
-
getDate
Gets date.- Returns:
- Commit Date.
-