diff --git a/Octokit/Models/Response/Deployment.cs b/Octokit/Models/Response/Deployment.cs index a9ab8fe2cd..23d91e4c98 100644 --- a/Octokit/Models/Response/Deployment.cs +++ b/Octokit/Models/Response/Deployment.cs @@ -13,7 +13,7 @@ public class Deployment { public Deployment() { } - public Deployment(int id, string sha, string url, User creator, IReadOnlyDictionary payload, DateTimeOffset createdAt, DateTimeOffset updatedAt, string description, string statusesUrl, bool transientEnvironment, bool productionEnvironment) + public Deployment(int id, string sha, string url, User creator, IReadOnlyDictionary payload, DateTimeOffset createdAt, DateTimeOffset updatedAt, string description, string statusesUrl, bool transientEnvironment, bool productionEnvironment, string nodeId) { Id = id; Sha = sha; @@ -26,6 +26,7 @@ public Deployment(int id, string sha, string url, User creator, IReadOnlyDiction StatusesUrl = statusesUrl; TransientEnvironment = transientEnvironment; ProductionEnvironment = productionEnvironment; + NodeId = nodeId; } /// @@ -83,6 +84,11 @@ public Deployment(int id, string sha, string url, User creator, IReadOnlyDiction /// public bool ProductionEnvironment { get; protected set; } + /// + /// GraphQL Node Id + /// + public string NodeId { get; protected set; } + internal string DebuggerDisplay { get diff --git a/Octokit/Models/Response/DeploymentStatus.cs b/Octokit/Models/Response/DeploymentStatus.cs index 363144da5f..83896a455e 100644 --- a/Octokit/Models/Response/DeploymentStatus.cs +++ b/Octokit/Models/Response/DeploymentStatus.cs @@ -11,7 +11,7 @@ public class DeploymentStatus { public DeploymentStatus() { } - public DeploymentStatus(int id, string url, DeploymentState state, User creator, IReadOnlyDictionary payload, string targetUrl, string logUrl, string environmentUrl, DateTimeOffset createdAt, DateTimeOffset updatedAt, string description) + public DeploymentStatus(int id, string url, DeploymentState state, User creator, IReadOnlyDictionary payload, string targetUrl, string logUrl, string environmentUrl, DateTimeOffset createdAt, DateTimeOffset updatedAt, string description, string nodeId) { Id = id; Url = url; @@ -24,6 +24,7 @@ public DeploymentStatus(int id, string url, DeploymentState state, User creator, CreatedAt = createdAt; UpdatedAt = updatedAt; Description = description; + NodeId = nodeId; } /// @@ -85,6 +86,11 @@ public DeploymentStatus(int id, string url, DeploymentState state, User creator, /// public string Description { get; protected set; } + /// + /// GraphQL Node Id + /// + public string NodeId { get; protected set; } + internal string DebuggerDisplay { get