{"action":"created","comment":{"url":"https://api.github.com/repos/hyperoslo/HYPForms/pulls/comments/22583591","id":22583591,"diff_hunk":"@@ -233,15 +230,7 @@ - (void)readOnly:(UISwitch *)sender\n {\n     [self.dataSource disable:sender.isOn];\n \n-    HYPFormTarget *target = [HYPFormTarget new];\n-    target.targetID = @\"image\";\n-    target.typeString = @\"field\";\n-\n-    if (sender.isOn) {\n-        target.actionTypeString = @\"hide\";\n-    } else {\n-        target.actionTypeString = @\"show\";\n-    }\n+    HYPFormTarget *target = [HYPFormTarget hideFieldTargetWithID:@\"image\"];","path":"Demo/HYPForms/HYPSampleCollectionViewController.m","position":null,"original_position":25,"commit_id":"2a318b83ba05cbf42cab092fc0f3d0f9a37d6255","original_commit_id":"b8b5b2fe5727f2bc0e68f0acd11debfec18151a2","user":{"login":"zenangst","id":57446,"avatar_url":"https://avatars.githubusercontent.com/u/57446?v=3","gravatar_id":"","url":"https://api.github.com/users/zenangst","html_url":"https://github.com/zenangst","followers_url":"https://api.github.com/users/zenangst/followers","following_url":"https://api.github.com/users/zenangst/following{/other_user}","gists_url":"https://api.github.com/users/zenangst/gists{/gist_id}","starred_url":"https://api.github.com/users/zenangst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenangst/subscriptions","organizations_url":"https://api.github.com/users/zenangst/orgs","repos_url":"https://api.github.com/users/zenangst/repos","events_url":"https://api.github.com/users/zenangst/events{/privacy}","received_events_url":"https://api.github.com/users/zenangst/received_events","type":"User","site_admin":false},"body":"Should be fixed by https://github.com/hyperoslo/HYPForms/commit/2a318b83ba05cbf42cab092fc0f3d0f9a37d6255","created_at":"2015-01-07T12:30:29Z","updated_at":"2015-01-07T12:30:29Z","html_url":"https://github.com/hyperoslo/HYPForms/pull/139#discussion_r22583591","pull_request_url":"https://api.github.com/repos/hyperoslo/HYPForms/pulls/139","_links":{"self":{"href":"https://api.github.com/repos/hyperoslo/HYPForms/pulls/comments/22583591"},"html":{"href":"https://github.com/hyperoslo/HYPForms/pull/139#discussion_r22583591"},"pull_request":{"href":"https://api.github.com/repos/hyperoslo/HYPForms/pulls/139"}}},"pull_request":{"url":"https://api.github.com/repos/hyperoslo/HYPForms/pulls/139","id":26846648,"html_url":"https://github.com/hyperoslo/HYPForms/pull/139","diff_url":"https://github.com/hyperoslo/HYPForms/pull/139.diff","patch_url":"https://github.com/hyperoslo/HYPForms/pull/139.patch","issue_url":"https://api.github.com/repos/hyperoslo/HYPForms/issues/139","number":139,"state":"open","locked":false,"title":"Add additional target actions","user":{"login":"zenangst","id":57446,"avatar_url":"https://avatars.githubusercontent.com/u/57446?v=3","gravatar_id":"","url":"https://api.github.com/users/zenangst","html_url":"https://github.com/zenangst","followers_url":"https://api.github.com/users/zenangst/followers","following_url":"https://api.github.com/users/zenangst/following{/other_user}","gists_url":"https://api.github.com/users/zenangst/gists{/gist_id}","starred_url":"https://api.github.com/users/zenangst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenangst/subscriptions","organizations_url":"https://api.github.com/users/zenangst/orgs","repos_url":"https://api.github.com/users/zenangst/repos","events_url":"https://api.github.com/users/zenangst/events{/privacy}","received_events_url":"https://api.github.com/users/zenangst/received_events","type":"User","site_admin":false},"body":"- [x] Add support for enable actions\r\n- [x] Add support for disable actions\r\n- [x] Add support for update actions with values\r\n- [x] Add support for default values in select fields\r\n- [x] Run targets on field values when form becomes enabled\r\n- [x] Add tests","created_at":"2015-01-05T19:56:42Z","updated_at":"2015-01-07T12:30:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c26a246804fd9f809344559928d8c98ddc0d2db7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hyperoslo/HYPForms/pulls/139/commits","review_comments_url":"https://api.github.com/repos/hyperoslo/HYPForms/pulls/139/comments","review_comment_url":"https://api.github.com/repos/hyperoslo/HYPForms/pulls/comments/{number}","comments_url":"https://api.github.com/repos/hyperoslo/HYPForms/issues/139/comments","statuses_url":"https://api.github.com/repos/hyperoslo/HYPForms/statuses/2a318b83ba05cbf42cab092fc0f3d0f9a37d6255","head":{"label":"hyperoslo:improve/add-additional-target-actions","ref":"improve/add-additional-target-actions","sha":"2a318b83ba05cbf42cab092fc0f3d0f9a37d6255","user":{"login":"hyperoslo","id":1340892,"avatar_url":"https://avatars.githubusercontent.com/u/1340892?v=3","gravatar_id":"","url":"https://api.github.com/users/hyperoslo","html_url":"https://github.com/hyperoslo","followers_url":"https://api.github.com/users/hyperoslo/followers","following_url":"https://api.github.com/users/hyperoslo/following{/other_user}","gists_url":"https://api.github.com/users/hyperoslo/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperoslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperoslo/subscriptions","organizations_url":"https://api.github.com/users/hyperoslo/orgs","repos_url":"https://api.github.com/users/hyperoslo/repos","events_url":"https://api.github.com/users/hyperoslo/events{/privacy}","received_events_url":"https://api.github.com/users/hyperoslo/received_events","type":"Organization","site_admin":false},"repo":{"id":24758457,"name":"HYPForms","full_name":"hyperoslo/HYPForms","owner":{"login":"hyperoslo","id":1340892,"avatar_url":"https://avatars.githubusercontent.com/u/1340892?v=3","gravatar_id":"","url":"https://api.github.com/users/hyperoslo","html_url":"https://github.com/hyperoslo","followers_url":"https://api.github.com/users/hyperoslo/followers","following_url":"https://api.github.com/users/hyperoslo/following{/other_user}","gists_url":"https://api.github.com/users/hyperoslo/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperoslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperoslo/subscriptions","organizations_url":"https://api.github.com/users/hyperoslo/orgs","repos_url":"https://api.github.com/users/hyperoslo/repos","events_url":"https://api.github.com/users/hyperoslo/events{/privacy}","received_events_url":"https://api.github.com/users/hyperoslo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hyperoslo/HYPForms","description":"most awesome forms in town","fork":false,"url":"https://api.github.com/repos/hyperoslo/HYPForms","forks_url":"https://api.github.com/repos/hyperoslo/HYPForms/forks","keys_url":"https://api.github.com/repos/hyperoslo/HYPForms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hyperoslo/HYPForms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hyperoslo/HYPForms/teams","hooks_url":"https://api.github.com/repos/hyperoslo/HYPForms/hooks","issue_events_url":"https://api.github.com/repos/hyperoslo/HYPForms/issues/events{/number}","events_url":"https://api.github.com/repos/hyperoslo/HYPForms/events","assignees_url":"https://api.github.com/repos/hyperoslo/HYPForms/assignees{/user}","branches_url":"https://api.github.com/repos/hyperoslo/HYPForms/branches{/branch}","tags_url":"https://api.github.com/repos/hyperoslo/HYPForms/tags","blobs_url":"https://api.github.com/repos/hyperoslo/HYPForms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hyperoslo/HYPForms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hyperoslo/HYPForms/git/refs{/sha}","trees_url":"https://api.github.com/repos/hyperoslo/HYPForms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hyperoslo/HYPForms/statuses/{sha}","languages_url":"https://api.github.com/repos/hyperoslo/HYPForms/languages","stargazers_url":"https://api.github.com/repos/hyperoslo/HYPForms/stargazers","contributors_url":"https://api.github.com/repos/hyperoslo/HYPForms/contributors","subscribers_url":"https://api.github.com/repos/hyperoslo/HYPForms/subscribers","subscription_url":"https://api.github.com/repos/hyperoslo/HYPForms/subscription","commits_url":"https://api.github.com/repos/hyperoslo/HYPForms/commits{/sha}","git_commits_url":"https://api.github.com/repos/hyperoslo/HYPForms/git/commits{/sha}","comments_url":"https://api.github.com/repos/hyperoslo/HYPForms/comments{/number}","issue_comment_url":"https://api.github.com/repos/hyperoslo/HYPForms/issues/comments/{number}","contents_url":"https://api.github.com/repos/hyperoslo/HYPForms/contents/{+path}","compare_url":"https://api.github.com/repos/hyperoslo/HYPForms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hyperoslo/HYPForms/merges","archive_url":"https://api.github.com/repos/hyperoslo/HYPForms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hyperoslo/HYPForms/downloads","issues_url":"https://api.github.com/repos/hyperoslo/HYPForms/issues{/number}","pulls_url":"https://api.github.com/repos/hyperoslo/HYPForms/pulls{/number}","milestones_url":"https://api.github.com/repos/hyperoslo/HYPForms/milestones{/number}","notifications_url":"https://api.github.com/repos/hyperoslo/HYPForms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hyperoslo/HYPForms/labels{/name}","releases_url":"https://api.github.com/repos/hyperoslo/HYPForms/releases{/id}","created_at":"2014-10-03T12:59:46Z","updated_at":"2014-12-22T15:26:07Z","pushed_at":"2015-01-07T12:29:21Z","git_url":"git://github.com/hyperoslo/HYPForms.git","ssh_url":"git@github.com:hyperoslo/HYPForms.git","clone_url":"https://github.com/hyperoslo/HYPForms.git","svn_url":"https://github.com/hyperoslo/HYPForms","homepage":"","size":4606,"stargazers_count":3,"watchers_count":3,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":13,"forks":0,"open_issues":13,"watchers":3,"default_branch":"master"}},"base":{"label":"hyperoslo:master","ref":"master","sha":"404d6ad91b339c462a05856d7e843870490495ea","user":{"login":"hyperoslo","id":1340892,"avatar_url":"https://avatars.githubusercontent.com/u/1340892?v=3","gravatar_id":"","url":"https://api.github.com/users/hyperoslo","html_url":"https://github.com/hyperoslo","followers_url":"https://api.github.com/users/hyperoslo/followers","following_url":"https://api.github.com/users/hyperoslo/following{/other_user}","gists_url":"https://api.github.com/users/hyperoslo/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperoslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperoslo/subscriptions","organizations_url":"https://api.github.com/users/hyperoslo/orgs","repos_url":"https://api.github.com/users/hyperoslo/repos","events_url":"https://api.github.com/users/hyperoslo/events{/privacy}","received_events_url":"https://api.github.com/users/hyperoslo/received_events","type":"Organization","site_admin":false},"repo":{"id":24758457,"name":"HYPForms","full_name":"hyperoslo/HYPForms","owner":{"login":"hyperoslo","id":1340892,"avatar_url":"https://avatars.githubusercontent.com/u/1340892?v=3","gravatar_id":"","url":"https://api.github.com/users/hyperoslo","html_url":"https://github.com/hyperoslo","followers_url":"https://api.github.com/users/hyperoslo/followers","following_url":"https://api.github.com/users/hyperoslo/following{/other_user}","gists_url":"https://api.github.com/users/hyperoslo/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperoslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperoslo/subscriptions","organizations_url":"https://api.github.com/users/hyperoslo/orgs","repos_url":"https://api.github.com/users/hyperoslo/repos","events_url":"https://api.github.com/users/hyperoslo/events{/privacy}","received_events_url":"https://api.github.com/users/hyperoslo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hyperoslo/HYPForms","description":"most awesome forms in town","fork":false,"url":"https://api.github.com/repos/hyperoslo/HYPForms","forks_url":"https://api.github.com/repos/hyperoslo/HYPForms/forks","keys_url":"https://api.github.com/repos/hyperoslo/HYPForms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hyperoslo/HYPForms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hyperoslo/HYPForms/teams","hooks_url":"https://api.github.com/repos/hyperoslo/HYPForms/hooks","issue_events_url":"https://api.github.com/repos/hyperoslo/HYPForms/issues/events{/number}","events_url":"https://api.github.com/repos/hyperoslo/HYPForms/events","assignees_url":"https://api.github.com/repos/hyperoslo/HYPForms/assignees{/user}","branches_url":"https://api.github.com/repos/hyperoslo/HYPForms/branches{/branch}","tags_url":"https://api.github.com/repos/hyperoslo/HYPForms/tags","blobs_url":"https://api.github.com/repos/hyperoslo/HYPForms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hyperoslo/HYPForms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hyperoslo/HYPForms/git/refs{/sha}","trees_url":"https://api.github.com/repos/hyperoslo/HYPForms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hyperoslo/HYPForms/statuses/{sha}","languages_url":"https://api.github.com/repos/hyperoslo/HYPForms/languages","stargazers_url":"https://api.github.com/repos/hyperoslo/HYPForms/stargazers","contributors_url":"https://api.github.com/repos/hyperoslo/HYPForms/contributors","subscribers_url":"https://api.github.com/repos/hyperoslo/HYPForms/subscribers","subscription_url":"https://api.github.com/repos/hyperoslo/HYPForms/subscription","commits_url":"https://api.github.com/repos/hyperoslo/HYPForms/commits{/sha}","git_commits_url":"https://api.github.com/repos/hyperoslo/HYPForms/git/commits{/sha}","comments_url":"https://api.github.com/repos/hyperoslo/HYPForms/comments{/number}","issue_comment_url":"https://api.github.com/repos/hyperoslo/HYPForms/issues/comments/{number}","contents_url":"https://api.github.com/repos/hyperoslo/HYPForms/contents/{+path}","compare_url":"https://api.github.com/repos/hyperoslo/HYPForms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hyperoslo/HYPForms/merges","archive_url":"https://api.github.com/repos/hyperoslo/HYPForms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hyperoslo/HYPForms/downloads","issues_url":"https://api.github.com/repos/hyperoslo/HYPForms/issues{/number}","pulls_url":"https://api.github.com/repos/hyperoslo/HYPForms/pulls{/number}","milestones_url":"https://api.github.com/repos/hyperoslo/HYPForms/milestones{/number}","notifications_url":"https://api.github.com/repos/hyperoslo/HYPForms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hyperoslo/HYPForms/labels{/name}","releases_url":"https://api.github.com/repos/hyperoslo/HYPForms/releases{/id}","created_at":"2014-10-03T12:59:46Z","updated_at":"2014-12-22T15:26:07Z","pushed_at":"2015-01-07T12:29:21Z","git_url":"git://github.com/hyperoslo/HYPForms.git","ssh_url":"git@github.com:hyperoslo/HYPForms.git","clone_url":"https://github.com/hyperoslo/HYPForms.git","svn_url":"https://github.com/hyperoslo/HYPForms","homepage":"","size":4606,"stargazers_count":3,"watchers_count":3,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":13,"forks":0,"open_issues":13,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hyperoslo/HYPForms/pulls/139"},"html":{"href":"https://github.com/hyperoslo/HYPForms/pull/139"},"issue":{"href":"https://api.github.com/repos/hyperoslo/HYPForms/issues/139"},"comments":{"href":"https://api.github.com/repos/hyperoslo/HYPForms/issues/139/comments"},"review_comments":{"href":"https://api.github.com/repos/hyperoslo/HYPForms/pulls/139/comments"},"review_comment":{"href":"https://api.github.com/repos/hyperoslo/HYPForms/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/hyperoslo/HYPForms/pulls/139/commits"},"statuses":{"href":"https://api.github.com/repos/hyperoslo/HYPForms/statuses/2a318b83ba05cbf42cab092fc0f3d0f9a37d6255"}}}}