GitHub PullRequestReviewCommentEvent at 2014-02-17 16:35:18
Repository: octokit.objc
Actor: jspahrsummers
Payload: {"comment":{"url":"https://api.github.com/repos/octokit/octokit.objc/pulls/comments/9797157","id":9797157,"diff_hunk":"@@ -0,0 +1,52 @@\n+//\n+//  OCTClient+Activity.m\n+//  OctoKit\n+//\n+//  Created by Piet Brauer on 14.02.14.\n+//  Copyright (c) 2014 GitHub. All rights reserved.\n+//\n+\n+#import \"OCTClient+Activity.h\"\n+#import \"RACSignal.h\"\n+#import \"OCTRepository.h\"\n+#import <ReactiveCocoa/ReactiveCocoa.h>\n+\n+@implementation OCTClient (Activity)\n+\n+- (RACSignal *)hasUserStarredRepository:(OCTRepository *)repository {\n+\tNSParameterAssert(repository != nil);\n+\tif (!self.authenticated) return [RACSignal error:self.class.authenticationRequiredError];\n+\n+\tNSString *path = [NSString stringWithFormat:@\"/user/starred/%@/%@\", repository.ownerLogin, repository.name];\n+\tNSMutableURLRequest *request = [self requestWithMethod:@\"GET\" path:path parameters:nil];\n+\treturn [[[self enqueueRequest:request resultClass:nil] reduceEach:^id (NSHTTPURLResponse *response, id responseObject) {\n+\t\t\treturn @(response.statusCode == 204);\n+\t\t}] catch:^RACSignal *(NSError *error) {\n+\t\t\tNSNumber *statusCode = error.userInfo[OCTClientErrorHTTPStatusCodeKey];\n+\t\t\tif (statusCode.integerValue == 404) {\n+\t\t\t\treturn [RACSignal return:@NO];\n+\t\t\t} else {\n+\t\t\t\treturn [RACSignal error:error];\n+\t\t\t}\n+\t}];","path":"OctoKit/OCTClient+Activity.m","position":31,"original_position":31,"commit_id":"e6808c36f1cda3fd55386e58df5f98b20b4e2f2b","original_commit_id":"e6808c36f1cda3fd55386e58df5f98b20b4e2f2b","user":{"login":"jspahrsummers","id":432536,"avatar_url":"https://gravatar.com/avatar/cac992bb300ed4f3ed5c2a6049e552f9?d=https%3A%2F%2Fidenticons.github.com%2F109cfb1cc6c3edc0afdcf6a670eb0f33.png&r=x","gravatar_id":"cac992bb300ed4f3ed5c2a6049e552f9","url":"https://api.github.com/users/jspahrsummers","html_url":"https://github.com/jspahrsummers","followers_url":"https://api.github.com/users/jspahrsummers/followers","following_url":"https://api.github.com/users/jspahrsummers/following{/other_user}","gists_url":"https://api.github.com/users/jspahrsummers/gists{/gist_id}","starred_url":"https://api.github.com/users/jspahrsummers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jspahrsummers/subscriptions","organizations_url":"https://api.github.com/users/jspahrsummers/orgs","repos_url":"https://api.github.com/users/jspahrsummers/repos","events_url":"https://api.github.com/users/jspahrsummers/events{/privacy}","received_events_url":"https://api.github.com/users/jspahrsummers/received_events","type":"User","site_admin":true},"body":"Can you please restore the formatting of the code sample I provided? It was meant to follow the [RAC guidelines for indentation](https://github.com/ReactiveCocoa/ReactiveCocoa/blob/master/Documentation/DesignGuidelines.md#indent-stream-operations-consistently).","created_at":"2014-02-17T16:35:18Z","updated_at":"2014-02-17T16:35:18Z","html_url":"https://github.com/octokit/octokit.objc/pull/161#discussion_r9797157","pull_request_url":"https://api.github.com/repos/octokit/octokit.objc/pulls/161","_links":{"self":{"href":"https://api.github.com/repos/octokit/octokit.objc/pulls/comments/9797157"},"html":{"href":"https://github.com/octokit/octokit.objc/pull/161#discussion_r9797157"},"pull_request":{"href":"https://api.github.com/repos/octokit/octokit.objc/pulls/161"}}}}