Interface GitAnnotatedTag

All Superinterfaces:
com.atlassian.bitbucket.repository.MinimalRef, com.atlassian.bitbucket.repository.Ref, com.atlassian.bitbucket.repository.Tag

public interface GitAnnotatedTag extends com.atlassian.bitbucket.repository.Tag
An annotated tag
Since:
5.0
  • Method Summary

    Modifier and Type
    Method
    Description
    The hash for the tag itself.
     
    com.atlassian.bitbucket.user.Person
     
     

    Methods inherited from interface com.atlassian.bitbucket.repository.MinimalRef

    getDisplayId, getId, getType

    Methods inherited from interface com.atlassian.bitbucket.repository.Ref

    getLatestCommit
  • Method Details

    • getHash

      @Nonnull String getHash()
      The hash for the tag itself. Where Ref.getLatestCommit() returns the hash of the tagged element, this property provides the hash for the tag.
      Specified by:
      getHash in interface com.atlassian.bitbucket.repository.Tag
      Returns:
      the tag's hash
    • getMessage

      @Nonnull Optional<String> getMessage()
      Returns:
      the tag message, if any
    • getTagger

      @Nonnull com.atlassian.bitbucket.user.Person getTagger()
      Returns:
      the person that created the tag
    • getTaggerTimestamp

      @Nonnull Optional<Instant> getTaggerTimestamp()
      Returns:
      the timestamp when the tag was created, or Optional.empty() when the timestamp cannot be determined
      Since:
      8.15