Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Octokit.GraphQL/Model/AddDiscussionPollVoteInput.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
namespace Octokit.GraphQL.Model
{
using System;
using System.Collections.Generic;

/// <summary>
/// Autogenerated input type of AddDiscussionPollVote
/// </summary>
public class AddDiscussionPollVoteInput
{
/// <summary>
/// The Node ID of the discussion poll option to vote for.
/// </summary>
public ID PollOptionId { get; set; }

/// <summary>
/// A unique identifier for the client performing the mutation.
/// </summary>
public string ClientMutationId { get; set; }
}
}
33 changes: 33 additions & 0 deletions Octokit.GraphQL/Model/AddDiscussionPollVotePayload.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
namespace Octokit.GraphQL.Model
{
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using Octokit.GraphQL.Core;
using Octokit.GraphQL.Core.Builders;

/// <summary>
/// Autogenerated return type of AddDiscussionPollVote
/// </summary>
public class AddDiscussionPollVotePayload : QueryableValue<AddDiscussionPollVotePayload>
{
internal AddDiscussionPollVotePayload(Expression expression) : base(expression)
{
}

/// <summary>
/// A unique identifier for the client performing the mutation.
/// </summary>
public string ClientMutationId { get; }

/// <summary>
/// The poll option that a vote was added to.
/// </summary>
public DiscussionPollOption PollOption => this.CreateProperty(x => x.PollOption, Octokit.GraphQL.Model.DiscussionPollOption.Create);

internal static AddDiscussionPollVotePayload Create(Expression expression)
{
return new AddDiscussionPollVotePayload(expression);
}
}
}
18 changes: 15 additions & 3 deletions Octokit.GraphQL/Model/AddProjectDraftIssueInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,34 @@ namespace Octokit.GraphQL.Model
public class AddProjectDraftIssueInput
{
/// <summary>
/// The ID of the Project to add the draft issue to.
/// The ID of the Project to add the draft issue to. This field is required.
/// **Upcoming Change on 2022-10-01 UTC**
/// **Description:** `projectId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.
/// **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API.
/// </summary>
public ID ProjectId { get; set; }
public ID? ProjectId { get; set; }

/// <summary>
/// The title of the draft issue.
/// The title of the draft issue. This field is required.
/// **Upcoming Change on 2022-10-01 UTC**
/// **Description:** `title` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.
/// **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API.
/// </summary>
public string Title { get; set; }

/// <summary>
/// The body of the draft issue.
/// **Upcoming Change on 2022-10-01 UTC**
/// **Description:** `body` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.
/// **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API.
/// </summary>
public string Body { get; set; }

/// <summary>
/// The IDs of the assignees of the draft issue.
/// **Upcoming Change on 2022-10-01 UTC**
/// **Description:** `assigneeIds` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.
/// **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API.
/// </summary>
public IEnumerable<ID> AssigneeIds { get; set; }

Expand Down
1 change: 1 addition & 0 deletions Octokit.GraphQL/Model/AddProjectDraftIssuePayload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ internal AddProjectDraftIssuePayload(Expression expression) : base(expression)
/// <summary>
/// The draft issue added to the project.
/// </summary>
[Obsolete(@"The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2022-10-01 UTC.")]
public ProjectNextItem ProjectNextItem => this.CreateProperty(x => x.ProjectNextItem, Octokit.GraphQL.Model.ProjectNextItem.Create);

internal static AddProjectDraftIssuePayload Create(Expression expression)
Expand Down
14 changes: 10 additions & 4 deletions Octokit.GraphQL/Model/AddProjectNextItemInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,20 @@ namespace Octokit.GraphQL.Model
public class AddProjectNextItemInput
{
/// <summary>
/// The ID of the Project to add the item to.
/// The ID of the Project to add the item to. This field is required.
/// **Upcoming Change on 2022-10-01 UTC**
/// **Description:** `projectId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.
/// **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API.
/// </summary>
public ID ProjectId { get; set; }
public ID? ProjectId { get; set; }

/// <summary>
/// The content id of the item (Issue or PullRequest).
/// The content id of the item (Issue or PullRequest). This field is required.
/// **Upcoming Change on 2022-10-01 UTC**
/// **Description:** `contentId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement.
/// **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API.
/// </summary>
public ID ContentId { get; set; }
public ID? ContentId { get; set; }

/// <summary>
/// A unique identifier for the client performing the mutation.
Expand Down
1 change: 1 addition & 0 deletions Octokit.GraphQL/Model/AddProjectNextItemPayload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ internal AddProjectNextItemPayload(Expression expression) : base(expression)
/// <summary>
/// The item added to the project.
/// </summary>
[Obsolete(@"The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. Removal on 2022-10-01 UTC.")]
public ProjectNextItem ProjectNextItem => this.CreateProperty(x => x.ProjectNextItem, Octokit.GraphQL.Model.ProjectNextItem.Create);

internal static AddProjectNextItemPayload Create(Expression expression)
Expand Down
36 changes: 36 additions & 0 deletions Octokit.GraphQL/Model/AddProjectV2DraftIssueInput.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
namespace Octokit.GraphQL.Model
{
using System;
using System.Collections.Generic;

/// <summary>
/// Autogenerated input type of AddProjectV2DraftIssue
/// </summary>
public class AddProjectV2DraftIssueInput
{
/// <summary>
/// The ID of the Project to add the draft issue to.
/// </summary>
public ID ProjectId { get; set; }

/// <summary>
/// The title of the draft issue.
/// </summary>
public string Title { get; set; }

/// <summary>
/// The body of the draft issue.
/// </summary>
public string Body { get; set; }

/// <summary>
/// The IDs of the assignees of the draft issue.
/// </summary>
public IEnumerable<ID> AssigneeIds { get; set; }

/// <summary>
/// A unique identifier for the client performing the mutation.
/// </summary>
public string ClientMutationId { get; set; }
}
}
33 changes: 33 additions & 0 deletions Octokit.GraphQL/Model/AddProjectV2DraftIssuePayload.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
namespace Octokit.GraphQL.Model
{
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using Octokit.GraphQL.Core;
using Octokit.GraphQL.Core.Builders;

/// <summary>
/// Autogenerated return type of AddProjectV2DraftIssue
/// </summary>
public class AddProjectV2DraftIssuePayload : QueryableValue<AddProjectV2DraftIssuePayload>
{
internal AddProjectV2DraftIssuePayload(Expression expression) : base(expression)
{
}

/// <summary>
/// A unique identifier for the client performing the mutation.
/// </summary>
public string ClientMutationId { get; }

/// <summary>
/// The draft issue added to the project.
/// </summary>
public ProjectV2Item ProjectItem => this.CreateProperty(x => x.ProjectItem, Octokit.GraphQL.Model.ProjectV2Item.Create);

internal static AddProjectV2DraftIssuePayload Create(Expression expression)
{
return new AddProjectV2DraftIssuePayload(expression);
}
}
}
26 changes: 26 additions & 0 deletions Octokit.GraphQL/Model/AddProjectV2ItemByIdInput.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
namespace Octokit.GraphQL.Model
{
using System;
using System.Collections.Generic;

/// <summary>
/// Autogenerated input type of AddProjectV2ItemById
/// </summary>
public class AddProjectV2ItemByIdInput
{
/// <summary>
/// The ID of the Project to add the item to.
/// </summary>
public ID ProjectId { get; set; }

/// <summary>
/// The id of the Issue or Pull Request to add.
/// </summary>
public ID ContentId { get; set; }

/// <summary>
/// A unique identifier for the client performing the mutation.
/// </summary>
public string ClientMutationId { get; set; }
}
}
33 changes: 33 additions & 0 deletions Octokit.GraphQL/Model/AddProjectV2ItemByIdPayload.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
namespace Octokit.GraphQL.Model
{
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using Octokit.GraphQL.Core;
using Octokit.GraphQL.Core.Builders;

/// <summary>
/// Autogenerated return type of AddProjectV2ItemById
/// </summary>
public class AddProjectV2ItemByIdPayload : QueryableValue<AddProjectV2ItemByIdPayload>
{
internal AddProjectV2ItemByIdPayload(Expression expression) : base(expression)
{
}

/// <summary>
/// A unique identifier for the client performing the mutation.
/// </summary>
public string ClientMutationId { get; }

/// <summary>
/// The item added to the project.
/// </summary>
public ProjectV2Item Item => this.CreateProperty(x => x.Item, Octokit.GraphQL.Model.ProjectV2Item.Create);

internal static AddProjectV2ItemByIdPayload Create(Expression expression)
{
return new AddProjectV2ItemByIdPayload(expression);
}
}
}
6 changes: 3 additions & 3 deletions Octokit.GraphQL/Model/AutoMergeRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ internal AutoMergeRequest(Expression expression) : base(expression)
public string AuthorEmail { get; }

/// <summary>
/// The commit message of the auto-merge request.
/// The commit message of the auto-merge request. If a merge queue is required by the base branch, this value will be set by the merge queue when merging.
/// </summary>
public string CommitBody { get; }

/// <summary>
/// The commit title of the auto-merge request.
/// The commit title of the auto-merge request. If a merge queue is required by the base branch, this value will be set by the merge queue when merging
/// </summary>
public string CommitHeadline { get; }

Expand All @@ -41,7 +41,7 @@ internal AutoMergeRequest(Expression expression) : base(expression)
public IActor EnabledBy => this.CreateProperty(x => x.EnabledBy, Octokit.GraphQL.Model.Internal.StubIActor.Create);

/// <summary>
/// The merge method of the auto-merge request.
/// The merge method of the auto-merge request. If a merge queue is required by the base branch, this value will be set by the merge queue when merging.
/// </summary>
public PullRequestMergeMethod MergeMethod { get; }

Expand Down
5 changes: 5 additions & 0 deletions Octokit.GraphQL/Model/BranchActorAllowanceActor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ internal BranchActorAllowanceActor(Expression expression) : base(expression)

public class Selector<T>
{
/// <summary>
/// A GitHub App.
/// </summary>
public Selector<T> App(Func<App, T> selector) => default;

/// <summary>
/// A team of users in an organization.
/// </summary>
Expand Down
6 changes: 3 additions & 3 deletions Octokit.GraphQL/Model/BypassForcePushAllowance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Octokit.GraphQL.Model
using Octokit.GraphQL.Core.Builders;

/// <summary>
/// A team or user who has the ability to bypass a force push requirement on a protected branch.
/// A user, team, or app who has the ability to bypass a force push requirement on a protected branch.
/// </summary>
public class BypassForcePushAllowance : QueryableValue<BypassForcePushAllowance>
{
Expand All @@ -16,12 +16,12 @@ internal BypassForcePushAllowance(Expression expression) : base(expression)
}

/// <summary>
/// The actor that can dismiss.
/// The actor that can force push.
/// </summary>
public BranchActorAllowanceActor Actor => this.CreateProperty(x => x.Actor, Octokit.GraphQL.Model.BranchActorAllowanceActor.Create);

/// <summary>
/// Identifies the branch protection rule associated with the allowed user or team.
/// Identifies the branch protection rule associated with the allowed user, team, or app.
/// </summary>
public BranchProtectionRule BranchProtectionRule => this.CreateProperty(x => x.BranchProtectionRule, Octokit.GraphQL.Model.BranchProtectionRule.Create);

Expand Down
6 changes: 3 additions & 3 deletions Octokit.GraphQL/Model/BypassPullRequestAllowance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Octokit.GraphQL.Model
using Octokit.GraphQL.Core.Builders;

/// <summary>
/// A team or user who has the ability to bypass a pull request requirement on a protected branch.
/// A user, team, or app who has the ability to bypass a pull request requirement on a protected branch.
/// </summary>
public class BypassPullRequestAllowance : QueryableValue<BypassPullRequestAllowance>
{
Expand All @@ -16,12 +16,12 @@ internal BypassPullRequestAllowance(Expression expression) : base(expression)
}

/// <summary>
/// The actor that can dismiss.
/// The actor that can bypass.
/// </summary>
public BranchActorAllowanceActor Actor => this.CreateProperty(x => x.Actor, Octokit.GraphQL.Model.BranchActorAllowanceActor.Create);

/// <summary>
/// Identifies the branch protection rule associated with the allowed user or team.
/// Identifies the branch protection rule associated with the allowed user, team, or app.
/// </summary>
public BranchProtectionRule BranchProtectionRule => this.CreateProperty(x => x.BranchProtectionRule, Octokit.GraphQL.Model.BranchProtectionRule.Create);

Expand Down
5 changes: 5 additions & 0 deletions Octokit.GraphQL/Model/CloseIssueInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ public class CloseIssueInput
/// </summary>
public ID IssueId { get; set; }

/// <summary>
/// The reason the issue is to be closed.
/// </summary>
public IssueClosedStateReason? StateReason { get; set; }

/// <summary>
/// A unique identifier for the client performing the mutation.
/// </summary>
Expand Down
5 changes: 5 additions & 0 deletions Octokit.GraphQL/Model/ClosedEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ internal ClosedEvent(Expression expression) : base(expression)
/// </summary>
public string ResourcePath { get; }

/// <summary>
/// The reason the issue state was changed to closed.
/// </summary>
public IssueStateReason? StateReason { get; }

/// <summary>
/// The HTTP URL for this closed event.
/// </summary>
Expand Down
3 changes: 2 additions & 1 deletion Octokit.GraphQL/Model/ContributionsCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ internal ContributionsCollection(Expression expression) : base(expression)
public IQueryableList<PullRequestContributionsByRepository> PullRequestContributionsByRepository(Arg<bool>? excludeFirst = null, Arg<bool>? excludePopular = null, Arg<int>? maxRepositories = null) => this.CreateMethodCall(x => x.PullRequestContributionsByRepository(excludeFirst, excludePopular, maxRepositories));

/// <summary>
/// Pull request review contributions made by the user.
/// Pull request review contributions made by the user. Returns the most recently
/// submitted review for each PR reviewed by the user.
/// </summary>
/// <param name="first">Returns the first _n_ elements from the list.</param>
/// <param name="after">Returns the elements in the list that come after the specified cursor.</param>
Expand Down
Loading