{"action":"created","comment":{"url":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls/comments/29321832","id":29321832,"diff_hunk":"@@ -22,6 +22,21 @@\n     <%= form.label :url %>\n     <%= form.text_field :url %>\n   </div>\n+\n+  <h2>Contacts</h2>\n+  <%= form.fields_for :contacts do |contact_form| %>\n+    <div class=\"webfeeds__form-row\">\n+      <%= contact_form.label :name %>\n+      <%= contact_form.text_field :name %>\n+    </div>\n+    <div class=\"webfeeds__form-row\">\n+      <%= contact_form.label :email %>\n+      <%= contact_form.text_field :email %>\n+    </div>\n+    <%= contact_form.link_to_remove \"Remove this contact\" %>","path":"app/views/partners/_form.html.erb","position":24,"original_position":24,"commit_id":"08866942f0c411643598ca05dfce454a1d219a30","original_commit_id":"08866942f0c411643598ca05dfce454a1d219a30","user":{"login":"JiggyPete","id":67151,"avatar_url":"https://avatars.githubusercontent.com/u/67151?v=3","gravatar_id":"","url":"https://api.github.com/users/JiggyPete","html_url":"https://github.com/JiggyPete","followers_url":"https://api.github.com/users/JiggyPete/followers","following_url":"https://api.github.com/users/JiggyPete/following{/other_user}","gists_url":"https://api.github.com/users/JiggyPete/gists{/gist_id}","starred_url":"https://api.github.com/users/JiggyPete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JiggyPete/subscriptions","organizations_url":"https://api.github.com/users/JiggyPete/orgs","repos_url":"https://api.github.com/users/JiggyPete/repos","events_url":"https://api.github.com/users/JiggyPete/events{/privacy}","received_events_url":"https://api.github.com/users/JiggyPete/received_events","type":"User","site_admin":false},"body":"Given the validation on the model that there has to be at least one contact, I would suggest hiding this link on the first (or last remaining) contact so it can't be removed.","created_at":"2015-04-29T09:38:40Z","updated_at":"2015-04-29T09:38:40Z","html_url":"https://github.com/moneyadviceservice/webfeeds/pull/3#discussion_r29321832","pull_request_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls/comments/29321832"},"html":{"href":"https://github.com/moneyadviceservice/webfeeds/pull/3#discussion_r29321832"},"pull_request":{"href":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls/3","id":34275664,"html_url":"https://github.com/moneyadviceservice/webfeeds/pull/3","diff_url":"https://github.com/moneyadviceservice/webfeeds/pull/3.diff","patch_url":"https://github.com/moneyadviceservice/webfeeds/pull/3.patch","issue_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/issues/3","number":3,"state":"open","locked":false,"title":"Add contacts","user":{"login":"mconnell","id":32398,"avatar_url":"https://avatars.githubusercontent.com/u/32398?v=3","gravatar_id":"","url":"https://api.github.com/users/mconnell","html_url":"https://github.com/mconnell","followers_url":"https://api.github.com/users/mconnell/followers","following_url":"https://api.github.com/users/mconnell/following{/other_user}","gists_url":"https://api.github.com/users/mconnell/gists{/gist_id}","starred_url":"https://api.github.com/users/mconnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mconnell/subscriptions","organizations_url":"https://api.github.com/users/mconnell/orgs","repos_url":"https://api.github.com/users/mconnell/repos","events_url":"https://api.github.com/users/mconnell/events{/privacy}","received_events_url":"https://api.github.com/users/mconnell/received_events","type":"User","site_admin":false},"body":"This PR adds basic functionality to add / remove contacts to a Partner. We've not had any design work done for this project so views are purely functional.","created_at":"2015-04-28T14:58:13Z","updated_at":"2015-04-29T09:38:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8685bc0a3643cd29d0536f0d17ae177423d6d321","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls/3/commits","review_comments_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls/3/comments","review_comment_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls/comments{/number}","comments_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/issues/3/comments","statuses_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/statuses/08866942f0c411643598ca05dfce454a1d219a30","head":{"label":"moneyadviceservice:add_contacts","ref":"add_contacts","sha":"08866942f0c411643598ca05dfce454a1d219a30","user":{"login":"moneyadviceservice","id":2064781,"avatar_url":"https://avatars.githubusercontent.com/u/2064781?v=3","gravatar_id":"","url":"https://api.github.com/users/moneyadviceservice","html_url":"https://github.com/moneyadviceservice","followers_url":"https://api.github.com/users/moneyadviceservice/followers","following_url":"https://api.github.com/users/moneyadviceservice/following{/other_user}","gists_url":"https://api.github.com/users/moneyadviceservice/gists{/gist_id}","starred_url":"https://api.github.com/users/moneyadviceservice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moneyadviceservice/subscriptions","organizations_url":"https://api.github.com/users/moneyadviceservice/orgs","repos_url":"https://api.github.com/users/moneyadviceservice/repos","events_url":"https://api.github.com/users/moneyadviceservice/events{/privacy}","received_events_url":"https://api.github.com/users/moneyadviceservice/received_events","type":"Organization","site_admin":false},"repo":{"id":34719869,"name":"webfeeds","full_name":"moneyadviceservice/webfeeds","owner":{"login":"moneyadviceservice","id":2064781,"avatar_url":"https://avatars.githubusercontent.com/u/2064781?v=3","gravatar_id":"","url":"https://api.github.com/users/moneyadviceservice","html_url":"https://github.com/moneyadviceservice","followers_url":"https://api.github.com/users/moneyadviceservice/followers","following_url":"https://api.github.com/users/moneyadviceservice/following{/other_user}","gists_url":"https://api.github.com/users/moneyadviceservice/gists{/gist_id}","starred_url":"https://api.github.com/users/moneyadviceservice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moneyadviceservice/subscriptions","organizations_url":"https://api.github.com/users/moneyadviceservice/orgs","repos_url":"https://api.github.com/users/moneyadviceservice/repos","events_url":"https://api.github.com/users/moneyadviceservice/events{/privacy}","received_events_url":"https://api.github.com/users/moneyadviceservice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/moneyadviceservice/webfeeds","description":"","fork":false,"url":"https://api.github.com/repos/moneyadviceservice/webfeeds","forks_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/forks","keys_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/teams","hooks_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/hooks","issue_events_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/issues/events{/number}","events_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/events","assignees_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/assignees{/user}","branches_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/branches{/branch}","tags_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/tags","blobs_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/git/refs{/sha}","trees_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/statuses/{sha}","languages_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/languages","stargazers_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/stargazers","contributors_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/contributors","subscribers_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/subscribers","subscription_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/subscription","commits_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/commits{/sha}","git_commits_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/git/commits{/sha}","comments_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/comments{/number}","issue_comment_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/issues/comments{/number}","contents_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/contents/{+path}","compare_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/merges","archive_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/downloads","issues_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/issues{/number}","pulls_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls{/number}","milestones_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/milestones{/number}","notifications_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/labels{/name}","releases_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/releases{/id}","created_at":"2015-04-28T08:59:24Z","updated_at":"2015-04-28T15:17:06Z","pushed_at":"2015-04-28T15:17:08Z","git_url":"git://github.com/moneyadviceservice/webfeeds.git","ssh_url":"git@github.com:moneyadviceservice/webfeeds.git","clone_url":"https://github.com/moneyadviceservice/webfeeds.git","svn_url":"https://github.com/moneyadviceservice/webfeeds","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"moneyadviceservice:master","ref":"master","sha":"37a770c07635ee0e16ec1b0af64dca8d97fd2d6e","user":{"login":"moneyadviceservice","id":2064781,"avatar_url":"https://avatars.githubusercontent.com/u/2064781?v=3","gravatar_id":"","url":"https://api.github.com/users/moneyadviceservice","html_url":"https://github.com/moneyadviceservice","followers_url":"https://api.github.com/users/moneyadviceservice/followers","following_url":"https://api.github.com/users/moneyadviceservice/following{/other_user}","gists_url":"https://api.github.com/users/moneyadviceservice/gists{/gist_id}","starred_url":"https://api.github.com/users/moneyadviceservice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moneyadviceservice/subscriptions","organizations_url":"https://api.github.com/users/moneyadviceservice/orgs","repos_url":"https://api.github.com/users/moneyadviceservice/repos","events_url":"https://api.github.com/users/moneyadviceservice/events{/privacy}","received_events_url":"https://api.github.com/users/moneyadviceservice/received_events","type":"Organization","site_admin":false},"repo":{"id":34719869,"name":"webfeeds","full_name":"moneyadviceservice/webfeeds","owner":{"login":"moneyadviceservice","id":2064781,"avatar_url":"https://avatars.githubusercontent.com/u/2064781?v=3","gravatar_id":"","url":"https://api.github.com/users/moneyadviceservice","html_url":"https://github.com/moneyadviceservice","followers_url":"https://api.github.com/users/moneyadviceservice/followers","following_url":"https://api.github.com/users/moneyadviceservice/following{/other_user}","gists_url":"https://api.github.com/users/moneyadviceservice/gists{/gist_id}","starred_url":"https://api.github.com/users/moneyadviceservice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moneyadviceservice/subscriptions","organizations_url":"https://api.github.com/users/moneyadviceservice/orgs","repos_url":"https://api.github.com/users/moneyadviceservice/repos","events_url":"https://api.github.com/users/moneyadviceservice/events{/privacy}","received_events_url":"https://api.github.com/users/moneyadviceservice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/moneyadviceservice/webfeeds","description":"","fork":false,"url":"https://api.github.com/repos/moneyadviceservice/webfeeds","forks_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/forks","keys_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/teams","hooks_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/hooks","issue_events_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/issues/events{/number}","events_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/events","assignees_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/assignees{/user}","branches_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/branches{/branch}","tags_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/tags","blobs_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/git/refs{/sha}","trees_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/statuses/{sha}","languages_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/languages","stargazers_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/stargazers","contributors_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/contributors","subscribers_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/subscribers","subscription_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/subscription","commits_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/commits{/sha}","git_commits_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/git/commits{/sha}","comments_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/comments{/number}","issue_comment_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/issues/comments{/number}","contents_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/contents/{+path}","compare_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/merges","archive_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/downloads","issues_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/issues{/number}","pulls_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls{/number}","milestones_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/milestones{/number}","notifications_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/labels{/name}","releases_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/releases{/id}","created_at":"2015-04-28T08:59:24Z","updated_at":"2015-04-28T15:17:06Z","pushed_at":"2015-04-28T15:17:08Z","git_url":"git://github.com/moneyadviceservice/webfeeds.git","ssh_url":"git@github.com:moneyadviceservice/webfeeds.git","clone_url":"https://github.com/moneyadviceservice/webfeeds.git","svn_url":"https://github.com/moneyadviceservice/webfeeds","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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/moneyadviceservice/webfeeds/pulls/3"},"html":{"href":"https://github.com/moneyadviceservice/webfeeds/pull/3"},"issue":{"href":"https://api.github.com/repos/moneyadviceservice/webfeeds/issues/3"},"comments":{"href":"https://api.github.com/repos/moneyadviceservice/webfeeds/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/moneyadviceservice/webfeeds/statuses/08866942f0c411643598ca05dfce454a1d219a30"}}}}