{"action":"created","comment":{"url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/comments/87924699","pull_request_review_id":8515718,"id":87924699,"diff_hunk":"@@ -154,14 +156,30 @@ def self.evt_jd_apply(evt_obj) # evt_obj = job_app\n     #    Notify company contact associated with the job\n     #    Create task for 'job application' (application to be reviewed)\n \n-    Pusher.trigger('pusher_control',\n-                   EVT_TYPE[:JD_APPLY],\n-                   job_id:  evt_obj.job.id,\n-                   js_user_id: evt_obj.job_seeker.user.id)\n+    job_developer = evt_obj.try(:job_developer) || evt_obj.job_seeker.job_developer\n \n-    JobSeekerEmailJob.set(wait: delay_seconds.seconds)\n-                     .perform_later(EVT_TYPE[:JD_APPLY], evt_obj.job_seeker,\n-                                    evt_obj.job_seeker.job_developer, evt_obj.job)\n+    JobSeekerEmailJob.set(wait: delay_seconds.seconds).\n+                    perform_later(EVT_TYPE[:JD_APPLY], evt_obj.job_seeker,\n+                                  job_developer, evt_obj.job)\n+\n+    if job_developer != evt_obj.job_seeker.job_developer\n+      AgencyMailerJob.set(wait: delay_seconds.seconds)\n+                     .perform_later(EVT_TYPE[:OTHER_JD_APPLY],\n+                                    evt_obj.job_seeker,\n+                                    evt_obj.job_seeker.job_developer,\n+                                    job_developer, evt_obj.job)\n+      Pusher.trigger('pusher_control',\n+                     EVT_TYPE[:OTHER_JD_APPLY],\n+                     {job_id:  evt_obj.job.id,\n+                      js_user_id: evt_obj.job_seeker.user.id,\n+                      jd_id: job_developer.id,\n+                      jd_name: job_developer.full_name(last_name_first: false)})\n+    else\n+      Pusher.trigger('pusher_control',\n+                     EVT_TYPE[:JD_APPLY],\n+                     {job_id:  evt_obj.job.id,","path":"app/models/event.rb","position":45,"original_position":45,"commit_id":"c457e45d6ba7435573e9b55874cbdd8c6233c0bb","original_commit_id":"c457e45d6ba7435573e9b55874cbdd8c6233c0bb","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Redundant curly braces around a hash parameter.<br>Space inside { missing.","created_at":"2016-11-15T00:25:34Z","updated_at":"2016-11-15T00:25:34Z","html_url":"https://github.com/AgileVentures/MetPlus_PETS/pull/436#discussion_r87924699","pull_request_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/436","_links":{"self":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/comments/87924699"},"html":{"href":"https://github.com/AgileVentures/MetPlus_PETS/pull/436#discussion_r87924699"},"pull_request":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/436"}}},"pull_request":{"url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/436","id":93077360,"html_url":"https://github.com/AgileVentures/MetPlus_PETS/pull/436","diff_url":"https://github.com/AgileVentures/MetPlus_PETS/pull/436.diff","patch_url":"https://github.com/AgileVentures/MetPlus_PETS/pull/436.patch","issue_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/issues/436","number":436,"state":"open","locked":false,"title":"Closes AgileVentures/MetPlus_tracker#50","user":{"login":"joaopapereira","id":1826130,"avatar_url":"https://avatars.githubusercontent.com/u/1826130?v=3","gravatar_id":"","url":"https://api.github.com/users/joaopapereira","html_url":"https://github.com/joaopapereira","followers_url":"https://api.github.com/users/joaopapereira/followers","following_url":"https://api.github.com/users/joaopapereira/following{/other_user}","gists_url":"https://api.github.com/users/joaopapereira/gists{/gist_id}","starred_url":"https://api.github.com/users/joaopapereira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaopapereira/subscriptions","organizations_url":"https://api.github.com/users/joaopapereira/orgs","repos_url":"https://api.github.com/users/joaopapereira/repos","events_url":"https://api.github.com/users/joaopapereira/events{/privacy}","received_events_url":"https://api.github.com/users/joaopapereira/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-10T02:39:54Z","updated_at":"2016-11-15T00:25:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"57f815a7793a1df4add440c89db659a805aa93d8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/436/commits","review_comments_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/436/comments","review_comment_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/issues/436/comments","statuses_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/statuses/c457e45d6ba7435573e9b55874cbdd8c6233c0bb","head":{"label":"joaopapereira:feature/50","ref":"feature/50","sha":"c457e45d6ba7435573e9b55874cbdd8c6233c0bb","user":{"login":"joaopapereira","id":1826130,"avatar_url":"https://avatars.githubusercontent.com/u/1826130?v=3","gravatar_id":"","url":"https://api.github.com/users/joaopapereira","html_url":"https://github.com/joaopapereira","followers_url":"https://api.github.com/users/joaopapereira/followers","following_url":"https://api.github.com/users/joaopapereira/following{/other_user}","gists_url":"https://api.github.com/users/joaopapereira/gists{/gist_id}","starred_url":"https://api.github.com/users/joaopapereira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaopapereira/subscriptions","organizations_url":"https://api.github.com/users/joaopapereira/orgs","repos_url":"https://api.github.com/users/joaopapereira/repos","events_url":"https://api.github.com/users/joaopapereira/events{/privacy}","received_events_url":"https://api.github.com/users/joaopapereira/received_events","type":"User","site_admin":false},"repo":{"id":44603772,"name":"MetPlus_PETS","full_name":"joaopapereira/MetPlus_PETS","owner":{"login":"joaopapereira","id":1826130,"avatar_url":"https://avatars.githubusercontent.com/u/1826130?v=3","gravatar_id":"","url":"https://api.github.com/users/joaopapereira","html_url":"https://github.com/joaopapereira","followers_url":"https://api.github.com/users/joaopapereira/followers","following_url":"https://api.github.com/users/joaopapereira/following{/other_user}","gists_url":"https://api.github.com/users/joaopapereira/gists{/gist_id}","starred_url":"https://api.github.com/users/joaopapereira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaopapereira/subscriptions","organizations_url":"https://api.github.com/users/joaopapereira/orgs","repos_url":"https://api.github.com/users/joaopapereira/repos","events_url":"https://api.github.com/users/joaopapereira/events{/privacy}","received_events_url":"https://api.github.com/users/joaopapereira/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joaopapereira/MetPlus_PETS","description":"Front End for the MetPlus project","fork":true,"url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS","forks_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/forks","keys_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/teams","hooks_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/hooks","issue_events_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/issues/events{/number}","events_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/events","assignees_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/assignees{/user}","branches_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/branches{/branch}","tags_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/tags","blobs_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/git/refs{/sha}","trees_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/statuses/{sha}","languages_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/languages","stargazers_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/stargazers","contributors_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/contributors","subscribers_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/subscribers","subscription_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/subscription","commits_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/commits{/sha}","git_commits_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/git/commits{/sha}","comments_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/comments{/number}","issue_comment_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/issues/comments{/number}","contents_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/contents/{+path}","compare_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/merges","archive_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/downloads","issues_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/issues{/number}","pulls_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/pulls{/number}","milestones_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/milestones{/number}","notifications_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/labels{/name}","releases_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/releases{/id}","deployments_url":"https://api.github.com/repos/joaopapereira/MetPlus_PETS/deployments","created_at":"2015-10-20T12:09:26Z","updated_at":"2016-03-23T19:17:04Z","pushed_at":"2016-11-15T00:25:24Z","git_url":"git://github.com/joaopapereira/MetPlus_PETS.git","ssh_url":"git@github.com:joaopapereira/MetPlus_PETS.git","clone_url":"https://github.com/joaopapereira/MetPlus_PETS.git","svn_url":"https://github.com/joaopapereira/MetPlus_PETS","homepage":null,"size":2294,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"master"}},"base":{"label":"AgileVentures:development","ref":"development","sha":"639f91d4e05af301395785be133b7415fd011b02","user":{"login":"AgileVentures","id":5116968,"avatar_url":"https://avatars.githubusercontent.com/u/5116968?v=3","gravatar_id":"","url":"https://api.github.com/users/AgileVentures","html_url":"https://github.com/AgileVentures","followers_url":"https://api.github.com/users/AgileVentures/followers","following_url":"https://api.github.com/users/AgileVentures/following{/other_user}","gists_url":"https://api.github.com/users/AgileVentures/gists{/gist_id}","starred_url":"https://api.github.com/users/AgileVentures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgileVentures/subscriptions","organizations_url":"https://api.github.com/users/AgileVentures/orgs","repos_url":"https://api.github.com/users/AgileVentures/repos","events_url":"https://api.github.com/users/AgileVentures/events{/privacy}","received_events_url":"https://api.github.com/users/AgileVentures/received_events","type":"Organization","site_admin":false},"repo":{"id":41921394,"name":"MetPlus_PETS","full_name":"AgileVentures/MetPlus_PETS","owner":{"login":"AgileVentures","id":5116968,"avatar_url":"https://avatars.githubusercontent.com/u/5116968?v=3","gravatar_id":"","url":"https://api.github.com/users/AgileVentures","html_url":"https://github.com/AgileVentures","followers_url":"https://api.github.com/users/AgileVentures/followers","following_url":"https://api.github.com/users/AgileVentures/following{/other_user}","gists_url":"https://api.github.com/users/AgileVentures/gists{/gist_id}","starred_url":"https://api.github.com/users/AgileVentures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgileVentures/subscriptions","organizations_url":"https://api.github.com/users/AgileVentures/orgs","repos_url":"https://api.github.com/users/AgileVentures/repos","events_url":"https://api.github.com/users/AgileVentures/events{/privacy}","received_events_url":"https://api.github.com/users/AgileVentures/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AgileVentures/MetPlus_PETS","description":"Front End for the MetPlus project","fork":false,"url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS","forks_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/forks","keys_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/teams","hooks_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/hooks","issue_events_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/issues/events{/number}","events_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/events","assignees_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/assignees{/user}","branches_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/branches{/branch}","tags_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/tags","blobs_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/git/refs{/sha}","trees_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/statuses/{sha}","languages_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/languages","stargazers_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/stargazers","contributors_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/contributors","subscribers_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/subscribers","subscription_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/subscription","commits_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/commits{/sha}","git_commits_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/git/commits{/sha}","comments_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/comments{/number}","issue_comment_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/issues/comments{/number}","contents_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/contents/{+path}","compare_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/merges","archive_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/downloads","issues_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/issues{/number}","pulls_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls{/number}","milestones_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/milestones{/number}","notifications_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/labels{/name}","releases_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/releases{/id}","deployments_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/deployments","created_at":"2015-09-04T14:51:35Z","updated_at":"2016-11-14T13:07:40Z","pushed_at":"2016-11-15T00:25:24Z","git_url":"git://github.com/AgileVentures/MetPlus_PETS.git","ssh_url":"git@github.com:AgileVentures/MetPlus_PETS.git","clone_url":"https://github.com/AgileVentures/MetPlus_PETS.git","svn_url":"https://github.com/AgileVentures/MetPlus_PETS","homepage":null,"size":2989,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":34,"mirror_url":null,"open_issues_count":4,"forks":34,"open_issues":4,"watchers":5,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/436"},"html":{"href":"https://github.com/AgileVentures/MetPlus_PETS/pull/436"},"issue":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/issues/436"},"comments":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/issues/436/comments"},"review_comments":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/436/comments"},"review_comment":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/436/commits"},"statuses":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/statuses/c457e45d6ba7435573e9b55874cbdd8c6233c0bb"}}}}
{"actor":{"display_login":"houndci-bot"}}