tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
TestMergeModelBase.cs
Go to the documentation of this file.
1using System;
2using System.ComponentModel.DataAnnotations;
3
5{
9 public abstract class TestMergeModelBase : TestMergeParameters
10 {
14 [Required]
15 public string? TitleAtMerge { get; set; }
16
20 [Required]
21 public string? BodyAtMerge { get; set; }
22
26 [Required]
27#pragma warning disable CA1056 // Uri properties should not be strings
28 public string? Url { get; set; }
29#pragma warning restore CA1056 // Uri properties should not be strings
30
34 [Required]
35 public string? Author { get; set; }
36
41 {
42 }
43
49 {
50 if (copy == null)
51 throw new ArgumentNullException(nameof(copy));
52 Author = copy.Author;
54 Comment = copy.Comment;
55 Number = copy.Number;
58 Url = copy.Url;
59 }
60 }
61}
Layer of test merge data required internally.
TestMergeModelBase(TestMergeModelBase copy)
Initializes a new instance of the TestMergeModelBase class.
TestMergeModelBase()
Initializes a new instance of the TestMergeModelBase class.
string? BodyAtMerge
The body of the test merge source.
string? Author
The author of the test merge source.
string? TitleAtMerge
The title of the test merge source.
virtual ? string TargetCommitSha
The sha of the test merge revision to merge. If not specified, the latest commit from the source will...
string? Comment
Optional comment about the test.
int Number
The number of the test merge source.
@ Required
DMAPI validation must suceed for the deployment to succeed.