Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit f3978a9

Browse files
Adding comments
1 parent ba64302 commit f3978a9

File tree

4 files changed

+70
-1
lines changed

4 files changed

+70
-1
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,48 @@
11
namespace GitHub.Models
22
{
3+
/// <summary>
4+
/// Model for a single check annotation.
5+
/// </summary>
36
public class CheckRunAnnotationModel
47
{
8+
/// <summary>
9+
/// The path to the file that this annotation was made on.
10+
/// </summary>
511
public string BlobUrl { get; set; }
612

13+
/// <summary>
14+
/// The starting line number (1 indexed).
15+
/// </summary>
716
public int StartLine { get; set; }
817

18+
/// <summary>
19+
/// The ending line number (1 indexed).
20+
/// </summary>
921
public int EndLine { get; set; }
1022

23+
/// <summary>
24+
/// The path that this annotation was made on.
25+
/// </summary>
1126
public string Filename { get; set; }
1227

28+
/// <summary>
29+
/// The annotation's message.
30+
/// </summary>
1331
public string Message { get; set; }
1432

33+
/// <summary>
34+
/// The annotation's title.
35+
/// </summary>
1536
public string Title { get; set; }
1637

38+
/// <summary>
39+
/// The annotation's severity level.
40+
/// </summary>
1741
public CheckAnnotationLevel? AnnotationLevel { get; set; }
1842

43+
/// <summary>
44+
/// Additional information about the annotation.
45+
/// </summary>
1946
public string RawDetails { get; set; }
2047
}
2148
}

src/GitHub.Exports/Models/CheckRunModel.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,43 @@
33

44
namespace GitHub.Models
55
{
6+
/// <summary>
7+
/// Model for a single check run.
8+
/// </summary>
69
public class CheckRunModel
710
{
11+
/// <summary>The conclusion of the check run.</summary>
812
public CheckConclusionState? Conclusion { get; set; }
913

14+
/// <summary>
15+
/// The current status of a Check Run.
16+
/// </summary>
1017
public CheckStatusState Status { get; set; }
1118

19+
/// <summary>
20+
/// Identifies the date and time when the check run was started.
21+
/// </summary>
1222
public DateTimeOffset? StartedAt { get; set; }
1323

24+
/// <summary>
25+
/// Identifies the date and time when the check run was completed.
26+
/// </summary>
1427
public DateTimeOffset? CompletedAt { get; set; }
1528

29+
/// <summary>The check run's annotations.</summary>
1630
public List<CheckRunAnnotationModel> Annotations { get; set; }
1731

32+
/// <summary>The name of the check for this check run.</summary>
1833
public string Name { get; set; }
1934

35+
/// <summary>
36+
/// The URL from which to find full details of the check run on the integrator's site.
37+
/// </summary>
2038
public string DetailsUrl { get; set; }
2139

40+
/// <summary>
41+
/// The summary of a Check Run.
42+
/// </summary>
2243
public string Summary { get; set; }
2344
}
2445
}

src/GitHub.Exports/Models/CheckSuiteModel.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,34 @@
33

44
namespace GitHub.Models
55
{
6+
/// <summary>
7+
/// Model for a single check suite.
8+
/// </summary>
69
public class CheckSuiteModel
710
{
11+
/// <summary>
12+
/// The conclusion of this check suite.
13+
/// </summary>
814
public CheckConclusionState? Conclusion { get; set; }
915

16+
/// <summary>
17+
/// The status of this check suite.
18+
/// </summary>
1019
public CheckStatusState Status { get; set; }
1120

21+
/// <summary>
22+
/// Identifies the date and time when the object was created.
23+
/// </summary>
1224
public DateTimeOffset CreatedAt { get; set; }
1325

26+
/// <summary>
27+
/// Identifies the date and time when the object was last updated.
28+
/// </summary>
1429
public DateTimeOffset UpdatedAt { get; set; }
1530

31+
/// <summary>
32+
/// The check runs associated with a check suite.
33+
/// </summary>
1634
public List<CheckRunModel> CheckRuns { get; set; }
1735
}
1836
}

src/GitHub.Exports/Models/PullRequestDetailModel.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,13 @@ public class PullRequestDetailModel
9292
/// </remarks>
9393
public IReadOnlyList<PullRequestReviewThreadModel> Threads { get; set; }
9494

95+
/// <summary>
96+
/// Gets or sets a collection of pull request Checks Suites
97+
/// </summary>
9598
public List<CheckSuiteModel> CheckSuites { get; set; }
9699

97100
/// <summary>
98-
/// Gets or sets a collection of pull request Checks & Statuses
101+
/// Gets or sets a collection of pull request Statuses
99102
/// </summary>
100103
public List<StatusModel> Statuses { get; set; }
101104
}

0 commit comments

Comments
 (0)