Class GitUser

    • Constructor Detail

      • GitUser

        public GitUser()
        Instantiates a new git user.
      • GitUser

        public GitUser​(GitUser user)
        Instantiates a new git user.
        Parameters:
        user - the user
    • Method Detail

      • getName

        public String 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

        public String getEmail()
        Gets the git email for an author or committer on a git commit.
        Returns:
        E-mail address, such as "[email protected]"
      • getUsername

        @CheckForNull
        public String getUsername()
        Gets username. Note: it presents only in events.
        Returns:
        GitHub username
      • getDate

        public Date getDate()
        Gets date.
        Returns:
        Commit Date.