Package com.atlassian.bamboo.vcs.runtime
Interface VcsCommitCommenter
- All Superinterfaces:
IdentifyingExecutor<VcsCommitCommenter>
- All Known Implementing Classes:
BitbucketCloudCommitCommenter,GitHubCommitCommenter
@ExperimentalApi
public interface VcsCommitCommenter
extends IdentifyingExecutor<VcsCommitCommenter>
Executor responsible for leaving commit level comments.
Used by server-side.
Implementation should be stateless.
- Since:
- 6.5
-
Method Summary
Modifier and TypeMethodDescriptionbooleanpublishComment(@NotNull VcsRepositoryData repositoryData, @NotNull String commitId, @NotNull String payload) Publish comment to repository commit.booleanpublishRssStatus(@NotNull VcsRepositoryData repositoryData, @NotNull String commitId, @NotNull BambooEvent event) Publish Bamboo Specs execution status to repository commit.Methods inherited from interface com.atlassian.bamboo.vcs.runtime.IdentifyingExecutor
getVcsIdForExecutor
-
Method Details
-
publishRssStatus
boolean publishRssStatus(@NotNull @NotNull VcsRepositoryData repositoryData, @NotNull @NotNull String commitId, @NotNull @NotNull BambooEvent event) throws RepositoryException Publish Bamboo Specs execution status to repository commit.- Parameters:
commitId- identifier of commit which should receive comment. For git-based repos it's SHA.event- isBambooEventfrom bamboo-core.- Returns:
- true if published comment successfully.
- Throws:
RepositoryException- when commit not found or credentials are wrong
-
publishComment
boolean publishComment(@NotNull @NotNull VcsRepositoryData repositoryData, @NotNull @NotNull String commitId, @NotNull @NotNull String payload) throws RepositoryException Publish comment to repository commit.- Parameters:
commitId- identifier of commit which should receive comment. For git-based repos it's SHA.payload- content of comment- Returns:
- true if published comment successfully.
- Throws:
RepositoryException- when commit not found or credentials are wrong
-