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 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 - is BambooEvent from 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