{"action":"created","comment":{"url":"https://api.github.com/repos/producthunt/producthunt-osx/pulls/comments/62160103","id":62160103,"diff_hunk":"@@ -0,0 +1,28 @@\n+//\n+//  PHTokenOperation.swift\n+//  Product Hunt\n+//\n+//  Created by Vlado on 5/3/16.\n+//  Copyright © 2016 ProductHunt. All rights reserved.\n+//\n+\n+import Foundation\n+import ReSwift\n+\n+// TODO: Remove if not needed\n+class PHTokenOperation {\n+\n+    class func perform() {\n+        perform(store, api: PHAPI.sharedInstance)\n+    }\n+\n+    class func perform(store: Store<PHAppState>, api: PHAPI) {","path":"Source/PHTokenOperation.swift","position":19,"original_position":19,"commit_id":"857ac5049cb884ca551790774ad24870cf4a29c6","original_commit_id":"857ac5049cb884ca551790774ad24870cf4a29c6","user":{"login":"RStankov","id":9867,"avatar_url":"https://avatars.githubusercontent.com/u/9867?v=3","gravatar_id":"","url":"https://api.github.com/users/RStankov","html_url":"https://github.com/RStankov","followers_url":"https://api.github.com/users/RStankov/followers","following_url":"https://api.github.com/users/RStankov/following{/other_user}","gists_url":"https://api.github.com/users/RStankov/gists{/gist_id}","starred_url":"https://api.github.com/users/RStankov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RStankov/subscriptions","organizations_url":"https://api.github.com/users/RStankov/orgs","repos_url":"https://api.github.com/users/RStankov/repos","events_url":"https://api.github.com/users/RStankov/events{/privacy}","received_events_url":"https://api.github.com/users/RStankov/received_events","type":"User","site_admin":false},"body":"It is better to have this be `perform<T>(store: Store<T>, api: PHAPI)`.","created_at":"2016-05-05T08:25:37Z","updated_at":"2016-05-05T08:25:37Z","html_url":"https://github.com/producthunt/producthunt-osx/pull/3#discussion_r62160103","pull_request_url":"https://api.github.com/repos/producthunt/producthunt-osx/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/producthunt/producthunt-osx/pulls/comments/62160103"},"html":{"href":"https://github.com/producthunt/producthunt-osx/pull/3#discussion_r62160103"},"pull_request":{"href":"https://api.github.com/repos/producthunt/producthunt-osx/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/producthunt/producthunt-osx/pulls/3","id":68916829,"html_url":"https://github.com/producthunt/producthunt-osx/pull/3","diff_url":"https://github.com/producthunt/producthunt-osx/pull/3.diff","patch_url":"https://github.com/producthunt/producthunt-osx/pull/3.patch","issue_url":"https://api.github.com/repos/producthunt/producthunt-osx/issues/3","number":3,"state":"open","locked":false,"title":"Flux and ReSwift ","user":{"login":"devladinci","id":2778007,"avatar_url":"https://avatars.githubusercontent.com/u/2778007?v=3","gravatar_id":"","url":"https://api.github.com/users/devladinci","html_url":"https://github.com/devladinci","followers_url":"https://api.github.com/users/devladinci/followers","following_url":"https://api.github.com/users/devladinci/following{/other_user}","gists_url":"https://api.github.com/users/devladinci/gists{/gist_id}","starred_url":"https://api.github.com/users/devladinci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devladinci/subscriptions","organizations_url":"https://api.github.com/users/devladinci/orgs","repos_url":"https://api.github.com/users/devladinci/repos","events_url":"https://api.github.com/users/devladinci/events{/privacy}","received_events_url":"https://api.github.com/users/devladinci/received_events","type":"User","site_admin":false},"body":"## Scope 😻🚀\r\n\r\n- [x] Use ReSwift\r\n- [x] Migrate to new App State\r\n- [x] Remove `Notifier`, `PHUserDefaults` and etc.\r\n\r\n## Notes\r\n\r\n- More about [ReSwift](https://github.com/ReSwift/ReSwift)\r\n- More about [Redux](https://github.com/reactjs/redux)\r\n- More about [Flux](https://facebook.github.io/react/docs/flux-overview.html)","created_at":"2016-05-04T19:20:38Z","updated_at":"2016-05-05T08:25:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f29929919c3c02cdf8e7d5b4069b43b1f3bcfdde","assignee":{"login":"devladinci","id":2778007,"avatar_url":"https://avatars.githubusercontent.com/u/2778007?v=3","gravatar_id":"","url":"https://api.github.com/users/devladinci","html_url":"https://github.com/devladinci","followers_url":"https://api.github.com/users/devladinci/followers","following_url":"https://api.github.com/users/devladinci/following{/other_user}","gists_url":"https://api.github.com/users/devladinci/gists{/gist_id}","starred_url":"https://api.github.com/users/devladinci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devladinci/subscriptions","organizations_url":"https://api.github.com/users/devladinci/orgs","repos_url":"https://api.github.com/users/devladinci/repos","events_url":"https://api.github.com/users/devladinci/events{/privacy}","received_events_url":"https://api.github.com/users/devladinci/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/producthunt/producthunt-osx/pulls/3/commits","review_comments_url":"https://api.github.com/repos/producthunt/producthunt-osx/pulls/3/comments","review_comment_url":"https://api.github.com/repos/producthunt/producthunt-osx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/producthunt/producthunt-osx/issues/3/comments","statuses_url":"https://api.github.com/repos/producthunt/producthunt-osx/statuses/857ac5049cb884ca551790774ad24870cf4a29c6","head":{"label":"producthunt:reswift","ref":"reswift","sha":"857ac5049cb884ca551790774ad24870cf4a29c6","user":{"login":"producthunt","id":6935003,"avatar_url":"https://avatars.githubusercontent.com/u/6935003?v=3","gravatar_id":"","url":"https://api.github.com/users/producthunt","html_url":"https://github.com/producthunt","followers_url":"https://api.github.com/users/producthunt/followers","following_url":"https://api.github.com/users/producthunt/following{/other_user}","gists_url":"https://api.github.com/users/producthunt/gists{/gist_id}","starred_url":"https://api.github.com/users/producthunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/producthunt/subscriptions","organizations_url":"https://api.github.com/users/producthunt/orgs","repos_url":"https://api.github.com/users/producthunt/repos","events_url":"https://api.github.com/users/producthunt/events{/privacy}","received_events_url":"https://api.github.com/users/producthunt/received_events","type":"Organization","site_admin":false},"repo":{"id":56770103,"name":"producthunt-osx","full_name":"producthunt/producthunt-osx","owner":{"login":"producthunt","id":6935003,"avatar_url":"https://avatars.githubusercontent.com/u/6935003?v=3","gravatar_id":"","url":"https://api.github.com/users/producthunt","html_url":"https://github.com/producthunt","followers_url":"https://api.github.com/users/producthunt/followers","following_url":"https://api.github.com/users/producthunt/following{/other_user}","gists_url":"https://api.github.com/users/producthunt/gists{/gist_id}","starred_url":"https://api.github.com/users/producthunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/producthunt/subscriptions","organizations_url":"https://api.github.com/users/producthunt/orgs","repos_url":"https://api.github.com/users/producthunt/repos","events_url":"https://api.github.com/users/producthunt/events{/privacy}","received_events_url":"https://api.github.com/users/producthunt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/producthunt/producthunt-osx","description":"The best new products, every day on Mac.","fork":false,"url":"https://api.github.com/repos/producthunt/producthunt-osx","forks_url":"https://api.github.com/repos/producthunt/producthunt-osx/forks","keys_url":"https://api.github.com/repos/producthunt/producthunt-osx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/producthunt/producthunt-osx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/producthunt/producthunt-osx/teams","hooks_url":"https://api.github.com/repos/producthunt/producthunt-osx/hooks","issue_events_url":"https://api.github.com/repos/producthunt/producthunt-osx/issues/events{/number}","events_url":"https://api.github.com/repos/producthunt/producthunt-osx/events","assignees_url":"https://api.github.com/repos/producthunt/producthunt-osx/assignees{/user}","branches_url":"https://api.github.com/repos/producthunt/producthunt-osx/branches{/branch}","tags_url":"https://api.github.com/repos/producthunt/producthunt-osx/tags","blobs_url":"https://api.github.com/repos/producthunt/producthunt-osx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/producthunt/producthunt-osx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/producthunt/producthunt-osx/git/refs{/sha}","trees_url":"https://api.github.com/repos/producthunt/producthunt-osx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/producthunt/producthunt-osx/statuses/{sha}","languages_url":"https://api.github.com/repos/producthunt/producthunt-osx/languages","stargazers_url":"https://api.github.com/repos/producthunt/producthunt-osx/stargazers","contributors_url":"https://api.github.com/repos/producthunt/producthunt-osx/contributors","subscribers_url":"https://api.github.com/repos/producthunt/producthunt-osx/subscribers","subscription_url":"https://api.github.com/repos/producthunt/producthunt-osx/subscription","commits_url":"https://api.github.com/repos/producthunt/producthunt-osx/commits{/sha}","git_commits_url":"https://api.github.com/repos/producthunt/producthunt-osx/git/commits{/sha}","comments_url":"https://api.github.com/repos/producthunt/producthunt-osx/comments{/number}","issue_comment_url":"https://api.github.com/repos/producthunt/producthunt-osx/issues/comments{/number}","contents_url":"https://api.github.com/repos/producthunt/producthunt-osx/contents/{+path}","compare_url":"https://api.github.com/repos/producthunt/producthunt-osx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/producthunt/producthunt-osx/merges","archive_url":"https://api.github.com/repos/producthunt/producthunt-osx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/producthunt/producthunt-osx/downloads","issues_url":"https://api.github.com/repos/producthunt/producthunt-osx/issues{/number}","pulls_url":"https://api.github.com/repos/producthunt/producthunt-osx/pulls{/number}","milestones_url":"https://api.github.com/repos/producthunt/producthunt-osx/milestones{/number}","notifications_url":"https://api.github.com/repos/producthunt/producthunt-osx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/producthunt/producthunt-osx/labels{/name}","releases_url":"https://api.github.com/repos/producthunt/producthunt-osx/releases{/id}","deployments_url":"https://api.github.com/repos/producthunt/producthunt-osx/deployments","created_at":"2016-04-21T12:02:23Z","updated_at":"2016-05-05T05:52:14Z","pushed_at":"2016-05-05T08:06:14Z","git_url":"git://github.com/producthunt/producthunt-osx.git","ssh_url":"git@github.com:producthunt/producthunt-osx.git","clone_url":"https://github.com/producthunt/producthunt-osx.git","svn_url":"https://github.com/producthunt/producthunt-osx","homepage":null,"size":1667,"stargazers_count":289,"watchers_count":289,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":1,"forks":21,"open_issues":1,"watchers":289,"default_branch":"master"}},"base":{"label":"producthunt:master","ref":"master","sha":"9b25f6413addfdd252617a010f2911e9ec0e6245","user":{"login":"producthunt","id":6935003,"avatar_url":"https://avatars.githubusercontent.com/u/6935003?v=3","gravatar_id":"","url":"https://api.github.com/users/producthunt","html_url":"https://github.com/producthunt","followers_url":"https://api.github.com/users/producthunt/followers","following_url":"https://api.github.com/users/producthunt/following{/other_user}","gists_url":"https://api.github.com/users/producthunt/gists{/gist_id}","starred_url":"https://api.github.com/users/producthunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/producthunt/subscriptions","organizations_url":"https://api.github.com/users/producthunt/orgs","repos_url":"https://api.github.com/users/producthunt/repos","events_url":"https://api.github.com/users/producthunt/events{/privacy}","received_events_url":"https://api.github.com/users/producthunt/received_events","type":"Organization","site_admin":false},"repo":{"id":56770103,"name":"producthunt-osx","full_name":"producthunt/producthunt-osx","owner":{"login":"producthunt","id":6935003,"avatar_url":"https://avatars.githubusercontent.com/u/6935003?v=3","gravatar_id":"","url":"https://api.github.com/users/producthunt","html_url":"https://github.com/producthunt","followers_url":"https://api.github.com/users/producthunt/followers","following_url":"https://api.github.com/users/producthunt/following{/other_user}","gists_url":"https://api.github.com/users/producthunt/gists{/gist_id}","starred_url":"https://api.github.com/users/producthunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/producthunt/subscriptions","organizations_url":"https://api.github.com/users/producthunt/orgs","repos_url":"https://api.github.com/users/producthunt/repos","events_url":"https://api.github.com/users/producthunt/events{/privacy}","received_events_url":"https://api.github.com/users/producthunt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/producthunt/producthunt-osx","description":"The best new products, every day on Mac.","fork":false,"url":"https://api.github.com/repos/producthunt/producthunt-osx","forks_url":"https://api.github.com/repos/producthunt/producthunt-osx/forks","keys_url":"https://api.github.com/repos/producthunt/producthunt-osx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/producthunt/producthunt-osx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/producthunt/producthunt-osx/teams","hooks_url":"https://api.github.com/repos/producthunt/producthunt-osx/hooks","issue_events_url":"https://api.github.com/repos/producthunt/producthunt-osx/issues/events{/number}","events_url":"https://api.github.com/repos/producthunt/producthunt-osx/events","assignees_url":"https://api.github.com/repos/producthunt/producthunt-osx/assignees{/user}","branches_url":"https://api.github.com/repos/producthunt/producthunt-osx/branches{/branch}","tags_url":"https://api.github.com/repos/producthunt/producthunt-osx/tags","blobs_url":"https://api.github.com/repos/producthunt/producthunt-osx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/producthunt/producthunt-osx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/producthunt/producthunt-osx/git/refs{/sha}","trees_url":"https://api.github.com/repos/producthunt/producthunt-osx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/producthunt/producthunt-osx/statuses/{sha}","languages_url":"https://api.github.com/repos/producthunt/producthunt-osx/languages","stargazers_url":"https://api.github.com/repos/producthunt/producthunt-osx/stargazers","contributors_url":"https://api.github.com/repos/producthunt/producthunt-osx/contributors","subscribers_url":"https://api.github.com/repos/producthunt/producthunt-osx/subscribers","subscription_url":"https://api.github.com/repos/producthunt/producthunt-osx/subscription","commits_url":"https://api.github.com/repos/producthunt/producthunt-osx/commits{/sha}","git_commits_url":"https://api.github.com/repos/producthunt/producthunt-osx/git/commits{/sha}","comments_url":"https://api.github.com/repos/producthunt/producthunt-osx/comments{/number}","issue_comment_url":"https://api.github.com/repos/producthunt/producthunt-osx/issues/comments{/number}","contents_url":"https://api.github.com/repos/producthunt/producthunt-osx/contents/{+path}","compare_url":"https://api.github.com/repos/producthunt/producthunt-osx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/producthunt/producthunt-osx/merges","archive_url":"https://api.github.com/repos/producthunt/producthunt-osx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/producthunt/producthunt-osx/downloads","issues_url":"https://api.github.com/repos/producthunt/producthunt-osx/issues{/number}","pulls_url":"https://api.github.com/repos/producthunt/producthunt-osx/pulls{/number}","milestones_url":"https://api.github.com/repos/producthunt/producthunt-osx/milestones{/number}","notifications_url":"https://api.github.com/repos/producthunt/producthunt-osx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/producthunt/producthunt-osx/labels{/name}","releases_url":"https://api.github.com/repos/producthunt/producthunt-osx/releases{/id}","deployments_url":"https://api.github.com/repos/producthunt/producthunt-osx/deployments","created_at":"2016-04-21T12:02:23Z","updated_at":"2016-05-05T05:52:14Z","pushed_at":"2016-05-05T08:06:14Z","git_url":"git://github.com/producthunt/producthunt-osx.git","ssh_url":"git@github.com:producthunt/producthunt-osx.git","clone_url":"https://github.com/producthunt/producthunt-osx.git","svn_url":"https://github.com/producthunt/producthunt-osx","homepage":null,"size":1667,"stargazers_count":289,"watchers_count":289,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":1,"forks":21,"open_issues":1,"watchers":289,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/producthunt/producthunt-osx/pulls/3"},"html":{"href":"https://github.com/producthunt/producthunt-osx/pull/3"},"issue":{"href":"https://api.github.com/repos/producthunt/producthunt-osx/issues/3"},"comments":{"href":"https://api.github.com/repos/producthunt/producthunt-osx/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/producthunt/producthunt-osx/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/producthunt/producthunt-osx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/producthunt/producthunt-osx/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/producthunt/producthunt-osx/statuses/857ac5049cb884ca551790774ad24870cf4a29c6"}}}}