From 4c844de30116e6325052bf8cc19d88c52c1a6f97 Mon Sep 17 00:00:00 2001 From: Romain Pouclet Date: Mon, 1 Aug 2016 11:49:05 -0400 Subject: [PATCH] Use issue number instead of issue object --- Tentacle/Client.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tentacle/Client.swift b/Tentacle/Client.swift index 7fce043..038643e 100644 --- a/Tentacle/Client.swift +++ b/Tentacle/Client.swift @@ -311,9 +311,9 @@ public final class Client { } /// Fetch the comments posted on an issue - public func commentsOnIssue(issue: Issue, repository: Repository, page: UInt = 1, perPage: UInt = 30) -> SignalProducer<(Response, [Comment]), Error> { + public func commentsOnIssue(issue: Int, repository: Repository, page: UInt = 1, perPage: UInt = 30) -> SignalProducer<(Response, [Comment]), Error> { precondition(repository.server == server) - return fetchMany(.CommentsOnIssue(number: issue.number, owner: repository.owner, repository: repository.name), page: page, pageSize: perPage) + return fetchMany(.CommentsOnIssue(number: issue, owner: repository.owner, repository: repository.name), page: page, pageSize: perPage) } /// Fetch an endpoint from the API.