{"action":"created","comment":{"url":"https://api.github.com/repos/UNC-Libraries/hy-c/pulls/comments/235132776","pull_request_review_id":176929316,"id":235132776,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTEzMjc3Ng==","diff_hunk":"@@ -0,0 +1,120 @@\n+$(document).on('turbolinks:load', function () {\n+    attach_add_person_listeners('advisor');\n+    attach_add_person_listeners('arranger');\n+    attach_add_person_listeners('composer');\n+    attach_add_person_listeners('funder');\n+    attach_add_person_listeners('project_director');\n+    attach_add_person_listeners('researcher');\n+    attach_add_person_listeners('reviewer');\n+    attach_add_person_listeners('sponsor');\n+    attach_add_person_listeners('translator');\n+});\n+\n+\n+function attach_add_person_listeners(selector){\n+    var add_selector = '#add-another-'+selector;\n+    var remove_selector = '.remove-'+selector;\n+    var cloning_row = '#'+selector+'-cloning_row';\n+\n+    $(cloning_row).find('input').each(function() {\n+        if ($(this).prop('id').match('_id')) {","path":"app/assets/javascripts/person_objects.js","position":20,"original_position":20,"commit_id":"90a6fb33b70fe94aff72b7b3eb3641a31ed23afe","original_commit_id":"90a6fb33b70fe94aff72b7b3eb3641a31ed23afe","user":{"login":"lfarrell","id":436691,"node_id":"MDQ6VXNlcjQzNjY5MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/436691?v=4","gravatar_id":"","url":"https://api.github.com/users/lfarrell","html_url":"https://github.com/lfarrell","followers_url":"https://api.github.com/users/lfarrell/followers","following_url":"https://api.github.com/users/lfarrell/following{/other_user}","gists_url":"https://api.github.com/users/lfarrell/gists{/gist_id}","starred_url":"https://api.github.com/users/lfarrell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfarrell/subscriptions","organizations_url":"https://api.github.com/users/lfarrell/orgs","repos_url":"https://api.github.com/users/lfarrell/repos","events_url":"https://api.github.com/users/lfarrell/events{/privacy}","received_events_url":"https://api.github.com/users/lfarrell/received_events","type":"User","site_admin":false},"body":"I'd only select this once. `var self = $(this)` and then `self.prop('whatever')...","created_at":"2018-11-20T19:08:57Z","updated_at":"2018-11-20T19:08:57Z","html_url":"https://github.com/UNC-Libraries/hy-c/pull/195#discussion_r235132776","pull_request_url":"https://api.github.com/repos/UNC-Libraries/hy-c/pulls/195","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/UNC-Libraries/hy-c/pulls/comments/235132776"},"html":{"href":"https://github.com/UNC-Libraries/hy-c/pull/195#discussion_r235132776"},"pull_request":{"href":"https://api.github.com/repos/UNC-Libraries/hy-c/pulls/195"}}},"pull_request":{"url":"https://api.github.com/repos/UNC-Libraries/hy-c/pulls/195","id":232391354,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyMzkxMzU0","html_url":"https://github.com/UNC-Libraries/hy-c/pull/195","diff_url":"https://github.com/UNC-Libraries/hy-c/pull/195.diff","patch_url":"https://github.com/UNC-Libraries/hy-c/pull/195.patch","issue_url":"https://api.github.com/repos/UNC-Libraries/hy-c/issues/195","number":195,"state":"open","locked":false,"title":"People objects","user":{"login":"smithjp","id":7035044,"node_id":"MDQ6VXNlcjcwMzUwNDQ=","avatar_url":"https://avatars3.githubusercontent.com/u/7035044?v=4","gravatar_id":"","url":"https://api.github.com/users/smithjp","html_url":"https://github.com/smithjp","followers_url":"https://api.github.com/users/smithjp/followers","following_url":"https://api.github.com/users/smithjp/following{/other_user}","gists_url":"https://api.github.com/users/smithjp/gists{/gist_id}","starred_url":"https://api.github.com/users/smithjp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smithjp/subscriptions","organizations_url":"https://api.github.com/users/smithjp/orgs","repos_url":"https://api.github.com/users/smithjp/repos","events_url":"https://api.github.com/users/smithjp/events{/privacy}","received_events_url":"https://api.github.com/users/smithjp/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-20T16:57:13Z","updated_at":"2018-11-20T19:08:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ad2dc2212cc91ff4fd40676cdf861744b675cdd9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/UNC-Libraries/hy-c/pulls/195/commits","review_comments_url":"https://api.github.com/repos/UNC-Libraries/hy-c/pulls/195/comments","review_comment_url":"https://api.github.com/repos/UNC-Libraries/hy-c/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UNC-Libraries/hy-c/issues/195/comments","statuses_url":"https://api.github.com/repos/UNC-Libraries/hy-c/statuses/90a6fb33b70fe94aff72b7b3eb3641a31ed23afe","head":{"label":"UNC-Libraries:people-objects","ref":"people-objects","sha":"90a6fb33b70fe94aff72b7b3eb3641a31ed23afe","user":{"login":"UNC-Libraries","id":552066,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU1MjA2Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/552066?v=4","gravatar_id":"","url":"https://api.github.com/users/UNC-Libraries","html_url":"https://github.com/UNC-Libraries","followers_url":"https://api.github.com/users/UNC-Libraries/followers","following_url":"https://api.github.com/users/UNC-Libraries/following{/other_user}","gists_url":"https://api.github.com/users/UNC-Libraries/gists{/gist_id}","starred_url":"https://api.github.com/users/UNC-Libraries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UNC-Libraries/subscriptions","organizations_url":"https://api.github.com/users/UNC-Libraries/orgs","repos_url":"https://api.github.com/users/UNC-Libraries/repos","events_url":"https://api.github.com/users/UNC-Libraries/events{/privacy}","received_events_url":"https://api.github.com/users/UNC-Libraries/received_events","type":"Organization","site_admin":false},"repo":{"id":108883690,"node_id":"MDEwOlJlcG9zaXRvcnkxMDg4ODM2OTA=","name":"hy-c","full_name":"UNC-Libraries/hy-c","private":false,"owner":{"login":"UNC-Libraries","id":552066,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU1MjA2Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/552066?v=4","gravatar_id":"","url":"https://api.github.com/users/UNC-Libraries","html_url":"https://github.com/UNC-Libraries","followers_url":"https://api.github.com/users/UNC-Libraries/followers","following_url":"https://api.github.com/users/UNC-Libraries/following{/other_user}","gists_url":"https://api.github.com/users/UNC-Libraries/gists{/gist_id}","starred_url":"https://api.github.com/users/UNC-Libraries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UNC-Libraries/subscriptions","organizations_url":"https://api.github.com/users/UNC-Libraries/orgs","repos_url":"https://api.github.com/users/UNC-Libraries/repos","events_url":"https://api.github.com/users/UNC-Libraries/events{/privacy}","received_events_url":"https://api.github.com/users/UNC-Libraries/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/UNC-Libraries/hy-c","description":null,"fork":false,"url":"https://api.github.com/repos/UNC-Libraries/hy-c","forks_url":"https://api.github.com/repos/UNC-Libraries/hy-c/forks","keys_url":"https://api.github.com/repos/UNC-Libraries/hy-c/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UNC-Libraries/hy-c/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UNC-Libraries/hy-c/teams","hooks_url":"https://api.github.com/repos/UNC-Libraries/hy-c/hooks","issue_events_url":"https://api.github.com/repos/UNC-Libraries/hy-c/issues/events{/number}","events_url":"https://api.github.com/repos/UNC-Libraries/hy-c/events","assignees_url":"https://api.github.com/repos/UNC-Libraries/hy-c/assignees{/user}","branches_url":"https://api.github.com/repos/UNC-Libraries/hy-c/branches{/branch}","tags_url":"https://api.github.com/repos/UNC-Libraries/hy-c/tags","blobs_url":"https://api.github.com/repos/UNC-Libraries/hy-c/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UNC-Libraries/hy-c/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UNC-Libraries/hy-c/git/refs{/sha}","trees_url":"https://api.github.com/repos/UNC-Libraries/hy-c/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UNC-Libraries/hy-c/statuses/{sha}","languages_url":"https://api.github.com/repos/UNC-Libraries/hy-c/languages","stargazers_url":"https://api.github.com/repos/UNC-Libraries/hy-c/stargazers","contributors_url":"https://api.github.com/repos/UNC-Libraries/hy-c/contributors","subscribers_url":"https://api.github.com/repos/UNC-Libraries/hy-c/subscribers","subscription_url":"https://api.github.com/repos/UNC-Libraries/hy-c/subscription","commits_url":"https://api.github.com/repos/UNC-Libraries/hy-c/commits{/sha}","git_commits_url":"https://api.github.com/repos/UNC-Libraries/hy-c/git/commits{/sha}","comments_url":"https://api.github.com/repos/UNC-Libraries/hy-c/comments{/number}","issue_comment_url":"https://api.github.com/repos/UNC-Libraries/hy-c/issues/comments{/number}","contents_url":"https://api.github.com/repos/UNC-Libraries/hy-c/contents/{+path}","compare_url":"https://api.github.com/repos/UNC-Libraries/hy-c/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UNC-Libraries/hy-c/merges","archive_url":"https://api.github.com/repos/UNC-Libraries/hy-c/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UNC-Libraries/hy-c/downloads","issues_url":"https://api.github.com/repos/UNC-Libraries/hy-c/issues{/number}","pulls_url":"https://api.github.com/repos/UNC-Libraries/hy-c/pulls{/number}","milestones_url":"https://api.github.com/repos/UNC-Libraries/hy-c/milestones{/number}","notifications_url":"https://api.github.com/repos/UNC-Libraries/hy-c/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UNC-Libraries/hy-c/labels{/name}","releases_url":"https://api.github.com/repos/UNC-Libraries/hy-c/releases{/id}","deployments_url":"https://api.github.com/repos/UNC-Libraries/hy-c/deployments","created_at":"2017-10-30T17:17:23Z","updated_at":"2018-11-16T21:35:15Z","pushed_at":"2018-11-20T16:57:14Z","git_url":"git://github.com/UNC-Libraries/hy-c.git","ssh_url":"git@github.com:UNC-Libraries/hy-c.git","clone_url":"https://github.com/UNC-Libraries/hy-c.git","svn_url":"https://github.com/UNC-Libraries/hy-c","homepage":null,"size":128244,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":3,"watchers":4,"default_branch":"master"}},"base":{"label":"UNC-Libraries:master","ref":"master","sha":"0e2cc07444f50fc0a7cab3840acc52d049ccaddd","user":{"login":"UNC-Libraries","id":552066,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU1MjA2Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/552066?v=4","gravatar_id":"","url":"https://api.github.com/users/UNC-Libraries","html_url":"https://github.com/UNC-Libraries","followers_url":"https://api.github.com/users/UNC-Libraries/followers","following_url":"https://api.github.com/users/UNC-Libraries/following{/other_user}","gists_url":"https://api.github.com/users/UNC-Libraries/gists{/gist_id}","starred_url":"https://api.github.com/users/UNC-Libraries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UNC-Libraries/subscriptions","organizations_url":"https://api.github.com/users/UNC-Libraries/orgs","repos_url":"https://api.github.com/users/UNC-Libraries/repos","events_url":"https://api.github.com/users/UNC-Libraries/events{/privacy}","received_events_url":"https://api.github.com/users/UNC-Libraries/received_events","type":"Organization","site_admin":false},"repo":{"id":108883690,"node_id":"MDEwOlJlcG9zaXRvcnkxMDg4ODM2OTA=","name":"hy-c","full_name":"UNC-Libraries/hy-c","private":false,"owner":{"login":"UNC-Libraries","id":552066,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU1MjA2Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/552066?v=4","gravatar_id":"","url":"https://api.github.com/users/UNC-Libraries","html_url":"https://github.com/UNC-Libraries","followers_url":"https://api.github.com/users/UNC-Libraries/followers","following_url":"https://api.github.com/users/UNC-Libraries/following{/other_user}","gists_url":"https://api.github.com/users/UNC-Libraries/gists{/gist_id}","starred_url":"https://api.github.com/users/UNC-Libraries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UNC-Libraries/subscriptions","organizations_url":"https://api.github.com/users/UNC-Libraries/orgs","repos_url":"https://api.github.com/users/UNC-Libraries/repos","events_url":"https://api.github.com/users/UNC-Libraries/events{/privacy}","received_events_url":"https://api.github.com/users/UNC-Libraries/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/UNC-Libraries/hy-c","description":null,"fork":false,"url":"https://api.github.com/repos/UNC-Libraries/hy-c","forks_url":"https://api.github.com/repos/UNC-Libraries/hy-c/forks","keys_url":"https://api.github.com/repos/UNC-Libraries/hy-c/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UNC-Libraries/hy-c/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UNC-Libraries/hy-c/teams","hooks_url":"https://api.github.com/repos/UNC-Libraries/hy-c/hooks","issue_events_url":"https://api.github.com/repos/UNC-Libraries/hy-c/issues/events{/number}","events_url":"https://api.github.com/repos/UNC-Libraries/hy-c/events","assignees_url":"https://api.github.com/repos/UNC-Libraries/hy-c/assignees{/user}","branches_url":"https://api.github.com/repos/UNC-Libraries/hy-c/branches{/branch}","tags_url":"https://api.github.com/repos/UNC-Libraries/hy-c/tags","blobs_url":"https://api.github.com/repos/UNC-Libraries/hy-c/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UNC-Libraries/hy-c/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UNC-Libraries/hy-c/git/refs{/sha}","trees_url":"https://api.github.com/repos/UNC-Libraries/hy-c/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UNC-Libraries/hy-c/statuses/{sha}","languages_url":"https://api.github.com/repos/UNC-Libraries/hy-c/languages","stargazers_url":"https://api.github.com/repos/UNC-Libraries/hy-c/stargazers","contributors_url":"https://api.github.com/repos/UNC-Libraries/hy-c/contributors","subscribers_url":"https://api.github.com/repos/UNC-Libraries/hy-c/subscribers","subscription_url":"https://api.github.com/repos/UNC-Libraries/hy-c/subscription","commits_url":"https://api.github.com/repos/UNC-Libraries/hy-c/commits{/sha}","git_commits_url":"https://api.github.com/repos/UNC-Libraries/hy-c/git/commits{/sha}","comments_url":"https://api.github.com/repos/UNC-Libraries/hy-c/comments{/number}","issue_comment_url":"https://api.github.com/repos/UNC-Libraries/hy-c/issues/comments{/number}","contents_url":"https://api.github.com/repos/UNC-Libraries/hy-c/contents/{+path}","compare_url":"https://api.github.com/repos/UNC-Libraries/hy-c/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UNC-Libraries/hy-c/merges","archive_url":"https://api.github.com/repos/UNC-Libraries/hy-c/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UNC-Libraries/hy-c/downloads","issues_url":"https://api.github.com/repos/UNC-Libraries/hy-c/issues{/number}","pulls_url":"https://api.github.com/repos/UNC-Libraries/hy-c/pulls{/number}","milestones_url":"https://api.github.com/repos/UNC-Libraries/hy-c/milestones{/number}","notifications_url":"https://api.github.com/repos/UNC-Libraries/hy-c/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UNC-Libraries/hy-c/labels{/name}","releases_url":"https://api.github.com/repos/UNC-Libraries/hy-c/releases{/id}","deployments_url":"https://api.github.com/repos/UNC-Libraries/hy-c/deployments","created_at":"2017-10-30T17:17:23Z","updated_at":"2018-11-16T21:35:15Z","pushed_at":"2018-11-20T16:57:14Z","git_url":"git://github.com/UNC-Libraries/hy-c.git","ssh_url":"git@github.com:UNC-Libraries/hy-c.git","clone_url":"https://github.com/UNC-Libraries/hy-c.git","svn_url":"https://github.com/UNC-Libraries/hy-c","homepage":null,"size":128244,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":3,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UNC-Libraries/hy-c/pulls/195"},"html":{"href":"https://github.com/UNC-Libraries/hy-c/pull/195"},"issue":{"href":"https://api.github.com/repos/UNC-Libraries/hy-c/issues/195"},"comments":{"href":"https://api.github.com/repos/UNC-Libraries/hy-c/issues/195/comments"},"review_comments":{"href":"https://api.github.com/repos/UNC-Libraries/hy-c/pulls/195/comments"},"review_comment":{"href":"https://api.github.com/repos/UNC-Libraries/hy-c/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UNC-Libraries/hy-c/pulls/195/commits"},"statuses":{"href":"https://api.github.com/repos/UNC-Libraries/hy-c/statuses/90a6fb33b70fe94aff72b7b3eb3641a31ed23afe"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"lfarrell"}}