Interface BitbucketCommit
- All Known Implementing Classes:
BitbucketCloudCommit
,BitbucketCloudPullRequestCommit
,BitbucketServerCommit
public interface BitbucketCommit
Bitbucket commit.
-
Method Summary
Modifier and TypeMethodDescriptionReturns 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.getDate()
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.getHash()
default Collection<String>
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
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
Returns the head committer for this branch.- Returns:
- the head committer author of this branch
- Since:
- 936.1.0
-
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, 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, for removal: This API element is subject to removal in a future version.- Returns:
- commit time in milliseconds (Java timestamp)
-
getParents
Returns the SHA1 parents of this commit.- Returns:
- a list of parent SHA1 commit.
-