From af5459602c72cd7328d86f9c8e4e515bc767706a Mon Sep 17 00:00:00 2001 From: Naveen Date: Wed, 9 Sep 2015 12:05:18 -0400 Subject: [PATCH] Fixes for the comments URL not surfaced in the issue This fix surfaces the comments URL in the Issue object. --- Octokit.Tests/Clients/IssuesClientTests.cs | 1 + Octokit/Models/Response/Issue.cs | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Octokit.Tests/Clients/IssuesClientTests.cs b/Octokit.Tests/Clients/IssuesClientTests.cs index c8b6c798..9a6e5e3d 100644 --- a/Octokit.Tests/Clients/IssuesClientTests.cs +++ b/Octokit.Tests/Clients/IssuesClientTests.cs @@ -237,6 +237,7 @@ namespace Octokit.Tests.Clients Assert.Equal(new Uri("https://api.github.com/repos/octokit-net-test/public-repo-20131022050247078/issues/1"), response.Body.Url); Assert.Equal(new Uri("https://github.com/octokit-net-test/public-repo-20131022050247078/issues/1"), response.Body.HtmlUrl); + Assert.Equal(new Uri("https://api.github.com/repos/octokit-net-test/public-repo-20131022050247078/issues/1/comments"), response.Body.CommentsUrl); } } } diff --git a/Octokit/Models/Response/Issue.cs b/Octokit/Models/Response/Issue.cs index cfac7a35..0af3b3ff 100644 --- a/Octokit/Models/Response/Issue.cs +++ b/Octokit/Models/Response/Issue.cs @@ -12,10 +12,11 @@ namespace Octokit { public Issue() { } - public Issue(Uri url, Uri htmlUrl, int number, ItemState state, string title, string body, User user, IReadOnlyList