{"action":"created","comment":{"url":"https://api.github.com/repos/macoscope/GrandCentralBoard/pulls/comments/66248494","id":66248494,"diff_hunk":"@@ -0,0 +1,113 @@\n+//\n+//  WeatherForecastView.swift\n+//  GrandCentralBoard\n+//\n+//  Created by Joel Fischer on 4/26/16.\n+//  Copyright © 2016 Oktawian Chojnacki. All rights reserved.\n+//\n+\n+import UIKit\n+import GCBCore\n+import CZWeatherKit\n+\n+struct WeatherForecastViewModel {\n+    let date: String\n+    let highTemperature: Int\n+    let lowTemperature: Int\n+    let icon: Climacon\n+\n+    init(model: WeatherForecastModel) {\n+        // HAX: There's a bug here where the api will return the previous day as the date, at 11:58 p.m., we need to work around it","path":"GrandCentralBoard/Widgets/Weather/View/WeatherForecastView.swift","position":20,"original_position":20,"commit_id":"292eb654ee25c8719212797d502728931fa0ebae","original_commit_id":"292eb654ee25c8719212797d502728931fa0ebae","user":{"login":"joeljfischer","id":1767063,"avatar_url":"https://avatars.githubusercontent.com/u/1767063?v=3","gravatar_id":"","url":"https://api.github.com/users/joeljfischer","html_url":"https://github.com/joeljfischer","followers_url":"https://api.github.com/users/joeljfischer/followers","following_url":"https://api.github.com/users/joeljfischer/following{/other_user}","gists_url":"https://api.github.com/users/joeljfischer/gists{/gist_id}","starred_url":"https://api.github.com/users/joeljfischer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeljfischer/subscriptions","organizations_url":"https://api.github.com/users/joeljfischer/orgs","repos_url":"https://api.github.com/users/joeljfischer/repos","events_url":"https://api.github.com/users/joeljfischer/events{/privacy}","received_events_url":"https://api.github.com/users/joeljfischer/received_events","type":"User","site_admin":false},"body":"Unfortunately, no. If I move it to a method and try to call it to set up the date properly in the init, it will be calling self before the parameter is initialized, which will throw an error.","created_at":"2016-06-08T12:50:17Z","updated_at":"2016-06-08T12:50:17Z","html_url":"https://github.com/macoscope/GrandCentralBoard/pull/179#discussion_r66248494","pull_request_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/pulls/179","_links":{"self":{"href":"https://api.github.com/repos/macoscope/GrandCentralBoard/pulls/comments/66248494"},"html":{"href":"https://github.com/macoscope/GrandCentralBoard/pull/179#discussion_r66248494"},"pull_request":{"href":"https://api.github.com/repos/macoscope/GrandCentralBoard/pulls/179"}}},"pull_request":{"url":"https://api.github.com/repos/macoscope/GrandCentralBoard/pulls/179","id":72751091,"html_url":"https://github.com/macoscope/GrandCentralBoard/pull/179","diff_url":"https://github.com/macoscope/GrandCentralBoard/pull/179.diff","patch_url":"https://github.com/macoscope/GrandCentralBoard/pull/179.patch","issue_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/issues/179","number":179,"state":"open","locked":false,"title":"Weather Widget","user":{"login":"joeljfischer","id":1767063,"avatar_url":"https://avatars.githubusercontent.com/u/1767063?v=3","gravatar_id":"","url":"https://api.github.com/users/joeljfischer","html_url":"https://github.com/joeljfischer","followers_url":"https://api.github.com/users/joeljfischer/followers","following_url":"https://api.github.com/users/joeljfischer/following{/other_user}","gists_url":"https://api.github.com/users/joeljfischer/gists{/gist_id}","starred_url":"https://api.github.com/users/joeljfischer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeljfischer/subscriptions","organizations_url":"https://api.github.com/users/joeljfischer/orgs","repos_url":"https://api.github.com/users/joeljfischer/repos","events_url":"https://api.github.com/users/joeljfischer/events{/privacy}","received_events_url":"https://api.github.com/users/joeljfischer/received_events","type":"User","site_admin":false},"body":"Make sure these boxes are checked before submitting your Pull Request - thank you!\r\n\r\n- [x] [SwiftLint](https://github.com/Realm/SwiftLint) is installed on your system\r\n- [x] The project does not generate any warnings or errors\r\n- [x] The tests are passing\r\n- [x] Branch name is in line with [GitFlow](http://jeffkreeftmeijer.com/2010/why-arent-you-using-git-flow/)\r\n\r\nResolves #97\r\n\r\nThis PR is for a pretty basic weather widget showing the current temperature and a weather icon, the the next three days' high/low temp and a weather icon, and the current wind conditions.\r\n","created_at":"2016-06-06T17:59:30Z","updated_at":"2016-06-08T12:50:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9d389382613c1525780bfbd5079a64c06acc53fb","assignee":{"login":"ochococo","id":3382607,"avatar_url":"https://avatars.githubusercontent.com/u/3382607?v=3","gravatar_id":"","url":"https://api.github.com/users/ochococo","html_url":"https://github.com/ochococo","followers_url":"https://api.github.com/users/ochococo/followers","following_url":"https://api.github.com/users/ochococo/following{/other_user}","gists_url":"https://api.github.com/users/ochococo/gists{/gist_id}","starred_url":"https://api.github.com/users/ochococo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ochococo/subscriptions","organizations_url":"https://api.github.com/users/ochococo/orgs","repos_url":"https://api.github.com/users/ochococo/repos","events_url":"https://api.github.com/users/ochococo/events{/privacy}","received_events_url":"https://api.github.com/users/ochococo/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/pulls/179/commits","review_comments_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/pulls/179/comments","review_comment_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/issues/179/comments","statuses_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/statuses/292eb654ee25c8719212797d502728931fa0ebae","head":{"label":"joeljfischer:feature/weather","ref":"feature/weather","sha":"292eb654ee25c8719212797d502728931fa0ebae","user":{"login":"joeljfischer","id":1767063,"avatar_url":"https://avatars.githubusercontent.com/u/1767063?v=3","gravatar_id":"","url":"https://api.github.com/users/joeljfischer","html_url":"https://github.com/joeljfischer","followers_url":"https://api.github.com/users/joeljfischer/followers","following_url":"https://api.github.com/users/joeljfischer/following{/other_user}","gists_url":"https://api.github.com/users/joeljfischer/gists{/gist_id}","starred_url":"https://api.github.com/users/joeljfischer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeljfischer/subscriptions","organizations_url":"https://api.github.com/users/joeljfischer/orgs","repos_url":"https://api.github.com/users/joeljfischer/repos","events_url":"https://api.github.com/users/joeljfischer/events{/privacy}","received_events_url":"https://api.github.com/users/joeljfischer/received_events","type":"User","site_admin":false},"repo":{"id":60097313,"name":"GrandCentralBoard","full_name":"joeljfischer/GrandCentralBoard","owner":{"login":"joeljfischer","id":1767063,"avatar_url":"https://avatars.githubusercontent.com/u/1767063?v=3","gravatar_id":"","url":"https://api.github.com/users/joeljfischer","html_url":"https://github.com/joeljfischer","followers_url":"https://api.github.com/users/joeljfischer/followers","following_url":"https://api.github.com/users/joeljfischer/following{/other_user}","gists_url":"https://api.github.com/users/joeljfischer/gists{/gist_id}","starred_url":"https://api.github.com/users/joeljfischer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeljfischer/subscriptions","organizations_url":"https://api.github.com/users/joeljfischer/orgs","repos_url":"https://api.github.com/users/joeljfischer/repos","events_url":"https://api.github.com/users/joeljfischer/events{/privacy}","received_events_url":"https://api.github.com/users/joeljfischer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joeljfischer/GrandCentralBoard","description":"Hang a TV in your open space or team room to show everyone what's up and get them up to speed.","fork":true,"url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard","forks_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/forks","keys_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/teams","hooks_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/hooks","issue_events_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/issues/events{/number}","events_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/events","assignees_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/assignees{/user}","branches_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/branches{/branch}","tags_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/tags","blobs_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/git/refs{/sha}","trees_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/statuses/{sha}","languages_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/languages","stargazers_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/stargazers","contributors_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/contributors","subscribers_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/subscribers","subscription_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/subscription","commits_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/commits{/sha}","git_commits_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/git/commits{/sha}","comments_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/comments{/number}","issue_comment_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/issues/comments{/number}","contents_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/contents/{+path}","compare_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/merges","archive_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/downloads","issues_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/issues{/number}","pulls_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/pulls{/number}","milestones_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/milestones{/number}","notifications_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/labels{/name}","releases_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/releases{/id}","deployments_url":"https://api.github.com/repos/joeljfischer/GrandCentralBoard/deployments","created_at":"2016-05-31T14:37:09Z","updated_at":"2016-05-31T14:37:11Z","pushed_at":"2016-06-07T14:01:54Z","git_url":"git://github.com/joeljfischer/GrandCentralBoard.git","ssh_url":"git@github.com:joeljfischer/GrandCentralBoard.git","clone_url":"https://github.com/joeljfischer/GrandCentralBoard.git","svn_url":"https://github.com/joeljfischer/GrandCentralBoard","homepage":"http://macoscope.com/blog/grand-central-board-for-the-apple-tv/","size":12997,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"macoscope:develop","ref":"develop","sha":"64a61fff3cd15eb6126820728a43cd69486a3d98","user":{"login":"macoscope","id":759101,"avatar_url":"https://avatars.githubusercontent.com/u/759101?v=3","gravatar_id":"","url":"https://api.github.com/users/macoscope","html_url":"https://github.com/macoscope","followers_url":"https://api.github.com/users/macoscope/followers","following_url":"https://api.github.com/users/macoscope/following{/other_user}","gists_url":"https://api.github.com/users/macoscope/gists{/gist_id}","starred_url":"https://api.github.com/users/macoscope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macoscope/subscriptions","organizations_url":"https://api.github.com/users/macoscope/orgs","repos_url":"https://api.github.com/users/macoscope/repos","events_url":"https://api.github.com/users/macoscope/events{/privacy}","received_events_url":"https://api.github.com/users/macoscope/received_events","type":"Organization","site_admin":false},"repo":{"id":49216533,"name":"GrandCentralBoard","full_name":"macoscope/GrandCentralBoard","owner":{"login":"macoscope","id":759101,"avatar_url":"https://avatars.githubusercontent.com/u/759101?v=3","gravatar_id":"","url":"https://api.github.com/users/macoscope","html_url":"https://github.com/macoscope","followers_url":"https://api.github.com/users/macoscope/followers","following_url":"https://api.github.com/users/macoscope/following{/other_user}","gists_url":"https://api.github.com/users/macoscope/gists{/gist_id}","starred_url":"https://api.github.com/users/macoscope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macoscope/subscriptions","organizations_url":"https://api.github.com/users/macoscope/orgs","repos_url":"https://api.github.com/users/macoscope/repos","events_url":"https://api.github.com/users/macoscope/events{/privacy}","received_events_url":"https://api.github.com/users/macoscope/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/macoscope/GrandCentralBoard","description":"Hang a TV in your open space or team room to show everyone what's up and get them up to speed.","fork":false,"url":"https://api.github.com/repos/macoscope/GrandCentralBoard","forks_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/forks","keys_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/teams","hooks_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/hooks","issue_events_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/issues/events{/number}","events_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/events","assignees_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/assignees{/user}","branches_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/branches{/branch}","tags_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/tags","blobs_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/git/refs{/sha}","trees_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/statuses/{sha}","languages_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/languages","stargazers_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/stargazers","contributors_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/contributors","subscribers_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/subscribers","subscription_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/subscription","commits_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/commits{/sha}","git_commits_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/git/commits{/sha}","comments_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/comments{/number}","issue_comment_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/issues/comments{/number}","contents_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/contents/{+path}","compare_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/merges","archive_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/downloads","issues_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/issues{/number}","pulls_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/pulls{/number}","milestones_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/milestones{/number}","notifications_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/labels{/name}","releases_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/releases{/id}","deployments_url":"https://api.github.com/repos/macoscope/GrandCentralBoard/deployments","created_at":"2016-01-07T16:35:08Z","updated_at":"2016-06-07T07:28:37Z","pushed_at":"2016-06-08T08:33:38Z","git_url":"git://github.com/macoscope/GrandCentralBoard.git","ssh_url":"git@github.com:macoscope/GrandCentralBoard.git","clone_url":"https://github.com/macoscope/GrandCentralBoard.git","svn_url":"https://github.com/macoscope/GrandCentralBoard","homepage":"http://macoscope.com/blog/grand-central-board-for-the-apple-tv/","size":12971,"stargazers_count":174,"watchers_count":174,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":16,"forks":11,"open_issues":16,"watchers":174,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/macoscope/GrandCentralBoard/pulls/179"},"html":{"href":"https://github.com/macoscope/GrandCentralBoard/pull/179"},"issue":{"href":"https://api.github.com/repos/macoscope/GrandCentralBoard/issues/179"},"comments":{"href":"https://api.github.com/repos/macoscope/GrandCentralBoard/issues/179/comments"},"review_comments":{"href":"https://api.github.com/repos/macoscope/GrandCentralBoard/pulls/179/comments"},"review_comment":{"href":"https://api.github.com/repos/macoscope/GrandCentralBoard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/macoscope/GrandCentralBoard/pulls/179/commits"},"statuses":{"href":"https://api.github.com/repos/macoscope/GrandCentralBoard/statuses/292eb654ee25c8719212797d502728931fa0ebae"}}}}
{"actor":{"display_login":"joeljfischer"}}