Skip to content

Commit 86aee29

Browse files
author
Lilian ARAGO
committed
Updated Schema
1 parent f26bbda commit 86aee29

File tree

136 files changed

+4552
-124
lines changed

Some content is hidden

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

136 files changed

+4552
-124
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
namespace Octokit.GraphQL.Model
2+
{
3+
using System;
4+
using System.Collections.Generic;
5+
6+
/// <summary>
7+
/// Autogenerated input type of AbortQueuedMigrations
8+
/// </summary>
9+
public class AbortQueuedMigrationsInput
10+
{
11+
/// <summary>
12+
/// The ID of the organization that is running the migrations.
13+
/// </summary>
14+
public ID OwnerId { get; set; }
15+
16+
/// <summary>
17+
/// A unique identifier for the client performing the mutation.
18+
/// </summary>
19+
public string ClientMutationId { get; set; }
20+
}
21+
}
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 AbortQueuedMigrations
11+
/// </summary>
12+
public class AbortQueuedMigrationsPayload : QueryableValue<AbortQueuedMigrationsPayload>
13+
{
14+
internal AbortQueuedMigrationsPayload(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+
/// Did the operation succeed?
25+
/// </summary>
26+
public bool? Success { get; }
27+
28+
internal static AbortQueuedMigrationsPayload Create(Expression expression)
29+
{
30+
return new AbortQueuedMigrationsPayload(expression);
31+
}
32+
}
33+
}

Octokit.GraphQL/Model/ActorType.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
using System;
2+
using System.Runtime.Serialization;
3+
using Newtonsoft.Json;
4+
using Newtonsoft.Json.Converters;
5+
6+
namespace Octokit.GraphQL.Model
7+
{
8+
/// <summary>
9+
/// The actor's type.
10+
/// </summary>
11+
[JsonConverter(typeof(StringEnumConverter))]
12+
public enum ActorType
13+
{
14+
/// <summary>
15+
/// Indicates a user actor.
16+
/// </summary>
17+
[EnumMember(Value = "USER")]
18+
User,
19+
20+
/// <summary>
21+
/// Indicates a team actor.
22+
/// </summary>
23+
[EnumMember(Value = "TEAM")]
24+
Team,
25+
}
26+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
namespace Octokit.GraphQL.Model
2+
{
3+
using System;
4+
using System.Collections.Generic;
5+
6+
/// <summary>
7+
/// Autogenerated input type of AddProjectDraftIssue
8+
/// </summary>
9+
public class AddProjectDraftIssueInput
10+
{
11+
/// <summary>
12+
/// The ID of the Project to add the draft issue to.
13+
/// </summary>
14+
public ID ProjectId { get; set; }
15+
16+
/// <summary>
17+
/// The title of the draft issue.
18+
/// </summary>
19+
public string Title { get; set; }
20+
21+
/// <summary>
22+
/// The body of the draft issue.
23+
/// </summary>
24+
public string Body { get; set; }
25+
26+
/// <summary>
27+
/// The IDs of the assignees of the draft issue.
28+
/// </summary>
29+
public IEnumerable<ID> AssigneeIds { get; set; }
30+
31+
/// <summary>
32+
/// A unique identifier for the client performing the mutation.
33+
/// </summary>
34+
public string ClientMutationId { get; set; }
35+
}
36+
}
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 AddProjectDraftIssue
11+
/// </summary>
12+
public class AddProjectDraftIssuePayload : QueryableValue<AddProjectDraftIssuePayload>
13+
{
14+
internal AddProjectDraftIssuePayload(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 draft issue added to the project.
25+
/// </summary>
26+
public ProjectNextItem ProjectNextItem => this.CreateProperty(x => x.ProjectNextItem, Octokit.GraphQL.Model.ProjectNextItem.Create);
27+
28+
internal static AddProjectDraftIssuePayload Create(Expression expression)
29+
{
30+
return new AddProjectDraftIssuePayload(expression);
31+
}
32+
}
33+
}
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 AddProjectNextItem
8+
/// </summary>
9+
public class AddProjectNextItemInput
10+
{
11+
/// <summary>
12+
/// The ID of the Project to add the item to.
13+
/// </summary>
14+
public ID ProjectId { get; set; }
15+
16+
/// <summary>
17+
/// The content id of the item (Issue or PullRequest).
18+
/// </summary>
19+
public ID ContentId { 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 AddProjectNextItem
11+
/// </summary>
12+
public class AddProjectNextItemPayload : QueryableValue<AddProjectNextItemPayload>
13+
{
14+
internal AddProjectNextItemPayload(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 added to the project.
25+
/// </summary>
26+
public ProjectNextItem ProjectNextItem => this.CreateProperty(x => x.ProjectNextItem, Octokit.GraphQL.Model.ProjectNextItem.Create);
27+
28+
internal static AddProjectNextItemPayload Create(Expression expression)
29+
{
30+
return new AddProjectNextItemPayload(expression);
31+
}
32+
}
33+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
namespace Octokit.GraphQL.Model
2+
{
3+
using System;
4+
using System.Linq;
5+
using System.Linq.Expressions;
6+
using Octokit.GraphQL.Core;
7+
using Octokit.GraphQL.Core.Builders;
8+
9+
/// <summary>
10+
/// Types which can be actors for `BranchActorAllowance` objects.
11+
/// </summary>
12+
public class BranchActorAllowanceActor : QueryableValue<BranchActorAllowanceActor>, IUnion
13+
{
14+
internal BranchActorAllowanceActor(Expression expression) : base(expression)
15+
{
16+
}
17+
18+
public TResult Switch<TResult>(Expression<Func<Selector<TResult>, Selector<TResult>>> select) => default;
19+
20+
public class Selector<T>
21+
{
22+
/// <summary>
23+
/// A team of users in an organization.
24+
/// </summary>
25+
public Selector<T> Team(Func<Team, T> selector) => default;
26+
27+
/// <summary>
28+
/// A user is an individual's account on GitHub that owns repositories and can make new content.
29+
/// </summary>
30+
public Selector<T> User(Func<User, T> selector) => default;
31+
}
32+
33+
internal static BranchActorAllowanceActor Create(Expression expression)
34+
{
35+
return new BranchActorAllowanceActor(expression);
36+
}
37+
}
38+
}

Octokit.GraphQL/Model/BranchProtectionRule.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ internal BranchProtectionRule(Expression expression) : base(expression)
2525
/// </summary>
2626
public bool AllowsForcePushes { get; }
2727

28+
/// <summary>
29+
/// Is branch creation a protected operation.
30+
/// </summary>
31+
public bool BlocksCreations { get; }
32+
2833
/// <summary>
2934
/// A list of conflicts matching branches protection rule and other branch protection rules
3035
/// </summary>
@@ -34,6 +39,24 @@ internal BranchProtectionRule(Expression expression) : base(expression)
3439
/// <param name="before">Returns the elements in the list that come before the specified cursor.</param>
3540
public BranchProtectionRuleConflictConnection BranchProtectionRuleConflicts(Arg<int>? first = null, Arg<string>? after = null, Arg<int>? last = null, Arg<string>? before = null) => this.CreateMethodCall(x => x.BranchProtectionRuleConflicts(first, after, last, before), Octokit.GraphQL.Model.BranchProtectionRuleConflictConnection.Create);
3641

42+
/// <summary>
43+
/// A list of actors able to force push for this branch protection rule.
44+
/// </summary>
45+
/// <param name="first">Returns the first _n_ elements from the list.</param>
46+
/// <param name="after">Returns the elements in the list that come after the specified cursor.</param>
47+
/// <param name="last">Returns the last _n_ elements from the list.</param>
48+
/// <param name="before">Returns the elements in the list that come before the specified cursor.</param>
49+
public BypassForcePushAllowanceConnection BypassForcePushAllowances(Arg<int>? first = null, Arg<string>? after = null, Arg<int>? last = null, Arg<string>? before = null) => this.CreateMethodCall(x => x.BypassForcePushAllowances(first, after, last, before), Octokit.GraphQL.Model.BypassForcePushAllowanceConnection.Create);
50+
51+
/// <summary>
52+
/// A list of actors able to bypass PRs for this branch protection rule.
53+
/// </summary>
54+
/// <param name="first">Returns the first _n_ elements from the list.</param>
55+
/// <param name="after">Returns the elements in the list that come after the specified cursor.</param>
56+
/// <param name="last">Returns the last _n_ elements from the list.</param>
57+
/// <param name="before">Returns the elements in the list that come before the specified cursor.</param>
58+
public BypassPullRequestAllowanceConnection BypassPullRequestAllowances(Arg<int>? first = null, Arg<string>? after = null, Arg<int>? last = null, Arg<string>? before = null) => this.CreateMethodCall(x => x.BypassPullRequestAllowances(first, after, last, before), Octokit.GraphQL.Model.BypassPullRequestAllowanceConnection.Create);
59+
3760
/// <summary>
3861
/// The actor who created this branch protection rule.
3962
/// </summary>
@@ -95,6 +118,11 @@ internal BranchProtectionRule(Expression expression) : base(expression)
95118
/// </summary>
96119
public IEnumerable<string> RequiredStatusCheckContexts { get; }
97120

121+
/// <summary>
122+
/// List of required status checks that must pass for commits to be accepted to matching branches.
123+
/// </summary>
124+
public IQueryableList<RequiredStatusCheckDescription> RequiredStatusChecks => this.CreateProperty(x => x.RequiredStatusChecks);
125+
98126
/// <summary>
99127
/// Are approving reviews required to update matching branches.
100128
/// </summary>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
/// A team or user who has the ability to bypass a force push requirement on a protected branch.
11+
/// </summary>
12+
public class BypassForcePushAllowance : QueryableValue<BypassForcePushAllowance>
13+
{
14+
internal BypassForcePushAllowance(Expression expression) : base(expression)
15+
{
16+
}
17+
18+
/// <summary>
19+
/// The actor that can dismiss.
20+
/// </summary>
21+
public BranchActorAllowanceActor Actor => this.CreateProperty(x => x.Actor, Octokit.GraphQL.Model.BranchActorAllowanceActor.Create);
22+
23+
/// <summary>
24+
/// Identifies the branch protection rule associated with the allowed user or team.
25+
/// </summary>
26+
public BranchProtectionRule BranchProtectionRule => this.CreateProperty(x => x.BranchProtectionRule, Octokit.GraphQL.Model.BranchProtectionRule.Create);
27+
28+
public ID Id { get; }
29+
30+
internal static BypassForcePushAllowance Create(Expression expression)
31+
{
32+
return new BypassForcePushAllowance(expression);
33+
}
34+
}
35+
}

0 commit comments

Comments
 (0)