tgstation-server 5.12.7
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) : base(testMerge)
41 {
42 TimeMerged = testMerge?.MergedAt.Ticks.ToString(CultureInfo.InvariantCulture) ?? throw new ArgumentNullException(nameof(testMerge));
43 Revision = revision ?? throw new ArgumentNullException(nameof(revision));
44 }
45 }
46}
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.
TestMergeInformation(Models.TestMerge testMerge, RevisionInformation revision)
Initializes a new instance of the TestMergeInformation class.
RevisionInformation Revision
The RevisionInformation of the TestMergeInformation.
string PullRequestRevision
Backing field for TargetCommitSha needed to continue to support DMAPI 5.