tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
TestMergeInformation.cs
Go to the documentation of this file.
1using System;
2using System.Globalization;
3
5
7{
12 {
16 public string TimeMerged { get; set; }
17
21 public string? PullRequestRevision { get; set; }
22
24 public override string? TargetCommitSha
25 {
27 set => PullRequestRevision = value;
28 }
29
33 public RevisionInformation Revision { get; set; }
34
40 public TestMergeInformation(Models.TestMerge testMerge, RevisionInformation revision)
41 : base(testMerge)
42 {
43 TimeMerged = testMerge?.MergedAt.Ticks.ToString(CultureInfo.InvariantCulture) ?? throw new ArgumentNullException(nameof(testMerge));
44 Revision = revision ?? throw new ArgumentNullException(nameof(revision));
45 }
46 }
47}
Represents information about a current git revison.
Layer of test merge data required internally.
This model mirrors /datum/tgs_revision_information/test_merge.
string TimeMerged
The unix time of when the test merge was applied.
string? PullRequestRevision
Backing field for TargetCommitSha needed to continue to support DMAPI 5.
TestMergeInformation(Models.TestMerge testMerge, RevisionInformation revision)
Initializes a new instance of the TestMergeInformation class.
RevisionInformation Revision
The RevisionInformation of the TestMergeInformation.