Skip to content

Commit c3ab0d0

Browse files
authored
Merge pull request #294 from jongio/addstate
Update models
2 parents 579006e + 3f5eaa0 commit c3ab0d0

File tree

295 files changed

+9113
-1725
lines changed

Some content is hidden

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

295 files changed

+9113
-1725
lines changed
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 AddEnterpriseOrganizationMember
8+
/// </summary>
9+
public class AddEnterpriseOrganizationMemberInput
10+
{
11+
/// <summary>
12+
/// The ID of the enterprise which owns the organization.
13+
/// </summary>
14+
public ID EnterpriseId { get; set; }
15+
16+
/// <summary>
17+
/// The ID of the organization the users will be added to.
18+
/// </summary>
19+
public ID OrganizationId { get; set; }
20+
21+
/// <summary>
22+
/// The IDs of the enterprise members to add.
23+
/// </summary>
24+
public IEnumerable<ID> UserIds { get; set; }
25+
26+
/// <summary>
27+
/// The role to assign the users in the organization
28+
/// </summary>
29+
public OrganizationMemberRole? Role { 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 AddEnterpriseOrganizationMember
11+
/// </summary>
12+
public class AddEnterpriseOrganizationMemberPayload : QueryableValue<AddEnterpriseOrganizationMemberPayload>
13+
{
14+
internal AddEnterpriseOrganizationMemberPayload(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 users who were added to the organization.
25+
/// </summary>
26+
public IQueryableList<User> Users => this.CreateProperty(x => x.Users);
27+
28+
internal static AddEnterpriseOrganizationMemberPayload Create(Expression expression)
29+
{
30+
return new AddEnterpriseOrganizationMemberPayload(expression);
31+
}
32+
}
33+
}

Octokit.GraphQL/Model/AddProjectDraftIssueInput.cs

Lines changed: 0 additions & 48 deletions
This file was deleted.

Octokit.GraphQL/Model/AddProjectDraftIssuePayload.cs

Lines changed: 0 additions & 34 deletions
This file was deleted.

Octokit.GraphQL/Model/AddProjectNextItemInput.cs

Lines changed: 0 additions & 32 deletions
This file was deleted.

Octokit.GraphQL/Model/AddProjectNextItemPayload.cs

Lines changed: 0 additions & 34 deletions
This file was deleted.

Octokit.GraphQL/Model/AddProjectV2DraftIssueInput.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class AddProjectV2DraftIssueInput
1414
public ID ProjectId { get; set; }
1515

1616
/// <summary>
17-
/// The title of the draft issue.
17+
/// The title of the draft issue. A project item can also be created by providing the URL of an Issue or Pull Request if you have access.
1818
/// </summary>
1919
public string Title { get; set; }
2020

Octokit.GraphQL/Model/AddPullRequestReviewCommentInput.cs

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,57 @@ public class AddPullRequestReviewCommentInput
1010
{
1111
/// <summary>
1212
/// The node ID of the pull request reviewing
13+
/// **Upcoming Change on 2023-10-01 UTC**
14+
/// **Description:** `pullRequestId` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead
15+
/// **Reason:** We are deprecating the addPullRequestReviewComment mutation
1316
/// </summary>
1417
public ID? PullRequestId { get; set; }
1518

1619
/// <summary>
1720
/// The Node ID of the review to modify.
21+
/// **Upcoming Change on 2023-10-01 UTC**
22+
/// **Description:** `pullRequestReviewId` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead
23+
/// **Reason:** We are deprecating the addPullRequestReviewComment mutation
1824
/// </summary>
1925
public ID? PullRequestReviewId { get; set; }
2026

2127
/// <summary>
2228
/// The SHA of the commit to comment on.
29+
/// **Upcoming Change on 2023-10-01 UTC**
30+
/// **Description:** `commitOID` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead
31+
/// **Reason:** We are deprecating the addPullRequestReviewComment mutation
2332
/// </summary>
2433
public string CommitOID { get; set; }
2534

2635
/// <summary>
27-
/// The text of the comment.
36+
/// The text of the comment. This field is required
37+
/// **Upcoming Change on 2023-10-01 UTC**
38+
/// **Description:** `body` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead
39+
/// **Reason:** We are deprecating the addPullRequestReviewComment mutation
2840
/// </summary>
2941
public string Body { get; set; }
3042

3143
/// <summary>
3244
/// The relative path of the file to comment on.
45+
/// **Upcoming Change on 2023-10-01 UTC**
46+
/// **Description:** `path` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead
47+
/// **Reason:** We are deprecating the addPullRequestReviewComment mutation
3348
/// </summary>
3449
public string Path { get; set; }
3550

3651
/// <summary>
3752
/// The line index in the diff to comment on.
53+
/// **Upcoming Change on 2023-10-01 UTC**
54+
/// **Description:** `position` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead
55+
/// **Reason:** We are deprecating the addPullRequestReviewComment mutation
3856
/// </summary>
3957
public int? Position { get; set; }
4058

4159
/// <summary>
4260
/// The comment id to reply to.
61+
/// **Upcoming Change on 2023-10-01 UTC**
62+
/// **Description:** `inReplyTo` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead
63+
/// **Reason:** We are deprecating the addPullRequestReviewComment mutation
4364
/// </summary>
4465
public ID? InReplyTo { get; set; }
4566

Octokit.GraphQL/Model/AddPullRequestReviewInput.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ public class AddPullRequestReviewInput
3030

3131
/// <summary>
3232
/// The review line comments.
33+
/// **Upcoming Change on 2023-10-01 UTC**
34+
/// **Description:** `comments` will be removed. use the `threads` argument instead
35+
/// **Reason:** We are deprecating comment fields that use diff-relative positioning
3336
/// </summary>
3437
public IEnumerable<DraftPullRequestReviewComment> Comments { get; set; }
3538

Octokit.GraphQL/Model/AddPullRequestReviewThreadInput.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ public class AddPullRequestReviewThreadInput
2929
public ID? PullRequestReviewId { get; set; }
3030

3131
/// <summary>
32-
/// The line of the blob to which the thread refers. The end of the line range for multi-line comments.
32+
/// The line of the blob to which the thread refers, required for line-level threads. The end of the line range for multi-line comments.
3333
/// </summary>
34-
public int Line { get; set; }
34+
public int? Line { get; set; }
3535

3636
/// <summary>
3737
/// 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.
@@ -48,6 +48,11 @@ public class AddPullRequestReviewThreadInput
4848
/// </summary>
4949
public DiffSide? StartSide { get; set; }
5050

51+
/// <summary>
52+
/// The level at which the comments in the corresponding thread are targeted, can be a diff line or a file
53+
/// </summary>
54+
public PullRequestReviewThreadSubjectType? SubjectType { get; set; }
55+
5156
/// <summary>
5257
/// A unique identifier for the client performing the mutation.
5358
/// </summary>

0 commit comments

Comments
 (0)