Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
brphelps authored Feb 26, 2020
2 parents 684a6ae + e6fc5dd commit f7d5dab
Show file tree
Hide file tree
Showing 380 changed files with 19,198 additions and 579 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public async Task Query_Organization_Repositories_Select_Multiple_Object_Fragmen
.Select(fragment).ToList().OrderBy(o => o.StringField1).First(),

MentionableUser = organization.Repository("octokit.net")
.MentionableUsers(10, null, null, null).Nodes
.MentionableUsers(10, null, null, null, null).Nodes
.Select(fragment).ToList().OrderBy(o => o.StringField1).First()
});

Expand Down
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 AcceptEnterpriseAdministratorInvitation
/// </summary>
public class AcceptEnterpriseAdministratorInvitationInput
{
/// <summary>
/// The id of the invitation being accepted
/// </summary>
public ID InvitationId { get; set; }

/// <summary>
/// A unique identifier for the client performing the mutation.
/// </summary>
public string ClientMutationId { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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 AcceptEnterpriseAdministratorInvitation
/// </summary>
public class AcceptEnterpriseAdministratorInvitationPayload : QueryableValue<AcceptEnterpriseAdministratorInvitationPayload>
{
internal AcceptEnterpriseAdministratorInvitationPayload(Expression expression) : base(expression)
{
}

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

/// <summary>
/// The invitation that was accepted.
/// </summary>
public EnterpriseAdministratorInvitation Invitation => this.CreateProperty(x => x.Invitation, Octokit.GraphQL.Model.EnterpriseAdministratorInvitation.Create);

/// <summary>
/// A message confirming the result of accepting an administrator invitation.
/// </summary>
public string Message { get; }

internal static AcceptEnterpriseAdministratorInvitationPayload Create(Expression expression)
{
return new AcceptEnterpriseAdministratorInvitationPayload(expression);
}
}
}
38 changes: 38 additions & 0 deletions Octokit.GraphQL/Model/ActionExecutionCapabilitySetting.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
using System;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;

namespace Octokit.GraphQL.Model
{
/// <summary>
/// The possible capabilities for action executions setting.
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public enum ActionExecutionCapabilitySetting
{
/// <summary>
/// All action executions are disabled.
/// </summary>
[EnumMember(Value = "DISABLED")]
Disabled,

/// <summary>
/// All action executions are enabled.
/// </summary>
[EnumMember(Value = "ALL_ACTIONS")]
AllActions,

/// <summary>
/// Only actions defined within the repo are allowed.
/// </summary>
[EnumMember(Value = "LOCAL_ACTIONS_ONLY")]
LocalActionsOnly,

/// <summary>
/// Organization administrators action execution capabilities.
/// </summary>
[EnumMember(Value = "NO_POLICY")]
NoPolicy,
}
}
48 changes: 48 additions & 0 deletions Octokit.GraphQL/Model/ActorLocation.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
namespace Octokit.GraphQL.Model
{
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using Octokit.GraphQL.Core;
using Octokit.GraphQL.Core.Builders;

/// <summary>
/// Location information for an actor
/// </summary>
public class ActorLocation : QueryableValue<ActorLocation>
{
internal ActorLocation(Expression expression) : base(expression)
{
}

/// <summary>
/// City
/// </summary>
public string City { get; }

/// <summary>
/// Country name
/// </summary>
public string Country { get; }

/// <summary>
/// Country code
/// </summary>
public string CountryCode { get; }

/// <summary>
/// Region name
/// </summary>
public string Region { get; }

/// <summary>
/// Region or state code
/// </summary>
public string RegionCode { get; }

internal static ActorLocation Create(Expression expression)
{
return new ActorLocation(expression);
}
}
}
7 changes: 6 additions & 1 deletion Octokit.GraphQL/Model/AddPullRequestReviewCommentInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ namespace Octokit.GraphQL.Model
/// </summary>
public class AddPullRequestReviewCommentInput
{
/// <summary>
/// The node ID of the pull request reviewing
/// </summary>
public ID? PullRequestId { get; set; }

/// <summary>
/// The Node ID of the review to modify.
/// </summary>
public ID PullRequestReviewId { get; set; }
public ID? PullRequestReviewId { get; set; }

/// <summary>
/// The SHA of the commit to comment on.
Expand Down
21 changes: 21 additions & 0 deletions Octokit.GraphQL/Model/ArchiveRepositoryInput.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 ArchiveRepository
/// </summary>
public class ArchiveRepositoryInput
{
/// <summary>
/// The ID of the repository to mark as archived.
/// </summary>
public ID RepositoryId { 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/ArchiveRepositoryPayload.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 ArchiveRepository
/// </summary>
public class ArchiveRepositoryPayload : QueryableValue<ArchiveRepositoryPayload>
{
internal ArchiveRepositoryPayload(Expression expression) : base(expression)
{
}

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

/// <summary>
/// The repository that was marked as archived.
/// </summary>
public Repository Repository => this.CreateProperty(x => x.Repository, Octokit.GraphQL.Model.Repository.Create);

internal static ArchiveRepositoryPayload Create(Expression expression)
{
return new ArchiveRepositoryPayload(expression);
}
}
}
6 changes: 6 additions & 0 deletions Octokit.GraphQL/Model/AssignedEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ internal AssignedEvent(Expression expression) : base(expression)
/// </summary>
public IAssignable Assignable => this.CreateProperty(x => x.Assignable, Octokit.GraphQL.Model.Internal.StubIAssignable.Create);

/// <summary>
/// Identifies the user or mannequin that was assigned.
/// </summary>
public Assignee Assignee => this.CreateProperty(x => x.Assignee, Octokit.GraphQL.Model.Assignee.Create);

/// <summary>
/// Identifies the date and time when the object was created.
/// </summary>
Expand All @@ -35,6 +40,7 @@ internal AssignedEvent(Expression expression) : base(expression)
/// <summary>
/// Identifies the user who was assigned.
/// </summary>
[Obsolete(@"Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC.")]
public User User => this.CreateProperty(x => x.User, Octokit.GraphQL.Model.User.Create);

internal static AssignedEvent Create(Expression expression)
Expand Down
48 changes: 48 additions & 0 deletions Octokit.GraphQL/Model/Assignee.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
namespace Octokit.GraphQL.Model
{
using System;
using System.Linq;
using System.Linq.Expressions;
using Octokit.GraphQL.Core;
using Octokit.GraphQL.Core.Builders;

/// <summary>
/// Types that can be assigned to issues.
/// </summary>
public class Assignee : QueryableValue<Assignee>, IUnion
{
internal Assignee(Expression expression) : base(expression)
{
}

public TResult Switch<TResult>(Expression<Func<Selector<TResult>, Selector<TResult>>> select) => default;

public class Selector<T>
{
/// <summary>
/// A special type of user which takes actions on behalf of GitHub Apps.
/// </summary>
public Selector<T> Bot(Func<Bot, T> selector) => default;

/// <summary>
/// A placeholder user for attribution of imported data on GitHub.
/// </summary>
public Selector<T> Mannequin(Func<Mannequin, T> selector) => default;

/// <summary>
/// An account on GitHub, with one or more owners, that has repositories, members and teams.
/// </summary>
public Selector<T> Organization(Func<Organization, T> selector) => default;

/// <summary>
/// A user is an individual's account on GitHub that owns repositories and can make new content.
/// </summary>
public Selector<T> User(Func<User, T> selector) => default;
}

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

0 comments on commit f7d5dab

Please sign in to comment.