{"action":"created","comment":{"url":"https://api.github.com/repos/JagCesar/Podcast-finder/pulls/comments/76964453","id":76964453,"diff_hunk":"@@ -0,0 +1,116 @@\n+//\n+//  MessagesViewController.swift\n+//  MessagesExtension\n+//\n+//  Created by Cesar Pinto Castillo on 2016-08-31.\n+//  Copyright © 2016 JagCesar. All rights reserved.\n+//\n+\n+import UIKit\n+import Messages\n+\n+class MessagesViewController: MSMessagesAppViewController {\n+\n+    @IBOutlet var collectionView: UICollectionView! {\n+        didSet {\n+            collectionView.dataSource = collectionViewDataSource\n+            collectionView.delegate = collectionViewDelegate\n+        }\n+    }\n+    private let collectionViewDataSource: CollectionViewDataSource = CollectionViewDataSource()\n+    private let collectionViewDelegate: CollectionViewDelegate = CollectionViewDelegate()\n+\n+    override func viewDidLoad() {\n+        super.viewDidLoad()\n+        // Do any additional setup after loading the view.\n+    }\n+\n+    override func viewDidAppear(_ animated: Bool) {\n+        super.viewDidAppear(animated)\n+\n+        ItunesSearch.searchPodcast(term: \"accidental\") { [weak self] (results, error) in\n+            self?.collectionViewDataSource.items = results ?? []\n+            self?.collectionView.reloadData()\n+        }\n+    }\n+\n+    override func didReceiveMemoryWarning() {\n+        super.didReceiveMemoryWarning()\n+        // Dispose of any resources that can be recreated.\n+    }\n+\n+    // MARK: - Conversation Handling\n+\n+    override func willBecomeActive(with conversation: MSConversation) {\n+        // Called when the extension is about to move from the inactive to active state.\n+        // This will happen when the extension is about to present UI.\n+\n+        // Use this method to configure the extension and restore previously stored state.\n+    }\n+\n+    override func didResignActive(with conversation: MSConversation) {\n+        // Called when the extension is about to move from the active to inactive state.\n+        // This will happen when the user dissmises the extension, changes to a different\n+        // conversation or quits Messages.\n+\n+        // Use this method to release shared resources, save user data, invalidate timers,\n+        // and store enough state information to restore your extension to its current state\n+        // in case it is terminated later.\n+    }\n+\n+    override func didReceive(_ message: MSMessage, conversation: MSConversation) {\n+        // Called when a message arrives that was generated by another instance of this\n+        // extension on a remote device.\n+\n+        // Use this method to trigger UI updates in response to the message.\n+    }\n+\n+    override func didStartSending(_ message: MSMessage, conversation: MSConversation) {\n+        // Called when the user taps the send button.\n+    }\n+\n+    override func didCancelSending(_ message: MSMessage, conversation: MSConversation) {\n+        // Called when the user deletes the message without sending it.\n+\n+        // Use this to clean up state related to the deleted message.\n+    }\n+\n+    override func willTransition(to presentationStyle: MSMessagesAppPresentationStyle) {\n+        // Called before the extension transitions to a new presentation style.\n+\n+        // Use this method to prepare for the change in presentation style.\n+    }\n+\n+    override func didTransition(to presentationStyle: MSMessagesAppPresentationStyle) {\n+        // Called after the extension transitions to a new presentation style.\n+\n+        // Use this method to finalize any behaviors associated with the change in presentation style.\n+        switch presentationStyle {\n+        case .expanded:\n+            false\n+        case .compact:\n+            fallthrough\n+        default:\n+            false\n+        }\n+    }\n+}\n+\n+class CollectionViewDataSource: NSObject, UICollectionViewDataSource {\n+    var items: [PodcastSearchResult] = []\n+    func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {\n+        return items.count\n+    }\n+\n+    func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {","path":"MessagesExtension/MessagesViewController.swift","position":105,"original_position":105,"commit_id":"66c32bec1dd0365a926037d6be0715aaa40d992a","original_commit_id":"66c32bec1dd0365a926037d6be0715aaa40d992a","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Line Length Violation: Line should be 100 characters or less: currently 121 characters (line_length)","created_at":"2016-08-31T10:38:35Z","updated_at":"2016-08-31T10:38:35Z","html_url":"https://github.com/JagCesar/Podcast-finder/pull/1#discussion_r76964453","pull_request_url":"https://api.github.com/repos/JagCesar/Podcast-finder/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/JagCesar/Podcast-finder/pulls/comments/76964453"},"html":{"href":"https://github.com/JagCesar/Podcast-finder/pull/1#discussion_r76964453"},"pull_request":{"href":"https://api.github.com/repos/JagCesar/Podcast-finder/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/JagCesar/Podcast-finder/pulls/1","id":83406700,"html_url":"https://github.com/JagCesar/Podcast-finder/pull/1","diff_url":"https://github.com/JagCesar/Podcast-finder/pull/1.diff","patch_url":"https://github.com/JagCesar/Podcast-finder/pull/1.patch","issue_url":"https://api.github.com/repos/JagCesar/Podcast-finder/issues/1","number":1,"state":"open","locked":false,"title":"First","user":{"login":"JagCesar","id":923548,"avatar_url":"https://avatars.githubusercontent.com/u/923548?v=3","gravatar_id":"","url":"https://api.github.com/users/JagCesar","html_url":"https://github.com/JagCesar","followers_url":"https://api.github.com/users/JagCesar/followers","following_url":"https://api.github.com/users/JagCesar/following{/other_user}","gists_url":"https://api.github.com/users/JagCesar/gists{/gist_id}","starred_url":"https://api.github.com/users/JagCesar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JagCesar/subscriptions","organizations_url":"https://api.github.com/users/JagCesar/orgs","repos_url":"https://api.github.com/users/JagCesar/repos","events_url":"https://api.github.com/users/JagCesar/events{/privacy}","received_events_url":"https://api.github.com/users/JagCesar/received_events","type":"User","site_admin":false},"body":"Will keep this PR open until we have a version that's working.\r\n\r\nPurpose of this is to see how hound-ci manages commits to already existing pull requests.","created_at":"2016-08-31T08:12:46Z","updated_at":"2016-08-31T10:38:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"33b786cd912d9c9eb0411a66ac5ac0afe2cab5bc","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/JagCesar/Podcast-finder/pulls/1/commits","review_comments_url":"https://api.github.com/repos/JagCesar/Podcast-finder/pulls/1/comments","review_comment_url":"https://api.github.com/repos/JagCesar/Podcast-finder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JagCesar/Podcast-finder/issues/1/comments","statuses_url":"https://api.github.com/repos/JagCesar/Podcast-finder/statuses/66c32bec1dd0365a926037d6be0715aaa40d992a","head":{"label":"JagCesar:develop","ref":"develop","sha":"66c32bec1dd0365a926037d6be0715aaa40d992a","user":{"login":"JagCesar","id":923548,"avatar_url":"https://avatars.githubusercontent.com/u/923548?v=3","gravatar_id":"","url":"https://api.github.com/users/JagCesar","html_url":"https://github.com/JagCesar","followers_url":"https://api.github.com/users/JagCesar/followers","following_url":"https://api.github.com/users/JagCesar/following{/other_user}","gists_url":"https://api.github.com/users/JagCesar/gists{/gist_id}","starred_url":"https://api.github.com/users/JagCesar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JagCesar/subscriptions","organizations_url":"https://api.github.com/users/JagCesar/orgs","repos_url":"https://api.github.com/users/JagCesar/repos","events_url":"https://api.github.com/users/JagCesar/events{/privacy}","received_events_url":"https://api.github.com/users/JagCesar/received_events","type":"User","site_admin":false},"repo":{"id":67016719,"name":"Podcast-finder","full_name":"JagCesar/Podcast-finder","owner":{"login":"JagCesar","id":923548,"avatar_url":"https://avatars.githubusercontent.com/u/923548?v=3","gravatar_id":"","url":"https://api.github.com/users/JagCesar","html_url":"https://github.com/JagCesar","followers_url":"https://api.github.com/users/JagCesar/followers","following_url":"https://api.github.com/users/JagCesar/following{/other_user}","gists_url":"https://api.github.com/users/JagCesar/gists{/gist_id}","starred_url":"https://api.github.com/users/JagCesar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JagCesar/subscriptions","organizations_url":"https://api.github.com/users/JagCesar/orgs","repos_url":"https://api.github.com/users/JagCesar/repos","events_url":"https://api.github.com/users/JagCesar/events{/privacy}","received_events_url":"https://api.github.com/users/JagCesar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JagCesar/Podcast-finder","description":"An iMessage extension that's used to share great Podcasts","fork":false,"url":"https://api.github.com/repos/JagCesar/Podcast-finder","forks_url":"https://api.github.com/repos/JagCesar/Podcast-finder/forks","keys_url":"https://api.github.com/repos/JagCesar/Podcast-finder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JagCesar/Podcast-finder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JagCesar/Podcast-finder/teams","hooks_url":"https://api.github.com/repos/JagCesar/Podcast-finder/hooks","issue_events_url":"https://api.github.com/repos/JagCesar/Podcast-finder/issues/events{/number}","events_url":"https://api.github.com/repos/JagCesar/Podcast-finder/events","assignees_url":"https://api.github.com/repos/JagCesar/Podcast-finder/assignees{/user}","branches_url":"https://api.github.com/repos/JagCesar/Podcast-finder/branches{/branch}","tags_url":"https://api.github.com/repos/JagCesar/Podcast-finder/tags","blobs_url":"https://api.github.com/repos/JagCesar/Podcast-finder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JagCesar/Podcast-finder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JagCesar/Podcast-finder/git/refs{/sha}","trees_url":"https://api.github.com/repos/JagCesar/Podcast-finder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JagCesar/Podcast-finder/statuses/{sha}","languages_url":"https://api.github.com/repos/JagCesar/Podcast-finder/languages","stargazers_url":"https://api.github.com/repos/JagCesar/Podcast-finder/stargazers","contributors_url":"https://api.github.com/repos/JagCesar/Podcast-finder/contributors","subscribers_url":"https://api.github.com/repos/JagCesar/Podcast-finder/subscribers","subscription_url":"https://api.github.com/repos/JagCesar/Podcast-finder/subscription","commits_url":"https://api.github.com/repos/JagCesar/Podcast-finder/commits{/sha}","git_commits_url":"https://api.github.com/repos/JagCesar/Podcast-finder/git/commits{/sha}","comments_url":"https://api.github.com/repos/JagCesar/Podcast-finder/comments{/number}","issue_comment_url":"https://api.github.com/repos/JagCesar/Podcast-finder/issues/comments{/number}","contents_url":"https://api.github.com/repos/JagCesar/Podcast-finder/contents/{+path}","compare_url":"https://api.github.com/repos/JagCesar/Podcast-finder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JagCesar/Podcast-finder/merges","archive_url":"https://api.github.com/repos/JagCesar/Podcast-finder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JagCesar/Podcast-finder/downloads","issues_url":"https://api.github.com/repos/JagCesar/Podcast-finder/issues{/number}","pulls_url":"https://api.github.com/repos/JagCesar/Podcast-finder/pulls{/number}","milestones_url":"https://api.github.com/repos/JagCesar/Podcast-finder/milestones{/number}","notifications_url":"https://api.github.com/repos/JagCesar/Podcast-finder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JagCesar/Podcast-finder/labels{/name}","releases_url":"https://api.github.com/repos/JagCesar/Podcast-finder/releases{/id}","deployments_url":"https://api.github.com/repos/JagCesar/Podcast-finder/deployments","created_at":"2016-08-31T08:01:25Z","updated_at":"2016-08-31T08:11:08Z","pushed_at":"2016-08-31T10:38:27Z","git_url":"git://github.com/JagCesar/Podcast-finder.git","ssh_url":"git@github.com:JagCesar/Podcast-finder.git","clone_url":"https://github.com/JagCesar/Podcast-finder.git","svn_url":"https://github.com/JagCesar/Podcast-finder","homepage":null,"size":11,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"JagCesar:master","ref":"master","sha":"c6af7a7d23552a383334d8e77d5a8e8e33041af9","user":{"login":"JagCesar","id":923548,"avatar_url":"https://avatars.githubusercontent.com/u/923548?v=3","gravatar_id":"","url":"https://api.github.com/users/JagCesar","html_url":"https://github.com/JagCesar","followers_url":"https://api.github.com/users/JagCesar/followers","following_url":"https://api.github.com/users/JagCesar/following{/other_user}","gists_url":"https://api.github.com/users/JagCesar/gists{/gist_id}","starred_url":"https://api.github.com/users/JagCesar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JagCesar/subscriptions","organizations_url":"https://api.github.com/users/JagCesar/orgs","repos_url":"https://api.github.com/users/JagCesar/repos","events_url":"https://api.github.com/users/JagCesar/events{/privacy}","received_events_url":"https://api.github.com/users/JagCesar/received_events","type":"User","site_admin":false},"repo":{"id":67016719,"name":"Podcast-finder","full_name":"JagCesar/Podcast-finder","owner":{"login":"JagCesar","id":923548,"avatar_url":"https://avatars.githubusercontent.com/u/923548?v=3","gravatar_id":"","url":"https://api.github.com/users/JagCesar","html_url":"https://github.com/JagCesar","followers_url":"https://api.github.com/users/JagCesar/followers","following_url":"https://api.github.com/users/JagCesar/following{/other_user}","gists_url":"https://api.github.com/users/JagCesar/gists{/gist_id}","starred_url":"https://api.github.com/users/JagCesar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JagCesar/subscriptions","organizations_url":"https://api.github.com/users/JagCesar/orgs","repos_url":"https://api.github.com/users/JagCesar/repos","events_url":"https://api.github.com/users/JagCesar/events{/privacy}","received_events_url":"https://api.github.com/users/JagCesar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JagCesar/Podcast-finder","description":"An iMessage extension that's used to share great Podcasts","fork":false,"url":"https://api.github.com/repos/JagCesar/Podcast-finder","forks_url":"https://api.github.com/repos/JagCesar/Podcast-finder/forks","keys_url":"https://api.github.com/repos/JagCesar/Podcast-finder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JagCesar/Podcast-finder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JagCesar/Podcast-finder/teams","hooks_url":"https://api.github.com/repos/JagCesar/Podcast-finder/hooks","issue_events_url":"https://api.github.com/repos/JagCesar/Podcast-finder/issues/events{/number}","events_url":"https://api.github.com/repos/JagCesar/Podcast-finder/events","assignees_url":"https://api.github.com/repos/JagCesar/Podcast-finder/assignees{/user}","branches_url":"https://api.github.com/repos/JagCesar/Podcast-finder/branches{/branch}","tags_url":"https://api.github.com/repos/JagCesar/Podcast-finder/tags","blobs_url":"https://api.github.com/repos/JagCesar/Podcast-finder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JagCesar/Podcast-finder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JagCesar/Podcast-finder/git/refs{/sha}","trees_url":"https://api.github.com/repos/JagCesar/Podcast-finder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JagCesar/Podcast-finder/statuses/{sha}","languages_url":"https://api.github.com/repos/JagCesar/Podcast-finder/languages","stargazers_url":"https://api.github.com/repos/JagCesar/Podcast-finder/stargazers","contributors_url":"https://api.github.com/repos/JagCesar/Podcast-finder/contributors","subscribers_url":"https://api.github.com/repos/JagCesar/Podcast-finder/subscribers","subscription_url":"https://api.github.com/repos/JagCesar/Podcast-finder/subscription","commits_url":"https://api.github.com/repos/JagCesar/Podcast-finder/commits{/sha}","git_commits_url":"https://api.github.com/repos/JagCesar/Podcast-finder/git/commits{/sha}","comments_url":"https://api.github.com/repos/JagCesar/Podcast-finder/comments{/number}","issue_comment_url":"https://api.github.com/repos/JagCesar/Podcast-finder/issues/comments{/number}","contents_url":"https://api.github.com/repos/JagCesar/Podcast-finder/contents/{+path}","compare_url":"https://api.github.com/repos/JagCesar/Podcast-finder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JagCesar/Podcast-finder/merges","archive_url":"https://api.github.com/repos/JagCesar/Podcast-finder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JagCesar/Podcast-finder/downloads","issues_url":"https://api.github.com/repos/JagCesar/Podcast-finder/issues{/number}","pulls_url":"https://api.github.com/repos/JagCesar/Podcast-finder/pulls{/number}","milestones_url":"https://api.github.com/repos/JagCesar/Podcast-finder/milestones{/number}","notifications_url":"https://api.github.com/repos/JagCesar/Podcast-finder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JagCesar/Podcast-finder/labels{/name}","releases_url":"https://api.github.com/repos/JagCesar/Podcast-finder/releases{/id}","deployments_url":"https://api.github.com/repos/JagCesar/Podcast-finder/deployments","created_at":"2016-08-31T08:01:25Z","updated_at":"2016-08-31T08:11:08Z","pushed_at":"2016-08-31T10:38:27Z","git_url":"git://github.com/JagCesar/Podcast-finder.git","ssh_url":"git@github.com:JagCesar/Podcast-finder.git","clone_url":"https://github.com/JagCesar/Podcast-finder.git","svn_url":"https://github.com/JagCesar/Podcast-finder","homepage":null,"size":11,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JagCesar/Podcast-finder/pulls/1"},"html":{"href":"https://github.com/JagCesar/Podcast-finder/pull/1"},"issue":{"href":"https://api.github.com/repos/JagCesar/Podcast-finder/issues/1"},"comments":{"href":"https://api.github.com/repos/JagCesar/Podcast-finder/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/JagCesar/Podcast-finder/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/JagCesar/Podcast-finder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JagCesar/Podcast-finder/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/JagCesar/Podcast-finder/statuses/66c32bec1dd0365a926037d6be0715aaa40d992a"}}}}
{"actor":{"display_login":"houndci-bot"}}