Skip to content

[Improvement]: Create TaggedSemanticVersionService class #4002

@HHobeck

Description

@HHobeck

Prerequisites

  • I have written a descriptive issue title
  • I have searched issues to ensure it has not already been reported

GitVersion package

GitVersion.Tool

GitVersion version

6.0.0-beta.7

Operating system

N/A

What are you seeing?

Create TaggedSemanticVersionService class

What is expected?

TaggedSemanticVersionService class should be existing with following methods:

ILookup<ICommit, SemanticVersionWithTag> GetTaggedSemanticVersions(
    IBranch branch,
    IGitVersionConfiguration configuration,
    string? label,
    DateTimeOffset? notOlderThan,
    TaggedSemanticVersions taggedSemanticVersion);

ILookup<ICommit, SemanticVersionWithTag> GetTaggedSemanticVersionsOfBranch(
    IBranch branch,
    string? tagPrefix,
    SemanticVersionFormat format,
    IIgnoreConfiguration ignore,
    string? label = null,
    DateTimeOffset? notOlderThan = null);

ILookup<ICommit, SemanticVersionWithTag> GetTaggedSemanticVersionsOfMergeTarget(
    IBranch branch,
    string? tagPrefix,
    SemanticVersionFormat format,
    IIgnoreConfiguration ignore,
    string? label = null,
    DateTimeOffset? notOlderThan = null);

ILookup<ICommit, SemanticVersionWithTag> GetTaggedSemanticVersionsOfMainBranches(
    IGitVersionConfiguration configuration,
    DateTimeOffset? notOlderThan = null,
    string? label = null,
    params IBranch[] excludeBranches);

ILookup<ICommit, SemanticVersionWithTag> GetTaggedSemanticVersionsOfReleaseBranches(
    IGitVersionConfiguration configuration,
    DateTimeOffset? notOlderThan = null,
    string? label = null,
    params IBranch[] excludeBranches);

Steps to Reproduce

Move functionality from TaggedSemanticVersionRepository to TaggedSemanticVersionService class

RepositoryFixture Test

No response

Output log or link to your CI build (if appropriate).

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions