public class GitHubCommitCommenter extends Object implements VcsCommitCommenter
| Modifier and Type | Class and Description |
|---|---|
static class |
GitHubCommitCommenter.DeploymentDTO |
static class |
GitHubCommitCommenter.MissingPermissionEntity |
static class |
GitHubCommitCommenter.PlanDTO |
| Constructor and Description |
|---|
GitHubCommitCommenter(AdministrationConfigurationAccessor administrationConfigurationAccessor,
CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager,
DeploymentProjectService deploymentProjectService,
ProjectManager projectManager,
RepositoryDefinitionManager repositoryDefinitionManager,
RepositoryStoredSpecsLogService repositoryStoreSpecsLogService,
TemplateRenderer templateRenderer) |
| Modifier and Type | Method and Description |
|---|---|
ContextualVcsId<VcsCommitCommenter> |
getVcsIdForExecutor(VcsRepositoryData vcsRepositoryData)
Returned id has to fulfill the following:
Given two VcsRepositoryData objects A and B, and executor e returning equal ContextualVcsId (in terms of equals()),
for any operation foo() provided by the executor,
the calls e::foo(A) and e::foo(B) should be equivalent.
|
boolean |
publishComment(VcsRepositoryData repositoryData,
String commitId,
String payload)
Publish comment to repository commit.
|
boolean |
publishRssStatus(VcsRepositoryData repositoryData,
String commitId,
com.atlassian.event.Event event)
Publish Bamboo Specs execution status to repository commit.
|
@Inject public GitHubCommitCommenter(AdministrationConfigurationAccessor administrationConfigurationAccessor, CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager, DeploymentProjectService deploymentProjectService, ProjectManager projectManager, RepositoryDefinitionManager repositoryDefinitionManager, RepositoryStoredSpecsLogService repositoryStoreSpecsLogService, TemplateRenderer templateRenderer)
public boolean publishRssStatus(@NotNull
VcsRepositoryData repositoryData,
@NotNull
String commitId,
@NotNull
com.atlassian.event.Event event)
throws RepositoryException
VcsCommitCommenterpublishRssStatus in interface VcsCommitCommentercommitId - identifier of commit which should receive comment. For git-based repos it's SHA.event - is RssEvent from bamboo-core.RepositoryException - when commit not found or credentials are wrongpublic boolean publishComment(@NotNull
VcsRepositoryData repositoryData,
@NotNull
String commitId,
@NotNull
String payload)
throws RepositoryException
VcsCommitCommenterpublishComment in interface VcsCommitCommentercommitId - identifier of commit which should receive comment. For git-based repos it's SHA.payload - content of commentRepositoryException - when commit not found or credentials are wrong@Nullable public ContextualVcsId<VcsCommitCommenter> getVcsIdForExecutor(@NotNull VcsRepositoryData vcsRepositoryData)
IdentifyingExecutorVcsBranchDetector. If they also point
to the same branch, they are considered equal in context of VcsChangeDetectorgetVcsIdForExecutor in interface IdentifyingExecutor<VcsCommitCommenter>Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.