{"action":"created","comment":{"url":"https://api.github.com/repos/mysociety/fixmystreet/pulls/comments/114818983","pull_request_review_id":36311115,"id":114818983,"diff_hunk":"@@ -128,6 +128,8 @@ function isR2L() {\n   });\n })(jQuery);\n \n+fixmystreet.hooks = fixmystreet.hooks || {};","path":"web/cobrands/fixmystreet/fixmystreet.js","position":4,"original_position":4,"commit_id":"3cc81236c2959c579870584151b6d3c2644eea7f","original_commit_id":"3cc81236c2959c579870584151b6d3c2644eea7f","user":{"login":"dracos","id":154364,"avatar_url":"https://avatars3.githubusercontent.com/u/154364?v=3","gravatar_id":"","url":"https://api.github.com/users/dracos","html_url":"https://github.com/dracos","followers_url":"https://api.github.com/users/dracos/followers","following_url":"https://api.github.com/users/dracos/following{/other_user}","gists_url":"https://api.github.com/users/dracos/gists{/gist_id}","starred_url":"https://api.github.com/users/dracos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dracos/subscriptions","organizations_url":"https://api.github.com/users/dracos/orgs","repos_url":"https://api.github.com/users/dracos/repos","events_url":"https://api.github.com/users/dracos/events{/privacy}","received_events_url":"https://api.github.com/users/dracos/received_events","type":"User","site_admin":false},"body":"What I meant was that this line would be in `staff.js` and then it would be self-contained and not overwrite any other hooks created in separate files. As we know this file comes before `staff.js` this doesn't matter, but sorry if I was unclear in what I was trying to explain.","created_at":"2017-05-04T15:55:39Z","updated_at":"2017-05-04T15:56:07Z","html_url":"https://github.com/mysociety/fixmystreet/pull/1636#discussion_r114818983","pull_request_url":"https://api.github.com/repos/mysociety/fixmystreet/pulls/1636","_links":{"self":{"href":"https://api.github.com/repos/mysociety/fixmystreet/pulls/comments/114818983"},"html":{"href":"https://github.com/mysociety/fixmystreet/pull/1636#discussion_r114818983"},"pull_request":{"href":"https://api.github.com/repos/mysociety/fixmystreet/pulls/1636"}}},"pull_request":{"url":"https://api.github.com/repos/mysociety/fixmystreet/pulls/1636","id":105043729,"html_url":"https://github.com/mysociety/fixmystreet/pull/1636","diff_url":"https://github.com/mysociety/fixmystreet/pull/1636.diff","patch_url":"https://github.com/mysociety/fixmystreet/pull/1636.patch","issue_url":"https://api.github.com/repos/mysociety/fixmystreet/issues/1636","number":1636,"state":"open","locked":false,"title":"Simplify open and inspect procedure for inspectors","user":{"login":"pezholio","id":109774,"avatar_url":"https://avatars3.githubusercontent.com/u/109774?v=3","gravatar_id":"","url":"https://api.github.com/users/pezholio","html_url":"https://github.com/pezholio","followers_url":"https://api.github.com/users/pezholio/followers","following_url":"https://api.github.com/users/pezholio/following{/other_user}","gists_url":"https://api.github.com/users/pezholio/gists{/gist_id}","starred_url":"https://api.github.com/users/pezholio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pezholio/subscriptions","organizations_url":"https://api.github.com/users/pezholio/orgs","repos_url":"https://api.github.com/users/pezholio/repos","events_url":"https://api.github.com/users/pezholio/events{/privacy}","received_events_url":"https://api.github.com/users/pezholio/received_events","type":"User","site_admin":false},"body":"For mysociety/fixmystreetforcouncils#150\r\n\r\nThis makes it somewhat easier for inspectors who might be reporting a new problem to open a new report and add the inspection details by autocompleting a bunch of stuff for them, and redirecting to the inspection page once the report has been made. The flow now looks like this:\r\n\r\n![jshz7qhxkz](https://cloud.githubusercontent.com/assets/109774/22700649/4236563a-ed53-11e6-905d-2442e457449a.gif)\r\n\r\nAnd like this on mobile:\r\n\r\n![kir8cximhu](https://cloud.githubusercontent.com/assets/109774/22700780/9f7d0d48-ed53-11e6-9ed4-b5e8ef5afa78.gif)\r\n\r\nIt doesn't quite address everything in mysociety/fixmystreetforcouncils#150, but goes a long way to reducing the friction.\r\n","created_at":"2017-02-07T16:37:29Z","updated_at":"2017-05-04T15:56:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7ec2f6e7d266bb3f3d7f95ed669d10b8ff3bcfcc","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mysociety/fixmystreet/pulls/1636/commits","review_comments_url":"https://api.github.com/repos/mysociety/fixmystreet/pulls/1636/comments","review_comment_url":"https://api.github.com/repos/mysociety/fixmystreet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mysociety/fixmystreet/issues/1636/comments","statuses_url":"https://api.github.com/repos/mysociety/fixmystreet/statuses/3cc81236c2959c579870584151b6d3c2644eea7f","head":{"label":"mysociety:issues/forcouncils/150-simplify-open-and-inspect","ref":"issues/forcouncils/150-simplify-open-and-inspect","sha":"3cc81236c2959c579870584151b6d3c2644eea7f","user":{"login":"mysociety","id":141338,"avatar_url":"https://avatars2.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"repo":{"id":487492,"name":"fixmystreet","full_name":"mysociety/fixmystreet","owner":{"login":"mysociety","id":141338,"avatar_url":"https://avatars2.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mysociety/fixmystreet","description":"This is mySociety's popular map-based reporting platform: easy to install in new countries and regions","fork":false,"url":"https://api.github.com/repos/mysociety/fixmystreet","forks_url":"https://api.github.com/repos/mysociety/fixmystreet/forks","keys_url":"https://api.github.com/repos/mysociety/fixmystreet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mysociety/fixmystreet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mysociety/fixmystreet/teams","hooks_url":"https://api.github.com/repos/mysociety/fixmystreet/hooks","issue_events_url":"https://api.github.com/repos/mysociety/fixmystreet/issues/events{/number}","events_url":"https://api.github.com/repos/mysociety/fixmystreet/events","assignees_url":"https://api.github.com/repos/mysociety/fixmystreet/assignees{/user}","branches_url":"https://api.github.com/repos/mysociety/fixmystreet/branches{/branch}","tags_url":"https://api.github.com/repos/mysociety/fixmystreet/tags","blobs_url":"https://api.github.com/repos/mysociety/fixmystreet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mysociety/fixmystreet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mysociety/fixmystreet/git/refs{/sha}","trees_url":"https://api.github.com/repos/mysociety/fixmystreet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mysociety/fixmystreet/statuses/{sha}","languages_url":"https://api.github.com/repos/mysociety/fixmystreet/languages","stargazers_url":"https://api.github.com/repos/mysociety/fixmystreet/stargazers","contributors_url":"https://api.github.com/repos/mysociety/fixmystreet/contributors","subscribers_url":"https://api.github.com/repos/mysociety/fixmystreet/subscribers","subscription_url":"https://api.github.com/repos/mysociety/fixmystreet/subscription","commits_url":"https://api.github.com/repos/mysociety/fixmystreet/commits{/sha}","git_commits_url":"https://api.github.com/repos/mysociety/fixmystreet/git/commits{/sha}","comments_url":"https://api.github.com/repos/mysociety/fixmystreet/comments{/number}","issue_comment_url":"https://api.github.com/repos/mysociety/fixmystreet/issues/comments{/number}","contents_url":"https://api.github.com/repos/mysociety/fixmystreet/contents/{+path}","compare_url":"https://api.github.com/repos/mysociety/fixmystreet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mysociety/fixmystreet/merges","archive_url":"https://api.github.com/repos/mysociety/fixmystreet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mysociety/fixmystreet/downloads","issues_url":"https://api.github.com/repos/mysociety/fixmystreet/issues{/number}","pulls_url":"https://api.github.com/repos/mysociety/fixmystreet/pulls{/number}","milestones_url":"https://api.github.com/repos/mysociety/fixmystreet/milestones{/number}","notifications_url":"https://api.github.com/repos/mysociety/fixmystreet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mysociety/fixmystreet/labels{/name}","releases_url":"https://api.github.com/repos/mysociety/fixmystreet/releases{/id}","deployments_url":"https://api.github.com/repos/mysociety/fixmystreet/deployments","created_at":"2010-01-25T11:54:20Z","updated_at":"2017-05-01T22:13:37Z","pushed_at":"2017-05-04T15:52:31Z","git_url":"git://github.com/mysociety/fixmystreet.git","ssh_url":"git@github.com:mysociety/fixmystreet.git","clone_url":"https://github.com/mysociety/fixmystreet.git","svn_url":"https://github.com/mysociety/fixmystreet","homepage":"http://fixmystreet.org/","size":87486,"stargazers_count":307,"watchers_count":307,"language":"Perl","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":160,"mirror_url":null,"open_issues_count":236,"forks":160,"open_issues":236,"watchers":307,"default_branch":"master"}},"base":{"label":"mysociety:master","ref":"master","sha":"b9e02f9568c14a9a63e4e5b0a6dcedfa37eab085","user":{"login":"mysociety","id":141338,"avatar_url":"https://avatars2.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"repo":{"id":487492,"name":"fixmystreet","full_name":"mysociety/fixmystreet","owner":{"login":"mysociety","id":141338,"avatar_url":"https://avatars2.githubusercontent.com/u/141338?v=3","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mysociety/fixmystreet","description":"This is mySociety's popular map-based reporting platform: easy to install in new countries and regions","fork":false,"url":"https://api.github.com/repos/mysociety/fixmystreet","forks_url":"https://api.github.com/repos/mysociety/fixmystreet/forks","keys_url":"https://api.github.com/repos/mysociety/fixmystreet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mysociety/fixmystreet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mysociety/fixmystreet/teams","hooks_url":"https://api.github.com/repos/mysociety/fixmystreet/hooks","issue_events_url":"https://api.github.com/repos/mysociety/fixmystreet/issues/events{/number}","events_url":"https://api.github.com/repos/mysociety/fixmystreet/events","assignees_url":"https://api.github.com/repos/mysociety/fixmystreet/assignees{/user}","branches_url":"https://api.github.com/repos/mysociety/fixmystreet/branches{/branch}","tags_url":"https://api.github.com/repos/mysociety/fixmystreet/tags","blobs_url":"https://api.github.com/repos/mysociety/fixmystreet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mysociety/fixmystreet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mysociety/fixmystreet/git/refs{/sha}","trees_url":"https://api.github.com/repos/mysociety/fixmystreet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mysociety/fixmystreet/statuses/{sha}","languages_url":"https://api.github.com/repos/mysociety/fixmystreet/languages","stargazers_url":"https://api.github.com/repos/mysociety/fixmystreet/stargazers","contributors_url":"https://api.github.com/repos/mysociety/fixmystreet/contributors","subscribers_url":"https://api.github.com/repos/mysociety/fixmystreet/subscribers","subscription_url":"https://api.github.com/repos/mysociety/fixmystreet/subscription","commits_url":"https://api.github.com/repos/mysociety/fixmystreet/commits{/sha}","git_commits_url":"https://api.github.com/repos/mysociety/fixmystreet/git/commits{/sha}","comments_url":"https://api.github.com/repos/mysociety/fixmystreet/comments{/number}","issue_comment_url":"https://api.github.com/repos/mysociety/fixmystreet/issues/comments{/number}","contents_url":"https://api.github.com/repos/mysociety/fixmystreet/contents/{+path}","compare_url":"https://api.github.com/repos/mysociety/fixmystreet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mysociety/fixmystreet/merges","archive_url":"https://api.github.com/repos/mysociety/fixmystreet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mysociety/fixmystreet/downloads","issues_url":"https://api.github.com/repos/mysociety/fixmystreet/issues{/number}","pulls_url":"https://api.github.com/repos/mysociety/fixmystreet/pulls{/number}","milestones_url":"https://api.github.com/repos/mysociety/fixmystreet/milestones{/number}","notifications_url":"https://api.github.com/repos/mysociety/fixmystreet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mysociety/fixmystreet/labels{/name}","releases_url":"https://api.github.com/repos/mysociety/fixmystreet/releases{/id}","deployments_url":"https://api.github.com/repos/mysociety/fixmystreet/deployments","created_at":"2010-01-25T11:54:20Z","updated_at":"2017-05-01T22:13:37Z","pushed_at":"2017-05-04T15:52:31Z","git_url":"git://github.com/mysociety/fixmystreet.git","ssh_url":"git@github.com:mysociety/fixmystreet.git","clone_url":"https://github.com/mysociety/fixmystreet.git","svn_url":"https://github.com/mysociety/fixmystreet","homepage":"http://fixmystreet.org/","size":87486,"stargazers_count":307,"watchers_count":307,"language":"Perl","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":160,"mirror_url":null,"open_issues_count":236,"forks":160,"open_issues":236,"watchers":307,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mysociety/fixmystreet/pulls/1636"},"html":{"href":"https://github.com/mysociety/fixmystreet/pull/1636"},"issue":{"href":"https://api.github.com/repos/mysociety/fixmystreet/issues/1636"},"comments":{"href":"https://api.github.com/repos/mysociety/fixmystreet/issues/1636/comments"},"review_comments":{"href":"https://api.github.com/repos/mysociety/fixmystreet/pulls/1636/comments"},"review_comment":{"href":"https://api.github.com/repos/mysociety/fixmystreet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mysociety/fixmystreet/pulls/1636/commits"},"statuses":{"href":"https://api.github.com/repos/mysociety/fixmystreet/statuses/3cc81236c2959c579870584151b6d3c2644eea7f"}}}}
{"actor":{"display_login":"dracos"}}