tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
TestMerge.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using System.ComponentModel.DataAnnotations;
4
6{
8 public sealed class TestMerge : Api.Models.Internal.TestMergeApiBase, ILegacyApiTransformable<Api.Models.TestMerge>
9 {
13 [Required]
14 public User? MergedBy { get; set; }
15
19 [Required]
21
25 public long? PrimaryRevisionInformationId { get; set; }
26
30 public ICollection<RevInfoTestMerge>? RevisonInformations { get; set; }
31
33 public Api.Models.TestMerge ToApi() => new()
34 {
35 Author = Author,
40 Id = Id,
41 MergedBy = (MergedBy ?? throw new InvalidOperationException("MergedBy must be set!")).CreateUserName(),
42 Number = Number,
44 Url = Url,
45 };
46 }
47}
DateTimeOffset MergedAt
When the TestMergeApiBase was created.
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.
long? PrimaryRevisionInformationId
Foreign key for PrimaryRevisionInformation.
Definition TestMerge.cs:25
User? MergedBy
See Api.Models.TestMerge.MergedBy.
Definition TestMerge.cs:14
RevisionInformation? PrimaryRevisionInformation
The initial RevisionInformation the TestMerge was merged with.
Definition TestMerge.cs:20
ICollection< RevInfoTestMerge >? RevisonInformations
All the RevInfoTestMerge for the TestMerge.
Definition TestMerge.cs:30
Represents a host-side model that may be transformed into a TApiModel .