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

Commit 42fbab6

Browse files
Separating models
1 parent 533506f commit 42fbab6

File tree

4 files changed

+28
-22
lines changed

4 files changed

+28
-22
lines changed

src/GitHub.Exports/GitHub.Exports.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@
191191
<Compile Include="Models\PullRequestReviewCommentModel.cs" />
192192
<Compile Include="Models\PullRequestReviewModel.cs" />
193193
<Compile Include="Models\PullRequestReviewThreadModel.cs" />
194+
<Compile Include="Models\StatusModel.cs" />
195+
<Compile Include="Models\StatusStateEnum.cs" />
194196
<Compile Include="Services\GitHubContext.cs" />
195197
<Compile Include="Services\IEnterpriseCapabilitiesService.cs" />
196198
<Compile Include="Services\IGitHubContextService.cs" />

src/GitHub.Exports/Models/CheckSuiteModel.cs

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

44
namespace GitHub.Models
55
{
6-
public enum StatusStateEnum
7-
{
8-
Expected,
9-
Error,
10-
Failure,
11-
Pending,
12-
Success,
13-
}
14-
15-
public class StatusModel
16-
{
17-
public StatusStateEnum State { get; set; }
18-
19-
public string Context { get; set; }
20-
21-
public string TargetUrl { get; set; }
22-
23-
public string Description { get; set; }
24-
25-
public string AvatarUrl { get; set; }
26-
}
27-
286
public class CheckSuiteModel
297
{
308
public CheckSuiteConclusionStateEnum? Conclusion { get; set; }
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
namespace GitHub.Models
2+
{
3+
public class StatusModel
4+
{
5+
public StatusStateEnum State { get; set; }
6+
7+
public string Context { get; set; }
8+
9+
public string TargetUrl { get; set; }
10+
11+
public string Description { get; set; }
12+
13+
public string AvatarUrl { get; set; }
14+
}
15+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
namespace GitHub.Models
2+
{
3+
public enum StatusStateEnum
4+
{
5+
Expected,
6+
Error,
7+
Failure,
8+
Pending,
9+
Success,
10+
}
11+
}

0 commit comments

Comments
 (0)