Skip to content

Commit

Permalink
add node_id to Deployment and DeploymentStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangribble committed Jun 5, 2018
1 parent fc3e9c2 commit 4b7aac6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion Octokit/Models/Response/Deployment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class Deployment
{
public Deployment() { }

public Deployment(int id, string sha, string url, User creator, IReadOnlyDictionary<string, string> payload, DateTimeOffset createdAt, DateTimeOffset updatedAt, string description, string statusesUrl, bool transientEnvironment, bool productionEnvironment)
public Deployment(int id, string sha, string url, User creator, IReadOnlyDictionary<string, string> payload, DateTimeOffset createdAt, DateTimeOffset updatedAt, string description, string statusesUrl, bool transientEnvironment, bool productionEnvironment, string nodeId)
{
Id = id;
Sha = sha;
Expand All @@ -26,6 +26,7 @@ public Deployment(int id, string sha, string url, User creator, IReadOnlyDiction
StatusesUrl = statusesUrl;
TransientEnvironment = transientEnvironment;
ProductionEnvironment = productionEnvironment;
NodeId = nodeId;
}

/// <summary>
Expand Down Expand Up @@ -83,6 +84,11 @@ public Deployment(int id, string sha, string url, User creator, IReadOnlyDiction
/// </summary>
public bool ProductionEnvironment { get; protected set; }

/// <summary>
/// GraphQL Node Id
/// </summary>
public string NodeId { get; protected set; }

internal string DebuggerDisplay
{
get
Expand Down
8 changes: 7 additions & 1 deletion Octokit/Models/Response/DeploymentStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class DeploymentStatus
{
public DeploymentStatus() { }

public DeploymentStatus(int id, string url, DeploymentState state, User creator, IReadOnlyDictionary<string, string> payload, string targetUrl, string logUrl, string environmentUrl, DateTimeOffset createdAt, DateTimeOffset updatedAt, string description)
public DeploymentStatus(int id, string url, DeploymentState state, User creator, IReadOnlyDictionary<string, string> payload, string targetUrl, string logUrl, string environmentUrl, DateTimeOffset createdAt, DateTimeOffset updatedAt, string description, string nodeId)
{
Id = id;
Url = url;
Expand All @@ -24,6 +24,7 @@ public DeploymentStatus(int id, string url, DeploymentState state, User creator,
CreatedAt = createdAt;
UpdatedAt = updatedAt;
Description = description;
NodeId = nodeId;
}

/// <summary>
Expand Down Expand Up @@ -85,6 +86,11 @@ public DeploymentStatus(int id, string url, DeploymentState state, User creator,
/// </summary>
public string Description { get; protected set; }

/// <summary>
/// GraphQL Node Id
/// </summary>
public string NodeId { get; protected set; }

internal string DebuggerDisplay
{
get
Expand Down

0 comments on commit 4b7aac6

Please sign in to comment.