tgstation-server 6.17.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
TestMergeInformation.cs
Go to the documentation of this file.
1using System;
2
4
6{
11 {
15 public string TimeMerged { get; set; }
16
20 public string? PullRequestRevision { get; set; }
21
23 public override string? TargetCommitSha
24 {
26 set => PullRequestRevision = value;
27 }
28
32 public RevisionInformation Revision { get; set; }
33
39 public TestMergeInformation(Models.TestMerge testMerge, RevisionInformation revision)
40 : base(testMerge)
41 {
42 TimeMerged = testMerge?.MergedAt.ToString("O") ?? 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.
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.