Skip to content

Commit 32fe05c

Browse files
authored
Merge pull request #231 from octokit/update-schema
Update schema
2 parents b60c7c9 + 61a6237 commit 32fe05c

File tree

1,021 files changed

+50053
-324
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,021 files changed

+50053
-324
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ jobs:
3131
run: dotnet build Octokit.GraphQL.sln -c ${{ env.config }}
3232

3333
- name: Run Octokit.GraphQL.UnitTests
34-
run: dotnet test -c ${{ env.config }} --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[Octokit.GraphQL]Octokit.GraphQL.*" .\Octokit.GraphQL.UnitTests\Octokit.GraphQL.UnitTests.csproj
34+
run: dotnet test -c ${{ env.config }} --no-build .\Octokit.GraphQL.UnitTests\Octokit.GraphQL.UnitTests.csproj # /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[Octokit.GraphQL]Octokit.GraphQL.*"
3535
- name: Run Octokit.GraphQL.Core.UnitTests
36-
run: dotnet test -c ${{ env.config }} --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[Octokit.GraphQL]Octokit.GraphQL.*" .\Octokit.GraphQL.Core.UnitTests\Octokit.GraphQL.Core.UnitTests.csproj
36+
run: dotnet test -c ${{ env.config }} --no-build .\Octokit.GraphQL.Core.UnitTests\Octokit.GraphQL.Core.UnitTests.csproj # /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[Octokit.GraphQL]Octokit.GraphQL.*"
3737
- name: Run Octokit.GraphQL.Core.Generation.UnitTests
38-
run: dotnet test -c ${{ env.config }} --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[Octokit.GraphQL]Octokit.GraphQL.*" .\Octokit.GraphQL.Core.Generation.UnitTests\Octokit.GraphQL.Core.Generation.UnitTests.csproj
38+
run: dotnet test -c ${{ env.config }} --no-build .\Octokit.GraphQL.Core.Generation.UnitTests\Octokit.GraphQL.Core.Generation.UnitTests.csproj # /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[Octokit.GraphQL]Octokit.GraphQL.*"
3939

4040
- name: Create package using .nuspec
4141
run: dotnet pack Octokit.GraphQL.Pack/Octokit.GraphQL.Pack.csproj --output ${{ env.PackageOutputPath }}

Octokit.GraphQL.Core.Generation.UnitTests/Octokit.GraphQL.Core.Generation.UnitTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>netcoreapp2.1</TargetFramework>
3+
<TargetFramework>netcoreapp3.1</TargetFramework>
44
<LangVersion>7.2</LangVersion>
55
</PropertyGroup>
66
<ItemGroup>

Octokit.GraphQL.Core.UnitTests/Octokit.GraphQL.Core.UnitTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>netcoreapp2.1</TargetFramework>
3+
<TargetFramework>netcoreapp3.1</TargetFramework>
44
<LangVersion>7.2</LangVersion>
55
</PropertyGroup>
66
<ItemGroup>

Octokit.GraphQL.IntegrationTests/Octokit.GraphQL.IntegrationTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>netcoreapp2.1</TargetFramework>
3+
<TargetFramework>netcoreapp3.1</TargetFramework>
44
<AssemblyName>Octokit.GraphQL.IntegrationTests</AssemblyName>
55
<LangVersion>7.2</LangVersion>
66
</PropertyGroup>

Octokit.GraphQL.UnitTests/Octokit.GraphQL.UnitTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>netcoreapp2.1</TargetFramework>
3+
<TargetFramework>netcoreapp3.1</TargetFramework>
44
<LangVersion>7.2</LangVersion>
55
</PropertyGroup>
66
<ItemGroup>

Octokit.GraphQL/Model/AddPullRequestReviewInput.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ public class AddPullRequestReviewInput
3333
/// </summary>
3434
public IEnumerable<DraftPullRequestReviewComment> Comments { get; set; }
3535

36+
/// <summary>
37+
/// The review line comment threads.
38+
/// </summary>
39+
public IEnumerable<DraftPullRequestReviewThread> Threads { get; set; }
40+
3641
/// <summary>
3742
/// A unique identifier for the client performing the mutation.
3843
/// </summary>
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
namespace Octokit.GraphQL.Model
2+
{
3+
using System;
4+
using System.Collections.Generic;
5+
6+
/// <summary>
7+
/// Autogenerated input type of AddPullRequestReviewThread
8+
/// </summary>
9+
public class AddPullRequestReviewThreadInput
10+
{
11+
/// <summary>
12+
/// Path to the file being commented on.
13+
/// </summary>
14+
public string Path { get; set; }
15+
16+
/// <summary>
17+
/// Body of the thread's first comment.
18+
/// </summary>
19+
public string Body { get; set; }
20+
21+
/// <summary>
22+
/// The node ID of the pull request reviewing
23+
/// </summary>
24+
public ID? PullRequestId { get; set; }
25+
26+
/// <summary>
27+
/// The Node ID of the review to modify.
28+
/// </summary>
29+
public ID? PullRequestReviewId { get; set; }
30+
31+
/// <summary>
32+
/// The line of the blob to which the thread refers. The end of the line range for multi-line comments.
33+
/// </summary>
34+
public int Line { get; set; }
35+
36+
/// <summary>
37+
/// The side of the diff on which the line resides. For multi-line comments, this is the side for the end of the line range.
38+
/// </summary>
39+
public DiffSide? Side { get; set; }
40+
41+
/// <summary>
42+
/// The first line of the range to which the comment refers.
43+
/// </summary>
44+
public int? StartLine { get; set; }
45+
46+
/// <summary>
47+
/// The side of the diff on which the start line resides.
48+
/// </summary>
49+
public DiffSide? StartSide { get; set; }
50+
51+
/// <summary>
52+
/// A unique identifier for the client performing the mutation.
53+
/// </summary>
54+
public string ClientMutationId { get; set; }
55+
}
56+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
namespace Octokit.GraphQL.Model
2+
{
3+
using System;
4+
using System.Collections.Generic;
5+
using System.Linq.Expressions;
6+
using Octokit.GraphQL.Core;
7+
using Octokit.GraphQL.Core.Builders;
8+
9+
/// <summary>
10+
/// Autogenerated return type of AddPullRequestReviewThread
11+
/// </summary>
12+
public class AddPullRequestReviewThreadPayload : QueryableValue<AddPullRequestReviewThreadPayload>
13+
{
14+
internal AddPullRequestReviewThreadPayload(Expression expression) : base(expression)
15+
{
16+
}
17+
18+
/// <summary>
19+
/// A unique identifier for the client performing the mutation.
20+
/// </summary>
21+
public string ClientMutationId { get; }
22+
23+
/// <summary>
24+
/// The newly created thread.
25+
/// </summary>
26+
public PullRequestReviewThread Thread => this.CreateProperty(x => x.Thread, Octokit.GraphQL.Model.PullRequestReviewThread.Create);
27+
28+
internal static AddPullRequestReviewThreadPayload Create(Expression expression)
29+
{
30+
return new AddPullRequestReviewThreadPayload(expression);
31+
}
32+
}
33+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
namespace Octokit.GraphQL.Model
2+
{
3+
using System;
4+
using System.Collections.Generic;
5+
using System.Linq.Expressions;
6+
using Octokit.GraphQL.Core;
7+
using Octokit.GraphQL.Core.Builders;
8+
9+
/// <summary>
10+
/// Represents a 'automatic_base_change_failed' event on a given pull request.
11+
/// </summary>
12+
public class AutomaticBaseChangeFailedEvent : QueryableValue<AutomaticBaseChangeFailedEvent>
13+
{
14+
internal AutomaticBaseChangeFailedEvent(Expression expression) : base(expression)
15+
{
16+
}
17+
18+
/// <summary>
19+
/// Identifies the actor who performed the event.
20+
/// </summary>
21+
public IActor Actor => this.CreateProperty(x => x.Actor, Octokit.GraphQL.Model.Internal.StubIActor.Create);
22+
23+
/// <summary>
24+
/// Identifies the date and time when the object was created.
25+
/// </summary>
26+
public DateTimeOffset CreatedAt { get; }
27+
28+
public ID Id { get; }
29+
30+
/// <summary>
31+
/// The new base for this PR
32+
/// </summary>
33+
public string NewBase { get; }
34+
35+
/// <summary>
36+
/// The old base for this PR
37+
/// </summary>
38+
public string OldBase { get; }
39+
40+
/// <summary>
41+
/// PullRequest referenced by event.
42+
/// </summary>
43+
public PullRequest PullRequest => this.CreateProperty(x => x.PullRequest, Octokit.GraphQL.Model.PullRequest.Create);
44+
45+
internal static AutomaticBaseChangeFailedEvent Create(Expression expression)
46+
{
47+
return new AutomaticBaseChangeFailedEvent(expression);
48+
}
49+
}
50+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
namespace Octokit.GraphQL.Model
2+
{
3+
using System;
4+
using System.Collections.Generic;
5+
using System.Linq.Expressions;
6+
using Octokit.GraphQL.Core;
7+
using Octokit.GraphQL.Core.Builders;
8+
9+
/// <summary>
10+
/// Represents a 'automatic_base_change_succeeded' event on a given pull request.
11+
/// </summary>
12+
public class AutomaticBaseChangeSucceededEvent : QueryableValue<AutomaticBaseChangeSucceededEvent>
13+
{
14+
internal AutomaticBaseChangeSucceededEvent(Expression expression) : base(expression)
15+
{
16+
}
17+
18+
/// <summary>
19+
/// Identifies the actor who performed the event.
20+
/// </summary>
21+
public IActor Actor => this.CreateProperty(x => x.Actor, Octokit.GraphQL.Model.Internal.StubIActor.Create);
22+
23+
/// <summary>
24+
/// Identifies the date and time when the object was created.
25+
/// </summary>
26+
public DateTimeOffset CreatedAt { get; }
27+
28+
public ID Id { get; }
29+
30+
/// <summary>
31+
/// The new base for this PR
32+
/// </summary>
33+
public string NewBase { get; }
34+
35+
/// <summary>
36+
/// The old base for this PR
37+
/// </summary>
38+
public string OldBase { get; }
39+
40+
/// <summary>
41+
/// PullRequest referenced by event.
42+
/// </summary>
43+
public PullRequest PullRequest => this.CreateProperty(x => x.PullRequest, Octokit.GraphQL.Model.PullRequest.Create);
44+
45+
internal static AutomaticBaseChangeSucceededEvent Create(Expression expression)
46+
{
47+
return new AutomaticBaseChangeSucceededEvent(expression);
48+
}
49+
}
50+
}

0 commit comments

Comments
 (0)