Skip to content
Open
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
18 changes: 18 additions & 0 deletions src/Octokit.GraphQL/Model/Issue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,24 @@ internal Issue(Expression expression) : base(expression)
/// </summary>
public IActor Author => this.CreateProperty(x => x.Author, Octokit.GraphQL.Model.Internal.StubIActor.Create);

/// <summary>
/// The parent entity of the issue.
/// </summary>
public Issue Parent => this.CreateProperty(x => x.Parent, Octokit.GraphQL.Model.Issue.Create);

/// <summary>
/// A list of sub-issues associated with the Issue.
/// </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>
/// <param name="last">Returns the last _n_ elements from the list.</param>
/// <param name="before">Returns the elements in the list that come before the specified cursor.</param>
public IssueConnection SubIssues(Arg<int>? first = null, Arg<string>? after = null, Arg<int>? last = null, Arg<string>? before = null) => this.CreateMethodCall(x => x.SubIssues(first, after, last, before), Octokit.GraphQL.Model.IssueConnection.Create);

/// <summary>
/// Summary of the state of an issue's sub-issues
/// </summary>
public SubIssuesSummary SubIssuesSummary => this.CreateProperty(x => x.SubIssuesSummary, Octokit.GraphQL.Model.SubIssuesSummary.Create);
/// <summary>
/// Author's association with the subject of the comment.
/// </summary>
Expand Down
35 changes: 35 additions & 0 deletions src/Octokit.GraphQL/Model/SubIssuesSummary.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using System.Linq.Expressions;
using Octokit.GraphQL.Core;

namespace Octokit.GraphQL.Model
{
/// <summary>
/// Summary of the state of an issue's sub-issues
/// </summary>
public class SubIssuesSummary : QueryableValue<SubIssuesSummary>
{
internal SubIssuesSummary(Expression expression) : base(expression)
{
}

/// <summary>
/// Count of completed sub-issues
/// </summary>
public int Completed { get; }

/// <summary>
/// Percent of sub-issues which are completed
/// </summary>
public int percentCompleted { get; }

/// <summary>
/// Count of total number of sub-issues
/// </summary>
public int Total { get; }

internal static SubIssuesSummary Create(Expression expression)
{
return new SubIssuesSummary(expression);
}
}
}