Package com.atlassian.bamboo.commit
Interface CommitContext
-
- All Known Subinterfaces:
Commit
- All Known Implementing Classes:
CommitContextImpl,CommitImpl,RssNotification.CommitWithUrl
@PublicApi public interface CommitContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AuthorContextgetAuthorContext()@Nullable StringgetChangeSetId()Return VCS identifier for this changeset.@NotNull StringgetComment()@NotNull DategetDate()@NotNull List<CommitFile>getFiles()@Nullable StringguessChangeSetId()booleanisForeignCommit()True if commit comes from another branch/is not in the ancestry path.
-
-
-
Method Detail
-
getAuthorContext
AuthorContext getAuthorContext()
- Returns:
AuthorContextof commit author
-
getFiles
@NotNull @NotNull List<CommitFile> getFiles()
- Returns:
ListofCommitFileobjects representing changed files
-
getComment
@NotNull @NotNull String getComment()
- Returns:
- the commit comment
-
getChangeSetId
@Nullable @Nullable String getChangeSetId()
Return VCS identifier for this changeset.- Returns:
-
guessChangeSetId
@Nullable @Nullable String guessChangeSetId()
-
isForeignCommit
boolean isForeignCommit()
True if commit comes from another branch/is not in the ancestry path. (DVCS only) It is allowed to return false negatives but not false positives. Will return false if feature not supported by repository plugin. In some cases (git) may return false even if commit originated in different branch due to git limitations.- Since:
- 5.5 shipit 26
-
-