public class GitHubTagsHandler extends AbstractGitHubExecutor implements VcsTagsHandler
vcsRepositoryManager
Constructor and Description |
---|
GitHubTagsHandler(VcsRepositoryManager vcsRepositoryManager) |
Modifier and Type | Method and Description |
---|---|
List<TagAndRevision> |
getAllTagsFromRepository(@NotNull VcsRepositoryData vcsRepositoryData)
Reads from git repository all tags (with revisions).
|
@Nullable ContextualVcsId<VcsTagsHandler> |
getVcsIdForExecutor(@NotNull 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 |
isBranchContainTag(VcsRepositoryData vcsRepositoryData,
String branchName,
TagAndRevision tagAndRevision) |
getGitModuleDescriptor, githubToGitData
public GitHubTagsHandler(VcsRepositoryManager vcsRepositoryManager)
public List<TagAndRevision> getAllTagsFromRepository(@NotNull @NotNull VcsRepositoryData vcsRepositoryData) throws RepositoryException
VcsTagsHandler
getAllTagsFromRepository
in interface VcsTagsHandler
RepositoryException
public boolean isBranchContainTag(VcsRepositoryData vcsRepositoryData, String branchName, TagAndRevision tagAndRevision) throws RepositoryException
isBranchContainTag
in interface VcsTagsHandler
RepositoryException
@Nullable public @Nullable ContextualVcsId<VcsTagsHandler> getVcsIdForExecutor(@NotNull @NotNull VcsRepositoryData vcsRepositoryData)
IdentifyingExecutor
VcsBranchDetector
. If they also point
to the same branch, they are considered equal in context of VcsChangeDetector
getVcsIdForExecutor
in interface IdentifyingExecutor<VcsTagsHandler>
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.