Skip to content

Commit 04d8c76

Browse files
Schema Update
1 parent 0287fad commit 04d8c76

38 files changed

+943
-2
lines changed

Octokit.GraphQL/Model/AddProjectCardPayload.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public AddProjectCardPayload(Expression expression) : base(expression)
3131
/// <summary>
3232
/// The ProjectColumn
3333
/// **Upcoming Change on 2019-01-01 UTC**
34-
/// **Description:** Type for `projectColumn` will change from `Project!` to `Project`.
34+
/// **Description:** Type for `projectColumn` will change from `Project!` to `ProjectColumn`.
3535
/// **Reason:** In preparation for an upcoming change to the way we report mutation errors, non-nullable payload fields are becoming nullable.
3636
/// </summary>
3737
public Project ProjectColumn => this.CreateProperty(x => x.ProjectColumn, Octokit.GraphQL.Model.Project.Create);

Octokit.GraphQL/Model/CommentCannotUpdateReason.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,11 @@ public enum CommentCannotUpdateReason
4040
/// </summary>
4141
[EnumMember(Value = "VERIFIED_EMAIL_REQUIRED")]
4242
VerifiedEmailRequired,
43+
44+
/// <summary>
45+
/// You cannot update this comment
46+
/// </summary>
47+
[EnumMember(Value = "DENIED")]
48+
Denied,
4349
}
4450
}

Octokit.GraphQL/Model/CommitComment.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,21 @@ public CommitComment(Expression expression) : base(expression)
7272
/// </summary>
7373
public bool IncludesCreatedEdit { get; }
7474

75+
/// <summary>
76+
/// Returns whether or not a comment has been minimized.
77+
/// </summary>
78+
public bool IsMinimized { get; }
79+
7580
/// <summary>
7681
/// The moment the editor made the last edit
7782
/// </summary>
7883
public DateTimeOffset? LastEditedAt { get; }
7984

85+
/// <summary>
86+
/// Returns why the comment was minimized.
87+
/// </summary>
88+
public string MinimizedReason { get; }
89+
8090
/// <summary>
8191
/// Identifies the file path associated with the comment.
8292
/// </summary>
@@ -142,6 +152,11 @@ public CommitComment(Expression expression) : base(expression)
142152
/// </summary>
143153
public bool ViewerCanDelete { get; }
144154

155+
/// <summary>
156+
/// Check if the current viewer can minimize this object.
157+
/// </summary>
158+
public bool ViewerCanMinimize { get; }
159+
145160
/// <summary>
146161
/// Can user react to this subject
147162
/// </summary>

Octokit.GraphQL/Model/CommitHistoryConnection.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ public CommitHistoryConnection(Expression expression) : base(expression)
1515
{
1616
}
1717

18+
/// <summary>
19+
/// A list of edges.
20+
/// </summary>
1821
public IQueryableList<CommitEdge> Edges => this.CreateProperty(x => x.Edges);
1922

2023
/// <summary>
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+
/// A content attachment
11+
/// </summary>
12+
public class ContentAttachment : QueryableValue<ContentAttachment>
13+
{
14+
public ContentAttachment(Expression expression) : base(expression)
15+
{
16+
}
17+
18+
/// <summary>
19+
/// The body text of the content attachment. This parameter supports markdown.
20+
/// </summary>
21+
public string Body { get; }
22+
23+
/// <summary>
24+
/// The content reference that the content attachment is attached to.
25+
/// </summary>
26+
public ContentReference ContentReference => this.CreateProperty(x => x.ContentReference, Octokit.GraphQL.Model.ContentReference.Create);
27+
28+
/// <summary>
29+
/// Identifies the primary key from the database.
30+
/// </summary>
31+
public int DatabaseId { get; }
32+
33+
public ID Id { get; }
34+
35+
/// <summary>
36+
/// The title of the content attachment.
37+
/// </summary>
38+
public string Title { get; }
39+
40+
internal static ContentAttachment Create(Expression expression)
41+
{
42+
return new ContentAttachment(expression);
43+
}
44+
}
45+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
/// A content reference
11+
/// </summary>
12+
public class ContentReference : QueryableValue<ContentReference>
13+
{
14+
public ContentReference(Expression expression) : base(expression)
15+
{
16+
}
17+
18+
/// <summary>
19+
/// Identifies the primary key from the database.
20+
/// </summary>
21+
public int DatabaseId { get; }
22+
23+
public ID Id { get; }
24+
25+
/// <summary>
26+
/// The reference of the content reference.
27+
/// </summary>
28+
public string Reference { get; }
29+
30+
internal static ContentReference Create(Expression expression)
31+
{
32+
return new ContentReference(expression);
33+
}
34+
}
35+
}
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+
/// A calendar of contributions made on GitHub by a user.
11+
/// </summary>
12+
public class ContributionCalendar : QueryableValue<ContributionCalendar>
13+
{
14+
public ContributionCalendar(Expression expression) : base(expression)
15+
{
16+
}
17+
18+
/// <summary>
19+
/// A list of hex color codes used in this calendar. The darker the color, the more contributions it represents.
20+
/// </summary>
21+
public IEnumerable<string> Colors { get; }
22+
23+
/// <summary>
24+
/// Determine if the color set was chosen because it's currently Halloween.
25+
/// </summary>
26+
public bool IsHalloween { get; }
27+
28+
/// <summary>
29+
/// A list of the months of contributions in this calendar.
30+
/// </summary>
31+
public IQueryableList<ContributionCalendarMonth> Months => this.CreateProperty(x => x.Months);
32+
33+
/// <summary>
34+
/// The count of total contributions in the calendar.
35+
/// </summary>
36+
public int TotalContributions { get; }
37+
38+
/// <summary>
39+
/// A list of the weeks of contributions in this calendar.
40+
/// </summary>
41+
public IQueryableList<ContributionCalendarWeek> Weeks => this.CreateProperty(x => x.Weeks);
42+
43+
internal static ContributionCalendar Create(Expression expression)
44+
{
45+
return new ContributionCalendar(expression);
46+
}
47+
}
48+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 single day of contributions on GitHub by a user.
11+
/// </summary>
12+
public class ContributionCalendarDay : QueryableValue<ContributionCalendarDay>
13+
{
14+
public ContributionCalendarDay(Expression expression) : base(expression)
15+
{
16+
}
17+
18+
/// <summary>
19+
/// The hex color code that represents how many contributions were made on this day compared to others in the calendar.
20+
/// </summary>
21+
public string Color { get; }
22+
23+
/// <summary>
24+
/// How many contributions were made by the user on this day.
25+
/// </summary>
26+
public int ContributionCount { get; }
27+
28+
/// <summary>
29+
/// The day this square represents.
30+
/// </summary>
31+
public string Date { get; }
32+
33+
/// <summary>
34+
/// A number representing which day of the week this square represents, e.g., 1 is Monday.
35+
/// </summary>
36+
public int Weekday { get; }
37+
38+
internal static ContributionCalendarDay Create(Expression expression)
39+
{
40+
return new ContributionCalendarDay(expression);
41+
}
42+
}
43+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
/// A month of contributions in a user's contribution graph.
11+
/// </summary>
12+
public class ContributionCalendarMonth : QueryableValue<ContributionCalendarMonth>
13+
{
14+
public ContributionCalendarMonth(Expression expression) : base(expression)
15+
{
16+
}
17+
18+
/// <summary>
19+
/// The date of the first day of this month.
20+
/// </summary>
21+
public string FirstDay { get; }
22+
23+
/// <summary>
24+
/// The name of the month.
25+
/// </summary>
26+
public string Name { get; }
27+
28+
/// <summary>
29+
/// How many weeks started in this month.
30+
/// </summary>
31+
public int TotalWeeks { get; }
32+
33+
/// <summary>
34+
/// The year the month occurred in.
35+
/// </summary>
36+
public int Year { get; }
37+
38+
internal static ContributionCalendarMonth Create(Expression expression)
39+
{
40+
return new ContributionCalendarMonth(expression);
41+
}
42+
}
43+
}
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+
/// A week of contributions in a user's contribution graph.
11+
/// </summary>
12+
public class ContributionCalendarWeek : QueryableValue<ContributionCalendarWeek>
13+
{
14+
public ContributionCalendarWeek(Expression expression) : base(expression)
15+
{
16+
}
17+
18+
/// <summary>
19+
/// The days of contributions in this week.
20+
/// </summary>
21+
public IQueryableList<ContributionCalendarDay> ContributionDays => this.CreateProperty(x => x.ContributionDays);
22+
23+
/// <summary>
24+
/// The date of the earliest square in this week.
25+
/// </summary>
26+
public string FirstDay { get; }
27+
28+
internal static ContributionCalendarWeek Create(Expression expression)
29+
{
30+
return new ContributionCalendarWeek(expression);
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)