Skip to content

Commit 615a5ab

Browse files
committed
Update schema
1 parent a18e92b commit 615a5ab

Some content is hidden

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

41 files changed

+243
-1094
lines changed

Octokit.GraphQL/Model/AddPullRequestReviewThreadInput.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,15 @@ public class AddPullRequestReviewThreadInput
1818
/// </summary>
1919
public string Body { get; set; }
2020

21+
/// <summary>
22+
/// The node ID of the pull request reviewing
23+
/// </summary>
24+
public ID? PullRequestId { get; set; }
25+
2126
/// <summary>
2227
/// The Node ID of the review to modify.
2328
/// </summary>
24-
public ID PullRequestReviewId { get; set; }
29+
public ID? PullRequestReviewId { get; set; }
2530

2631
/// <summary>
2732
/// The line of the blob to which the thread refers. The end of the line range for multi-line comments.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 'base_ref_deleted' event on a given pull request.
11+
/// </summary>
12+
public class BaseRefDeletedEvent : QueryableValue<BaseRefDeletedEvent>
13+
{
14+
internal BaseRefDeletedEvent(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 name of the Ref associated with the `base_ref_deleted` event.
25+
/// </summary>
26+
public string BaseRefName { get; }
27+
28+
/// <summary>
29+
/// Identifies the date and time when the object was created.
30+
/// </summary>
31+
public DateTimeOffset CreatedAt { get; }
32+
33+
public ID Id { get; }
34+
35+
/// <summary>
36+
/// PullRequest referenced by event.
37+
/// </summary>
38+
public PullRequest PullRequest => this.CreateProperty(x => x.PullRequest, Octokit.GraphQL.Model.PullRequest.Create);
39+
40+
internal static BaseRefDeletedEvent Create(Expression expression)
41+
{
42+
return new BaseRefDeletedEvent(expression);
43+
}
44+
}
45+
}

Octokit.GraphQL/Model/Blob.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,9 @@ internal Blob(Expression expression) : base(expression)
3838
public ID Id { get; }
3939

4040
/// <summary>
41-
/// Indicates whether the Blob is binary or text
42-
/// **Upcoming Change on 2019-07-01 UTC**
43-
/// **Description:** Type for `isBinary` will change from `Boolean!` to `Boolean`.
44-
/// **Reason:** The `isBinary` field may return `null` when it cannot determine if a Blob is binary.
41+
/// Indicates whether the Blob is binary or text. Returns null if unable to determine the encoding.
4542
/// </summary>
46-
public bool IsBinary { get; }
43+
public bool? IsBinary { get; }
4744

4845
/// <summary>
4946
/// Indicates whether the contents is truncated

Octokit.GraphQL/Model/EnterpriseMemberEdge.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ internal EnterpriseMemberEdge(Expression expression) : base(expression)
2323
/// <summary>
2424
/// Whether the user does not have a license for the enterprise.
2525
/// </summary>
26+
[Obsolete(@"All members consume a license Removal on 2021-01-01 UTC.")]
2627
public bool IsUnlicensed { get; }
2728

2829
/// <summary>

Octokit.GraphQL/Model/EnterpriseOutsideCollaboratorEdge.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ internal EnterpriseOutsideCollaboratorEdge(Expression expression) : base(express
2323
/// <summary>
2424
/// Whether the outside collaborator does not have a license for the enterprise.
2525
/// </summary>
26+
[Obsolete(@"All outside collaborators consume a license Removal on 2021-01-01 UTC.")]
2627
public bool IsUnlicensed { get; }
2728

2829
/// <summary>

Octokit.GraphQL/Model/EnterprisePendingCollaboratorEdge.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ internal EnterprisePendingCollaboratorEdge(Expression expression) : base(express
2323
/// <summary>
2424
/// Whether the invited collaborator does not have a license for the enterprise.
2525
/// </summary>
26+
[Obsolete(@"All pending collaborators consume a license Removal on 2021-01-01 UTC.")]
2627
public bool IsUnlicensed { get; }
2728

2829
/// <summary>

Octokit.GraphQL/Model/EnterprisePendingMemberInvitationEdge.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ internal EnterprisePendingMemberInvitationEdge(Expression expression) : base(exp
2323
/// <summary>
2424
/// Whether the invitation has a license for the enterprise.
2525
/// </summary>
26+
[Obsolete(@"All pending members consume a license Removal on 2020-07-01 UTC.")]
2627
public bool IsUnlicensed { get; }
2728

2829
/// <summary>

Octokit.GraphQL/Model/ExternalIdentitySamlAttributes.cs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,36 @@ internal ExternalIdentitySamlAttributes(Expression expression) : base(expression
1515
{
1616
}
1717

18+
/// <summary>
19+
/// The emails associated with the SAML identity
20+
/// </summary>
21+
public IQueryableList<UserEmailMetadata> Emails => this.CreateProperty(x => x.Emails);
22+
23+
/// <summary>
24+
/// Family name of the SAML identity
25+
/// </summary>
26+
public string FamilyName { get; }
27+
28+
/// <summary>
29+
/// Given name of the SAML identity
30+
/// </summary>
31+
public string GivenName { get; }
32+
33+
/// <summary>
34+
/// The groups linked to this identity in IDP
35+
/// </summary>
36+
public IEnumerable<string> Groups { get; }
37+
1838
/// <summary>
1939
/// The NameID of the SAML identity
2040
/// </summary>
2141
public string NameId { get; }
2242

43+
/// <summary>
44+
/// The userName of the SAML identity
45+
/// </summary>
46+
public string Username { get; }
47+
2348
internal static ExternalIdentitySamlAttributes Create(Expression expression)
2449
{
2550
return new ExternalIdentitySamlAttributes(expression);

Octokit.GraphQL/Model/ExternalIdentityScimAttributes.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,26 @@ internal ExternalIdentityScimAttributes(Expression expression) : base(expression
1515
{
1616
}
1717

18+
/// <summary>
19+
/// The emails associated with the SCIM identity
20+
/// </summary>
21+
public IQueryableList<UserEmailMetadata> Emails => this.CreateProperty(x => x.Emails);
22+
23+
/// <summary>
24+
/// Family name of the SCIM identity
25+
/// </summary>
26+
public string FamilyName { get; }
27+
28+
/// <summary>
29+
/// Given name of the SCIM identity
30+
/// </summary>
31+
public string GivenName { get; }
32+
33+
/// <summary>
34+
/// The groups linked to this identity in IDP
35+
/// </summary>
36+
public IEnumerable<string> Groups { get; }
37+
1838
/// <summary>
1939
/// The userName of the SCIM identity
2040
/// </summary>

Octokit.GraphQL/Model/MergeBranchInput.cs

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

31+
/// <summary>
32+
/// The email address to associate with this commit.
33+
/// </summary>
34+
public string AuthorEmail { get; set; }
35+
3136
/// <summary>
3237
/// A unique identifier for the client performing the mutation.
3338
/// </summary>

0 commit comments

Comments
 (0)