{"action":"created","comment":{"url":"https://api.github.com/repos/mysociety/fixmystreet/pulls/comments/130887066","pull_request_review_id":53810222,"id":130887066,"diff_hunk":"@@ -1,6 +1,19 @@\n-[% DEFAULT report = object ~%]\n+[%\n+\n+# There are cases (eg: when sending email about an update on a problem)\n+# where `object` might not be a report. So in those cases, you can pass\n+# in a `report` argument, which should be the report the email is about.\n+# Otherwise, we assume the `object` you passed is a report.\n+DEFAULT report = object ~%]\n+\n+# There are cases (eg: when confirming a not-yet-published report) where","path":"templates/email/default/_email_sidebar.html","position":10,"original_position":10,"commit_id":"379af19411cff640791046d98018172537b03aa1","original_commit_id":"379af19411cff640791046d98018172537b03aa1","user":{"login":"dracos","id":154364,"avatar_url":"https://avatars0.githubusercontent.com/u/154364?v=4","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":"You have ended a `[% … %]` block just above, so all this is output in the email.","created_at":"2017-08-02T14:10:02Z","updated_at":"2017-08-02T14:11:46Z","html_url":"https://github.com/mysociety/fixmystreet/pull/1779#discussion_r130887066","pull_request_url":"https://api.github.com/repos/mysociety/fixmystreet/pulls/1779","_links":{"self":{"href":"https://api.github.com/repos/mysociety/fixmystreet/pulls/comments/130887066"},"html":{"href":"https://github.com/mysociety/fixmystreet/pull/1779#discussion_r130887066"},"pull_request":{"href":"https://api.github.com/repos/mysociety/fixmystreet/pulls/1779"}}},"pull_request":{"url":"https://api.github.com/repos/mysociety/fixmystreet/pulls/1779","id":133512798,"html_url":"https://github.com/mysociety/fixmystreet/pull/1779","diff_url":"https://github.com/mysociety/fixmystreet/pull/1779.diff","patch_url":"https://github.com/mysociety/fixmystreet/pull/1779.patch","issue_url":"https://api.github.com/repos/mysociety/fixmystreet/issues/1779","number":1779,"state":"open","locked":false,"title":"Make map image in HTML emails clickable","user":{"login":"zarino","id":739624,"avatar_url":"https://avatars1.githubusercontent.com/u/739624?v=4","gravatar_id":"","url":"https://api.github.com/users/zarino","html_url":"https://github.com/zarino","followers_url":"https://api.github.com/users/zarino/followers","following_url":"https://api.github.com/users/zarino/following{/other_user}","gists_url":"https://api.github.com/users/zarino/gists{/gist_id}","starred_url":"https://api.github.com/users/zarino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zarino/subscriptions","organizations_url":"https://api.github.com/users/zarino/orgs","repos_url":"https://api.github.com/users/zarino/repos","events_url":"https://api.github.com/users/zarino/events{/privacy}","received_events_url":"https://api.github.com/users/zarino/received_events","type":"User","site_admin":false},"body":"Emails that contain a report’s title, description, and location in the ”sidebar” will now have a map that takes you to the report’s web page when clicked.\r\n\r\nFixes #1596. Thanks to @MyfanwyNixon for the suggestion!","created_at":"2017-08-01T16:09:21Z","updated_at":"2017-08-02T14:11:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4910c90058e62c644fefa0e83aa08a8f4bf714cd","assignee":null,"assignees":[],"requested_reviewers":[{"login":"struan","id":5310,"avatar_url":"https://avatars1.githubusercontent.com/u/5310?v=4","gravatar_id":"","url":"https://api.github.com/users/struan","html_url":"https://github.com/struan","followers_url":"https://api.github.com/users/struan/followers","following_url":"https://api.github.com/users/struan/following{/other_user}","gists_url":"https://api.github.com/users/struan/gists{/gist_id}","starred_url":"https://api.github.com/users/struan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/struan/subscriptions","organizations_url":"https://api.github.com/users/struan/orgs","repos_url":"https://api.github.com/users/struan/repos","events_url":"https://api.github.com/users/struan/events{/privacy}","received_events_url":"https://api.github.com/users/struan/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mysociety/fixmystreet/pulls/1779/commits","review_comments_url":"https://api.github.com/repos/mysociety/fixmystreet/pulls/1779/comments","review_comment_url":"https://api.github.com/repos/mysociety/fixmystreet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mysociety/fixmystreet/issues/1779/comments","statuses_url":"https://api.github.com/repos/mysociety/fixmystreet/statuses/379af19411cff640791046d98018172537b03aa1","head":{"label":"mysociety:1596-email-alert-improvements","ref":"1596-email-alert-improvements","sha":"379af19411cff640791046d98018172537b03aa1","user":{"login":"mysociety","id":141338,"avatar_url":"https://avatars1.githubusercontent.com/u/141338?v=4","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://avatars1.githubusercontent.com/u/141338?v=4","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-07-29T12:55:10Z","pushed_at":"2017-08-02T13:51:53Z","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":104657,"stargazers_count":315,"watchers_count":315,"language":"Perl","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":167,"mirror_url":null,"open_issues_count":240,"forks":167,"open_issues":240,"watchers":315,"default_branch":"master"}},"base":{"label":"mysociety:master","ref":"master","sha":"3523421e0c6d99ab4f0d7bfd942b9a70a4b9d90c","user":{"login":"mysociety","id":141338,"avatar_url":"https://avatars1.githubusercontent.com/u/141338?v=4","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://avatars1.githubusercontent.com/u/141338?v=4","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-07-29T12:55:10Z","pushed_at":"2017-08-02T13:51:53Z","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":104657,"stargazers_count":315,"watchers_count":315,"language":"Perl","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":167,"mirror_url":null,"open_issues_count":240,"forks":167,"open_issues":240,"watchers":315,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mysociety/fixmystreet/pulls/1779"},"html":{"href":"https://github.com/mysociety/fixmystreet/pull/1779"},"issue":{"href":"https://api.github.com/repos/mysociety/fixmystreet/issues/1779"},"comments":{"href":"https://api.github.com/repos/mysociety/fixmystreet/issues/1779/comments"},"review_comments":{"href":"https://api.github.com/repos/mysociety/fixmystreet/pulls/1779/comments"},"review_comment":{"href":"https://api.github.com/repos/mysociety/fixmystreet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mysociety/fixmystreet/pulls/1779/commits"},"statuses":{"href":"https://api.github.com/repos/mysociety/fixmystreet/statuses/379af19411cff640791046d98018172537b03aa1"}}}}
{"actor":{"display_login":"dracos"}}