Skip to content

Commit b5b5123

Browse files
authored
Merge branch 'master' into patch-2
2 parents 6244fba + e6fc5dd commit b5b5123

File tree

380 files changed

+19198
-579
lines changed

Some content is hidden

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

380 files changed

+19198
-579
lines changed

Octokit.GraphQL.IntegrationTests/Queries/RepositoryTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ public async Task Query_Organization_Repositories_Select_Multiple_Object_Fragmen
280280
.Select(fragment).ToList().OrderBy(o => o.StringField1).First(),
281281

282282
MentionableUser = organization.Repository("octokit.net")
283-
.MentionableUsers(10, null, null, null).Nodes
283+
.MentionableUsers(10, null, null, null, null).Nodes
284284
.Select(fragment).ToList().OrderBy(o => o.StringField1).First()
285285
});
286286

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 AcceptEnterpriseAdministratorInvitation
8+
/// </summary>
9+
public class AcceptEnterpriseAdministratorInvitationInput
10+
{
11+
/// <summary>
12+
/// The id of the invitation being accepted
13+
/// </summary>
14+
public ID InvitationId { 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: 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.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 AcceptEnterpriseAdministratorInvitation
11+
/// </summary>
12+
public class AcceptEnterpriseAdministratorInvitationPayload : QueryableValue<AcceptEnterpriseAdministratorInvitationPayload>
13+
{
14+
internal AcceptEnterpriseAdministratorInvitationPayload(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 invitation that was accepted.
25+
/// </summary>
26+
public EnterpriseAdministratorInvitation Invitation => this.CreateProperty(x => x.Invitation, Octokit.GraphQL.Model.EnterpriseAdministratorInvitation.Create);
27+
28+
/// <summary>
29+
/// A message confirming the result of accepting an administrator invitation.
30+
/// </summary>
31+
public string Message { get; }
32+
33+
internal static AcceptEnterpriseAdministratorInvitationPayload Create(Expression expression)
34+
{
35+
return new AcceptEnterpriseAdministratorInvitationPayload(expression);
36+
}
37+
}
38+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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 possible capabilities for action executions setting.
10+
/// </summary>
11+
[JsonConverter(typeof(StringEnumConverter))]
12+
public enum ActionExecutionCapabilitySetting
13+
{
14+
/// <summary>
15+
/// All action executions are disabled.
16+
/// </summary>
17+
[EnumMember(Value = "DISABLED")]
18+
Disabled,
19+
20+
/// <summary>
21+
/// All action executions are enabled.
22+
/// </summary>
23+
[EnumMember(Value = "ALL_ACTIONS")]
24+
AllActions,
25+
26+
/// <summary>
27+
/// Only actions defined within the repo are allowed.
28+
/// </summary>
29+
[EnumMember(Value = "LOCAL_ACTIONS_ONLY")]
30+
LocalActionsOnly,
31+
32+
/// <summary>
33+
/// Organization administrators action execution capabilities.
34+
/// </summary>
35+
[EnumMember(Value = "NO_POLICY")]
36+
NoPolicy,
37+
}
38+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
/// Location information for an actor
11+
/// </summary>
12+
public class ActorLocation : QueryableValue<ActorLocation>
13+
{
14+
internal ActorLocation(Expression expression) : base(expression)
15+
{
16+
}
17+
18+
/// <summary>
19+
/// City
20+
/// </summary>
21+
public string City { get; }
22+
23+
/// <summary>
24+
/// Country name
25+
/// </summary>
26+
public string Country { get; }
27+
28+
/// <summary>
29+
/// Country code
30+
/// </summary>
31+
public string CountryCode { get; }
32+
33+
/// <summary>
34+
/// Region name
35+
/// </summary>
36+
public string Region { get; }
37+
38+
/// <summary>
39+
/// Region or state code
40+
/// </summary>
41+
public string RegionCode { get; }
42+
43+
internal static ActorLocation Create(Expression expression)
44+
{
45+
return new ActorLocation(expression);
46+
}
47+
}
48+
}

Octokit.GraphQL/Model/AddPullRequestReviewCommentInput.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@ namespace Octokit.GraphQL.Model
88
/// </summary>
99
public class AddPullRequestReviewCommentInput
1010
{
11+
/// <summary>
12+
/// The node ID of the pull request reviewing
13+
/// </summary>
14+
public ID? PullRequestId { get; set; }
15+
1116
/// <summary>
1217
/// The Node ID of the review to modify.
1318
/// </summary>
14-
public ID PullRequestReviewId { get; set; }
19+
public ID? PullRequestReviewId { get; set; }
1520

1621
/// <summary>
1722
/// The SHA of the commit to comment on.
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 ArchiveRepository
8+
/// </summary>
9+
public class ArchiveRepositoryInput
10+
{
11+
/// <summary>
12+
/// The ID of the repository to mark as archived.
13+
/// </summary>
14+
public ID RepositoryId { 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 ArchiveRepository
11+
/// </summary>
12+
public class ArchiveRepositoryPayload : QueryableValue<ArchiveRepositoryPayload>
13+
{
14+
internal ArchiveRepositoryPayload(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 repository that was marked as archived.
25+
/// </summary>
26+
public Repository Repository => this.CreateProperty(x => x.Repository, Octokit.GraphQL.Model.Repository.Create);
27+
28+
internal static ArchiveRepositoryPayload Create(Expression expression)
29+
{
30+
return new ArchiveRepositoryPayload(expression);
31+
}
32+
}
33+
}

Octokit.GraphQL/Model/AssignedEvent.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ internal AssignedEvent(Expression expression) : base(expression)
2525
/// </summary>
2626
public IAssignable Assignable => this.CreateProperty(x => x.Assignable, Octokit.GraphQL.Model.Internal.StubIAssignable.Create);
2727

28+
/// <summary>
29+
/// Identifies the user or mannequin that was assigned.
30+
/// </summary>
31+
public Assignee Assignee => this.CreateProperty(x => x.Assignee, Octokit.GraphQL.Model.Assignee.Create);
32+
2833
/// <summary>
2934
/// Identifies the date and time when the object was created.
3035
/// </summary>
@@ -35,6 +40,7 @@ internal AssignedEvent(Expression expression) : base(expression)
3540
/// <summary>
3641
/// Identifies the user who was assigned.
3742
/// </summary>
43+
[Obsolete(@"Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC.")]
3844
public User User => this.CreateProperty(x => x.User, Octokit.GraphQL.Model.User.Create);
3945

4046
internal static AssignedEvent Create(Expression expression)

Octokit.GraphQL/Model/Assignee.cs

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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 that can be assigned to issues.
11+
/// </summary>
12+
public class Assignee : QueryableValue<Assignee>, IUnion
13+
{
14+
internal Assignee(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 special type of user which takes actions on behalf of GitHub Apps.
24+
/// </summary>
25+
public Selector<T> Bot(Func<Bot, T> selector) => default;
26+
27+
/// <summary>
28+
/// A placeholder user for attribution of imported data on GitHub.
29+
/// </summary>
30+
public Selector<T> Mannequin(Func<Mannequin, T> selector) => default;
31+
32+
/// <summary>
33+
/// An account on GitHub, with one or more owners, that has repositories, members and teams.
34+
/// </summary>
35+
public Selector<T> Organization(Func<Organization, T> selector) => default;
36+
37+
/// <summary>
38+
/// A user is an individual's account on GitHub that owns repositories and can make new content.
39+
/// </summary>
40+
public Selector<T> User(Func<User, T> selector) => default;
41+
}
42+
43+
internal static Assignee Create(Expression expression)
44+
{
45+
return new Assignee(expression);
46+
}
47+
}
48+
}

0 commit comments

Comments
 (0)