Skip to content

Commit

Permalink
Merge branch 'main' into cleanup-projects-revive
Browse files Browse the repository at this point in the history
  • Loading branch information
kfcampbell committed Feb 26, 2024
2 parents 9591059 + 97ac7b9 commit 797b8e0
Show file tree
Hide file tree
Showing 316 changed files with 2,164 additions and 53 deletions.
6 changes: 3 additions & 3 deletions Octokit.GraphQL.UnitTests/ExpressionRewiterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void RepositoryOwner_Repository_Query()
public void Repository_Select_Use_Fragment_Twice()
{
var fragment = new Fragment<Repository, string>("repositoryName", repository => repository.Name);

var query = new Query()
.Select(q => new
{
Expand Down Expand Up @@ -129,7 +129,7 @@ public void Repository_Details_With_Viewer()
{
var query = new Query()
.Select(x => x.RepositoryOwner("foo")
.Repositories(30, null, null, null, null, null, null, null, null, null, null, null)
.Repositories(30, null, null, null, null, null, null, null, null, null, null, null, null)
.Edges
.Select(y => y.Node)
.Select(z => new
Expand All @@ -145,7 +145,7 @@ public void Repository_Details_With_Viewer()
Expression<Func<JObject, IEnumerable<object>>> expected = data =>
(IEnumerable<object>)Rewritten.Value.SelectList(
data["data"],
x =>
x =>
Rewritten.List.Select(
Rewritten.List.Select(
x["repositoryOwner"]["repositories"]["edges"],
Expand Down
4 changes: 2 additions & 2 deletions Octokit.GraphQL.UnitTests/QueryBuilderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public void RepositoryOwner_Repositories_Query_Viewer()
var expression = new Query()
.Select(root => root
.RepositoryOwner("foo")
.Repositories(30, null, null, null, null, null, null, null, null, null, null, null)
.Repositories(30, null, null, null, null, null, null, null, null, null, null, null, null)
.Edges.Select(x => x.Node)
.Select(x => new
{
Expand Down Expand Up @@ -221,7 +221,7 @@ public void Repository_Details_With_Viewer()

var expression = new Query()
.Select(x => x.RepositoryOwner("foo")
.Repositories(30, null, null, null, null, null, null, null, null, null, null, null)
.Repositories(30, null, null, null, null, null, null, null, null, null, null, null, null)
.Edges
.Select(y => y.Node)
.Select(y => new
Expand Down
8 changes: 7 additions & 1 deletion Octokit.GraphQL/Model/AcceptTopicSuggestionInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@ public class AcceptTopicSuggestionInput
{
/// <summary>
/// The Node ID of the repository.
/// **Upcoming Change on 2024-04-01 UTC**
/// **Description:** `repositoryId` will be removed.
/// **Reason:** Suggested topics are no longer supported
/// </summary>
public ID RepositoryId { get; set; }
public ID? RepositoryId { get; set; }

/// <summary>
/// The name of the suggested topic.
/// **Upcoming Change on 2024-04-01 UTC**
/// **Description:** `name` will be removed.
/// **Reason:** Suggested topics are no longer supported
/// </summary>
public string Name { get; set; }

Expand Down
1 change: 1 addition & 0 deletions Octokit.GraphQL/Model/AcceptTopicSuggestionPayload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ internal AcceptTopicSuggestionPayload(Expression expression) : base(expression)
/// <summary>
/// The accepted topic.
/// </summary>
[Obsolete(@"Suggested topics are no longer supported Removal on 2024-04-01 UTC.")]
public Topic Topic => this.CreateProperty(x => x.Topic, Octokit.GraphQL.Model.Topic.Create);

internal static AcceptTopicSuggestionPayload Create(Expression expression)
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/AddedToMergeQueueEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ internal AddedToMergeQueueEvent(Expression expression) : base(expression)
/// </summary>
public User Enqueuer => this.CreateProperty(x => x.Enqueuer, Octokit.GraphQL.Model.User.Create);

/// <summary>
/// The Node ID of the AddedToMergeQueueEvent object
/// </summary>
public ID Id { get; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/AddedToProjectEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ internal AddedToProjectEvent(Expression expression) : base(expression)
/// </summary>
public int? DatabaseId { get; }

/// <summary>
/// The Node ID of the AddedToProjectEvent object
/// </summary>
public ID Id { get; }

internal static AddedToProjectEvent Create(Expression expression)
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ internal App(Expression expression) : base(expression)
/// </summary>
public string Description { get; }

/// <summary>
/// The Node ID of the App object
/// </summary>
public ID Id { get; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/AssignedEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ internal AssignedEvent(Expression expression) : base(expression)
/// </summary>
public DateTimeOffset CreatedAt { get; }

/// <summary>
/// The Node ID of the AssignedEvent object
/// </summary>
public ID Id { get; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/AutoMergeDisabledEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ internal AutoMergeDisabledEvent(Expression expression) : base(expression)
/// </summary>
public User Disabler => this.CreateProperty(x => x.Disabler, Octokit.GraphQL.Model.User.Create);

/// <summary>
/// The Node ID of the AutoMergeDisabledEvent object
/// </summary>
public ID Id { get; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/AutoMergeEnabledEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ internal AutoMergeEnabledEvent(Expression expression) : base(expression)
/// </summary>
public User Enabler => this.CreateProperty(x => x.Enabler, Octokit.GraphQL.Model.User.Create);

/// <summary>
/// The Node ID of the AutoMergeEnabledEvent object
/// </summary>
public ID Id { get; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/AutoRebaseEnabledEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ internal AutoRebaseEnabledEvent(Expression expression) : base(expression)
/// </summary>
public User Enabler => this.CreateProperty(x => x.Enabler, Octokit.GraphQL.Model.User.Create);

/// <summary>
/// The Node ID of the AutoRebaseEnabledEvent object
/// </summary>
public ID Id { get; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/AutoSquashEnabledEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ internal AutoSquashEnabledEvent(Expression expression) : base(expression)
/// </summary>
public User Enabler => this.CreateProperty(x => x.Enabler, Octokit.GraphQL.Model.User.Create);

/// <summary>
/// The Node ID of the AutoSquashEnabledEvent object
/// </summary>
public ID Id { get; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/AutomaticBaseChangeFailedEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ internal AutomaticBaseChangeFailedEvent(Expression expression) : base(expression
/// </summary>
public DateTimeOffset CreatedAt { get; }

/// <summary>
/// The Node ID of the AutomaticBaseChangeFailedEvent object
/// </summary>
public ID Id { get; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/AutomaticBaseChangeSucceededEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ internal AutomaticBaseChangeSucceededEvent(Expression expression) : base(express
/// </summary>
public DateTimeOffset CreatedAt { get; }

/// <summary>
/// The Node ID of the AutomaticBaseChangeSucceededEvent object
/// </summary>
public ID Id { get; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/BaseRefChangedEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ internal BaseRefChangedEvent(Expression expression) : base(expression)
/// </summary>
public int? DatabaseId { get; }

/// <summary>
/// The Node ID of the BaseRefChangedEvent object
/// </summary>
public ID Id { get; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/BaseRefDeletedEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ internal BaseRefDeletedEvent(Expression expression) : base(expression)
/// </summary>
public DateTimeOffset CreatedAt { get; }

/// <summary>
/// The Node ID of the BaseRefDeletedEvent object
/// </summary>
public ID Id { get; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/BaseRefForcePushedEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ internal BaseRefForcePushedEvent(Expression expression) : base(expression)
/// </summary>
public DateTimeOffset CreatedAt { get; }

/// <summary>
/// The Node ID of the BaseRefForcePushedEvent object
/// </summary>
public ID Id { get; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/Blob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ internal Blob(Expression expression) : base(expression)
/// </summary>
public string CommitUrl { get; }

/// <summary>
/// The Node ID of the Blob object
/// </summary>
public ID Id { get; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/Bot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ internal Bot(Expression expression) : base(expression)
/// </summary>
public int? DatabaseId { get; }

/// <summary>
/// The Node ID of the Bot object
/// </summary>
public ID Id { get; }

/// <summary>
Expand Down
5 changes: 4 additions & 1 deletion Octokit.GraphQL/Model/BranchProtectionRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,13 @@ internal BranchProtectionRule(Expression expression) : base(expression)
/// </summary>
public bool DismissesStaleReviews { get; }

/// <summary>
/// The Node ID of the BranchProtectionRule object
/// </summary>
public ID Id { get; }

/// <summary>
/// Can admins overwrite branch protection.
/// Can admins override branch protection.
/// </summary>
public bool IsAdminEnforced { get; }

Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/BypassForcePushAllowance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ internal BypassForcePushAllowance(Expression expression) : base(expression)
/// </summary>
public BranchProtectionRule BranchProtectionRule => this.CreateProperty(x => x.BranchProtectionRule, Octokit.GraphQL.Model.BranchProtectionRule.Create);

/// <summary>
/// The Node ID of the BypassForcePushAllowance object
/// </summary>
public ID Id { get; }

internal static BypassForcePushAllowance Create(Expression expression)
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/BypassPullRequestAllowance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ internal BypassPullRequestAllowance(Expression expression) : base(expression)
/// </summary>
public BranchProtectionRule BranchProtectionRule => this.CreateProperty(x => x.BranchProtectionRule, Octokit.GraphQL.Model.BranchProtectionRule.Create);

/// <summary>
/// The Node ID of the BypassPullRequestAllowance object
/// </summary>
public ID Id { get; }

internal static BypassPullRequestAllowance Create(Expression expression)
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/CWE.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ internal CWE(Expression expression) : base(expression)
/// </summary>
public string Description { get; }

/// <summary>
/// The Node ID of the CWE object
/// </summary>
public ID Id { get; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/CheckRun.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ internal CheckRun(Expression expression) : base(expression)
/// </summary>
public string ExternalId { get; }

/// <summary>
/// The Node ID of the CheckRun object
/// </summary>
public ID Id { get; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/CheckSuite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ internal CheckSuite(Expression expression) : base(expression)
/// </summary>
public int? DatabaseId { get; }

/// <summary>
/// The Node ID of the CheckSuite object
/// </summary>
public ID Id { get; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/ClosedEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ internal ClosedEvent(Expression expression) : base(expression)
/// </summary>
public DateTimeOffset CreatedAt { get; }

/// <summary>
/// The Node ID of the ClosedEvent object
/// </summary>
public ID Id { get; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/CodeOfConduct.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ internal CodeOfConduct(Expression expression) : base(expression)
/// </summary>
public string Body { get; }

/// <summary>
/// The Node ID of the CodeOfConduct object
/// </summary>
public ID Id { get; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/Comment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ public interface IComment : IQueryableValue<IComment>, IQueryableInterface
/// </summary>
IActor Editor { get; }

/// <summary>
/// The Node ID of the Comment object
/// </summary>
ID Id { get; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/CommentDeletedEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ internal CommentDeletedEvent(Expression expression) : base(expression)
/// </summary>
public IActor DeletedCommentAuthor => this.CreateProperty(x => x.DeletedCommentAuthor, Octokit.GraphQL.Model.Internal.StubIActor.Create);

/// <summary>
/// The Node ID of the CommentDeletedEvent object
/// </summary>
public ID Id { get; }

internal static CommentDeletedEvent Create(Expression expression)
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/Commit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ internal Commit(Expression expression) : base(expression)
/// <param name="until">Allows specifying an ending time or date for fetching commits.</param>
public CommitHistoryConnection History(Arg<int>? first = null, Arg<string>? after = null, Arg<int>? last = null, Arg<string>? before = null, Arg<CommitAuthor>? author = null, Arg<string>? path = null, Arg<string>? since = null, Arg<string>? until = null) => this.CreateMethodCall(x => x.History(first, after, last, before, author, path, since, until), Octokit.GraphQL.Model.CommitHistoryConnection.Create);

/// <summary>
/// The Node ID of the Commit object
/// </summary>
public ID Id { get; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/CommitComment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ internal CommitComment(Expression expression) : base(expression)
/// </summary>
public IActor Editor => this.CreateProperty(x => x.Editor, Octokit.GraphQL.Model.Internal.StubIActor.Create);

/// <summary>
/// The Node ID of the CommitComment object
/// </summary>
public ID Id { get; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/CommitCommentThread.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ internal CommitCommentThread(Expression expression) : base(expression)
/// </summary>
public Commit Commit => this.CreateProperty(x => x.Commit, Octokit.GraphQL.Model.Commit.Create);

/// <summary>
/// The Node ID of the CommitCommentThread object
/// </summary>
public ID Id { get; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/Comparison.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ internal Comparison(Expression expression) : base(expression)
/// </summary>
public IGitObject HeadTarget => this.CreateProperty(x => x.HeadTarget, Octokit.GraphQL.Model.Internal.StubIGitObject.Create);

/// <summary>
/// The Node ID of the Comparison object
/// </summary>
public ID Id { get; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/ConnectedEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ internal ConnectedEvent(Expression expression) : base(expression)
/// </summary>
public DateTimeOffset CreatedAt { get; }

/// <summary>
/// The Node ID of the ConnectedEvent object
/// </summary>
public ID Id { get; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/ConvertToDraftEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ internal ConvertToDraftEvent(Expression expression) : base(expression)
/// </summary>
public DateTimeOffset CreatedAt { get; }

/// <summary>
/// The Node ID of the ConvertToDraftEvent object
/// </summary>
public ID Id { get; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Octokit.GraphQL/Model/ConvertedNoteToIssueEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ internal ConvertedNoteToIssueEvent(Expression expression) : base(expression)
/// </summary>
public int? DatabaseId { get; }

/// <summary>
/// The Node ID of the ConvertedNoteToIssueEvent object
/// </summary>
public ID Id { get; }

internal static ConvertedNoteToIssueEvent Create(Expression expression)
Expand Down
Loading

0 comments on commit 797b8e0

Please sign in to comment.