Interface BitbucketCommit

All Known Implementing Classes:
BitbucketCloudCommit, BitbucketCloudPullRequestCommit, BitbucketServerCommit

public interface BitbucketCommit
Bitbucket commit.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the head commit author for this branch.
    default Date
    Returns the head commit author date for this branch.
    default String
    Returns the head committer for this branch.
    default Date
    Returns the head committer date for this branch.
    Deprecated, for removal: This API element is subject to removal in a future version.
    long
    Deprecated, for removal: This API element is subject to removal in a future version.
     
     
    Returns the SHA1 parents of this commit.
  • Method Details

    • getAuthor

      String getAuthor()
      Returns the head commit author for this branch.
      Returns:
      the head commit author of this branch
      Since:
      2.2.14
    • getAuthorDate

      default Date getAuthorDate()
      Returns the head commit author date for this branch.

      If not supported by the server returns the same value of committer date.

      Returns:
      the author date in ISO format
      Since:
      936.1.0
    • getCommitter

      default String getCommitter()
      Returns the head committer for this branch.
      Returns:
      the head committer author of this branch
      Since:
      936.1.0
    • getCommitterDate

      default Date getCommitterDate()
      Returns the head committer date for this branch.
      Returns:
      the author date in ISO format
      Since:
      936.1.0
    • getMessage

      String getMessage()
      Returns:
      commit message
    • getDate

      @Deprecated(since="936.1.0", forRemoval=true) String getDate()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      the commit date in ISO format
    • getHash

      String getHash()
      Returns:
      the commit hash (complete, not reduced)
    • getDateMillis

      @Deprecated(since="936.1.0", forRemoval=true) long getDateMillis()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      commit time in milliseconds (Java timestamp)
    • getParents

      default Collection<String> getParents()
      Returns the SHA1 parents of this commit.
      Returns:
      a list of parent SHA1 commit.