forked from GitTools/GitVersion
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainlineContext.cs
More file actions
28 lines (17 loc) · 925 Bytes
/
Copy pathMainlineContext.cs
File metadata and controls
28 lines (17 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using GitVersion.Configuration;
using GitVersion.Extensions;
using GitVersion.Git;
namespace GitVersion.VersionCalculation.Mainline;
internal record MainlineContext(IIncrementStrategyFinder IncrementStrategyFinder, IGitVersionConfiguration Configuration, IEnvironment Environment)
{
public IIncrementStrategyFinder IncrementStrategyFinder { get; } = IncrementStrategyFinder.NotNull();
public IGitVersionConfiguration Configuration { get; } = Configuration.NotNull();
public IEnvironment Environemnt { get; } = Environment.NotNull();
public string? TargetLabel { get; init; }
public SemanticVersion? SemanticVersion { get; set; }
public string? Label { get; set; }
public VersionField Increment { get; set; }
public ICommit? BaseVersionSource { get; set; }
public HashSet<SemanticVersion> AlternativeSemanticVersions { get; } = [];
public bool ForceIncrement { get; set; }
}