Skip to content

Commit a655574

Browse files
Merge pull request #198 from octokit/schema
Schema update
2 parents afb6b5a + 7f85ccb commit a655574

File tree

105 files changed

+2510
-556
lines changed

Some content is hidden

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

105 files changed

+2510
-556
lines changed

Octokit.GraphQL.IntegrationTests/Queries/RepositoryTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public async Task Query_Organization_Repositories_Select_Multiple_Object_Fragmen
276276
.Organization(login: "octokit")
277277
.Select(organization => new
278278
{
279-
Member = organization.Members(10, null, null, null).Nodes
279+
Member = organization.MembersWithRole(10, null, null, null).Nodes
280280
.Select(fragment).ToList().OrderBy(o => o.StringField1).First(),
281281

282282
MentionableUser = organization.Repository("octokit.net")
@@ -296,7 +296,7 @@ public async Task Should_Query_Repository_Issues_PullRequests_With_Variables_Aut
296296
.Repository(owner: Var("owner"), name: Var("name"))
297297
.Select(repository => new
298298
{
299-
Issues = repository.Issues(null, null, null, null, null, null, null).AllPages().Select(issue => issue.Title).ToList(),
299+
Issues = repository.Issues(null, null, null, null, null, null, null, null).AllPages().Select(issue => issue.Title).ToList(),
300300
PullRequests = repository.PullRequests(null, null, null, null, null, null, null, null, null).AllPages().Select(issue => issue.Title).ToList(),
301301
})
302302
.Compile();
@@ -319,8 +319,8 @@ public async Task Should_Query_Repository_Issues_PullRequests_To_Object_AutoPagi
319319
.Repository(owner: Var("owner"), name: Var("name"))
320320
.Select(repository => new
321321
{
322-
StringList1 = repository.Issues(null, null, null, null, null, null, null).AllPages().Select(issue => issue.Title).ToList(),
323-
StringList2 = repository.Issues(null, null, null, null, null, null, null).AllPages().Select(issue => issue.Title).ToList(),
322+
StringList1 = repository.Issues(null, null, null, null, null, null, null, null).AllPages().Select(issue => issue.Title).ToList(),
323+
StringList2 = repository.Issues(null, null, null, null, null, null, null, null).AllPages().Select(issue => issue.Title).ToList(),
324324
})
325325
.Compile();
326326
var vars = new Dictionary<string, object>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
namespace Octokit.GraphQL.Model
2+
{
3+
using System;
4+
using System.Collections.Generic;
5+
6+
/// <summary>
7+
/// Autogenerated input type of AddAssigneesToAssignable
8+
/// </summary>
9+
public class AddAssigneesToAssignableInput
10+
{
11+
/// <summary>
12+
/// The id of the assignable object to add assignees to.
13+
/// </summary>
14+
public ID AssignableId { get; set; }
15+
16+
/// <summary>
17+
/// The id of users to add as assignees.
18+
/// </summary>
19+
public IEnumerable<ID> AssigneeIds { get; set; }
20+
21+
/// <summary>
22+
/// A unique identifier for the client performing the mutation.
23+
/// </summary>
24+
public string ClientMutationId { get; set; }
25+
}
26+
}
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 AddAssigneesToAssignable
11+
/// </summary>
12+
public class AddAssigneesToAssignablePayload : QueryableValue<AddAssigneesToAssignablePayload>
13+
{
14+
internal AddAssigneesToAssignablePayload(Expression expression) : base(expression)
15+
{
16+
}
17+
18+
/// <summary>
19+
/// The item that was assigned.
20+
/// </summary>
21+
public IAssignable Assignable => this.CreateProperty(x => x.Assignable, Octokit.GraphQL.Model.Internal.StubIAssignable.Create);
22+
23+
/// <summary>
24+
/// A unique identifier for the client performing the mutation.
25+
/// </summary>
26+
public string ClientMutationId { get; }
27+
28+
internal static AddAssigneesToAssignablePayload Create(Expression expression)
29+
{
30+
return new AddAssigneesToAssignablePayload(expression);
31+
}
32+
}
33+
}

Octokit.GraphQL/Model/RemoveBusinessBillingManagerInput.cs renamed to Octokit.GraphQL/Model/AddLabelsToLabelableInput.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ namespace Octokit.GraphQL.Model
44
using System.Collections.Generic;
55

66
/// <summary>
7-
/// Autogenerated input type of RemoveBusinessBillingManager
7+
/// Autogenerated input type of AddLabelsToLabelable
88
/// </summary>
9-
public class RemoveBusinessBillingManagerInput
9+
public class AddLabelsToLabelableInput
1010
{
1111
/// <summary>
12-
/// The Business ID to update.
12+
/// The id of the labelable object to add labels to.
1313
/// </summary>
14-
public ID BusinessId { get; set; }
14+
public ID LabelableId { get; set; }
1515

1616
/// <summary>
17-
/// The login of the user to add as a billing manager.
17+
/// The ids of the labels to add.
1818
/// </summary>
19-
public string Login { get; set; }
19+
public IEnumerable<ID> LabelIds { get; set; }
2020

2121
/// <summary>
2222
/// A unique identifier for the client performing the mutation.
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 AddLabelsToLabelable
11+
/// </summary>
12+
public class AddLabelsToLabelablePayload : QueryableValue<AddLabelsToLabelablePayload>
13+
{
14+
internal AddLabelsToLabelablePayload(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 item that was labeled.
25+
/// </summary>
26+
public ILabelable Labelable => this.CreateProperty(x => x.Labelable, Octokit.GraphQL.Model.Internal.StubILabelable.Create);
27+
28+
internal static AddLabelsToLabelablePayload Create(Expression expression)
29+
{
30+
return new AddLabelsToLabelablePayload(expression);
31+
}
32+
}
33+
}

Octokit.GraphQL/Model/BranchProtectionRule.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ internal BranchProtectionRule(Expression expression) : base(expression)
8989
/// </summary>
9090
public bool RequiresApprovingReviews { get; }
9191

92+
/// <summary>
93+
/// Are reviews from code owners required to update matching branches.
94+
/// </summary>
95+
public bool RequiresCodeOwnerReviews { get; }
96+
9297
/// <summary>
9398
/// Are commits required to be signed.
9499
/// </summary>

Octokit.GraphQL/Model/ChangeUserStatusInput.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ public class ChangeUserStatusInput
2828
/// </summary>
2929
public bool? LimitedAvailability { get; set; }
3030

31+
/// <summary>
32+
/// If set, the user status will not be shown after this date.
33+
/// </summary>
34+
public DateTimeOffset? ExpiresAt { get; set; }
35+
3136
/// <summary>
3237
/// A unique identifier for the client performing the mutation.
3338
/// </summary>

Octokit.GraphQL/Model/CancelBusinessAdminInvitationInput.cs renamed to Octokit.GraphQL/Model/ClearLabelsFromLabelableInput.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ namespace Octokit.GraphQL.Model
44
using System.Collections.Generic;
55

66
/// <summary>
7-
/// Autogenerated input type of CancelBusinessAdminInvitation
7+
/// Autogenerated input type of ClearLabelsFromLabelable
88
/// </summary>
9-
public class CancelBusinessAdminInvitationInput
9+
public class ClearLabelsFromLabelableInput
1010
{
1111
/// <summary>
12-
/// The Node ID of the pending business admin invitation.
12+
/// The id of the labelable object to clear the labels from.
1313
/// </summary>
14-
public ID InvitationId { get; set; }
14+
public ID LabelableId { get; set; }
1515

1616
/// <summary>
1717
/// A unique identifier for the client performing the mutation.
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 ClearLabelsFromLabelable
11+
/// </summary>
12+
public class ClearLabelsFromLabelablePayload : QueryableValue<ClearLabelsFromLabelablePayload>
13+
{
14+
internal ClearLabelsFromLabelablePayload(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 item that was unlabeled.
25+
/// </summary>
26+
public ILabelable Labelable => this.CreateProperty(x => x.Labelable, Octokit.GraphQL.Model.Internal.StubILabelable.Create);
27+
28+
internal static ClearLabelsFromLabelablePayload Create(Expression expression)
29+
{
30+
return new ClearLabelsFromLabelablePayload(expression);
31+
}
32+
}
33+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
namespace Octokit.GraphQL.Model
2+
{
3+
using System;
4+
using System.Collections.Generic;
5+
6+
/// <summary>
7+
/// Autogenerated input type of CloneProject
8+
/// </summary>
9+
public class CloneProjectInput
10+
{
11+
/// <summary>
12+
/// The owner ID to create the project under.
13+
/// </summary>
14+
public ID TargetOwnerId { get; set; }
15+
16+
/// <summary>
17+
/// The source project to clone.
18+
/// </summary>
19+
public ID SourceId { get; set; }
20+
21+
/// <summary>
22+
/// Whether or not to clone the source project's workflows.
23+
/// </summary>
24+
public bool IncludeWorkflows { get; set; }
25+
26+
/// <summary>
27+
/// The name of the project.
28+
/// </summary>
29+
public string Name { get; set; }
30+
31+
/// <summary>
32+
/// The description of the project.
33+
/// </summary>
34+
public string Body { get; set; }
35+
36+
/// <summary>
37+
/// The visibility of the project, defaults to false (private).
38+
/// </summary>
39+
public bool? Public { get; set; }
40+
41+
/// <summary>
42+
/// A unique identifier for the client performing the mutation.
43+
/// </summary>
44+
public string ClientMutationId { get; set; }
45+
}
46+
}

0 commit comments

Comments
 (0)