From 26a264039800bdfacab010543decaf0274c96225 Mon Sep 17 00:00:00 2001 From: Nikita Potapenko Date: Thu, 21 Feb 2019 17:12:56 +0200 Subject: [PATCH] Add Id field to Label model --- Octokit/Models/Response/Label.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Octokit/Models/Response/Label.cs b/Octokit/Models/Response/Label.cs index 095bd2a23b..af23eda7e0 100644 --- a/Octokit/Models/Response/Label.cs +++ b/Octokit/Models/Response/Label.cs @@ -8,8 +8,9 @@ public class Label { public Label() { } - public Label(string url, string name, string nodeId, string color, string description, bool @default) + public Label(long id, string url, string name, string nodeId, string color, string description, bool @default) { + Id = id; Url = url; Name = name; NodeId = nodeId; @@ -18,6 +19,11 @@ public Label(string url, string name, string nodeId, string color, string descri Default = @default; } + /// + /// Id of the label + /// + public long Id { get; protected set; } + /// /// Url of the label ///