{"action":"created","comment":{"url":"https://api.github.com/repos/hypothesis/h/pulls/comments/29670711","id":29670711,"diff_hunk":"@@ -0,0 +1,27 @@\n+###*\n+# @ngdoc directive\n+# @name viaLinkDialog\n+# @restrict A\n+# @description The dialog that generates a via link to the page h is currently\n+# loaded on.\n+###\n+module.exports = ['$timeout', 'crossframe', ($timeout, crossframe) ->\n+    viaUrl = 'https://via.hypothes.is/h/'","path":"h/static/scripts/directive/via-dialog.coffee","position":9,"original_position":9,"commit_id":"af8b1832fd646c6e0dcb18e383c302e523b4c854","original_commit_id":"af8b1832fd646c6e0dcb18e383c302e523b4c854","user":{"login":"csillag","id":2093792,"avatar_url":"https://avatars.githubusercontent.com/u/2093792?v=3","gravatar_id":"","url":"https://api.github.com/users/csillag","html_url":"https://github.com/csillag","followers_url":"https://api.github.com/users/csillag/followers","following_url":"https://api.github.com/users/csillag/following{/other_user}","gists_url":"https://api.github.com/users/csillag/gists{/gist_id}","starred_url":"https://api.github.com/users/csillag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csillag/subscriptions","organizations_url":"https://api.github.com/users/csillag/orgs","repos_url":"https://api.github.com/users/csillag/repos","events_url":"https://api.github.com/users/csillag/events{/privacy}","received_events_url":"https://api.github.com/users/csillag/received_events","type":"User","site_admin":false},"body":"The server side needs to take the URI from somewhere, too.\r\n\r\nIt's impossible to generate it from the server's main URL, since the VIA deployment is a separate thing.\r\n\r\nSo we still need an entry in the config file.","created_at":"2015-05-05T14:05:34Z","updated_at":"2015-05-05T14:05:34Z","html_url":"https://github.com/hypothesis/h/pull/2012#discussion_r29670711","pull_request_url":"https://api.github.com/repos/hypothesis/h/pulls/2012","_links":{"self":{"href":"https://api.github.com/repos/hypothesis/h/pulls/comments/29670711"},"html":{"href":"https://github.com/hypothesis/h/pull/2012#discussion_r29670711"},"pull_request":{"href":"https://api.github.com/repos/hypothesis/h/pulls/2012"}}},"pull_request":{"url":"https://api.github.com/repos/hypothesis/h/pulls/2012","id":30802621,"html_url":"https://github.com/hypothesis/h/pull/2012","diff_url":"https://github.com/hypothesis/h/pull/2012.diff","patch_url":"https://github.com/hypothesis/h/pull/2012.patch","issue_url":"https://api.github.com/repos/hypothesis/h/issues/2012","number":2012,"state":"open","locked":false,"title":"Add ability to generate via links from the sidebar.","user":{"login":"RawKStar77","id":521978,"avatar_url":"https://avatars.githubusercontent.com/u/521978?v=3","gravatar_id":"","url":"https://api.github.com/users/RawKStar77","html_url":"https://github.com/RawKStar77","followers_url":"https://api.github.com/users/RawKStar77/followers","following_url":"https://api.github.com/users/RawKStar77/following{/other_user}","gists_url":"https://api.github.com/users/RawKStar77/gists{/gist_id}","starred_url":"https://api.github.com/users/RawKStar77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RawKStar77/subscriptions","organizations_url":"https://api.github.com/users/RawKStar77/orgs","repos_url":"https://api.github.com/users/RawKStar77/repos","events_url":"https://api.github.com/users/RawKStar77/events{/privacy}","received_events_url":"https://api.github.com/users/RawKStar77/received_events","type":"User","site_admin":false},"body":"This PR adds the ability to generate via links from the sidebar. It is available when clicking \"Share this page\" inside the username menu:\r\n![selection_017](https://cloud.githubusercontent.com/assets/521978/6564935/a01b876a-c669-11e4-97d2-d81cba7102d0.png)\r\n\r\nIt then shows a dialogue with the link selected and a short set of instructions:\r\n![selection_016](https://cloud.githubusercontent.com/assets/521978/6564951/bc4cdfc4-c669-11e4-9b46-b85fa9400dfa.png)\r\n\r\n","created_at":"2015-03-09T21:37:17Z","updated_at":"2015-05-05T14:05:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"74f4307a49f398cb888efc2b8e8bca0ac1bcd93c","assignee":null,"milestone":{"url":"https://api.github.com/repos/hypothesis/h/milestones/15","html_url":"https://github.com/hypothesis/h/milestones/05-04-2015","labels_url":"https://api.github.com/repos/hypothesis/h/milestones/15/labels","id":1087794,"number":15,"title":"05-04-2015","description":"","creator":{"login":"judell","id":46509,"avatar_url":"https://avatars.githubusercontent.com/u/46509?v=3","gravatar_id":"","url":"https://api.github.com/users/judell","html_url":"https://github.com/judell","followers_url":"https://api.github.com/users/judell/followers","following_url":"https://api.github.com/users/judell/following{/other_user}","gists_url":"https://api.github.com/users/judell/gists{/gist_id}","starred_url":"https://api.github.com/users/judell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/judell/subscriptions","organizations_url":"https://api.github.com/users/judell/orgs","repos_url":"https://api.github.com/users/judell/repos","events_url":"https://api.github.com/users/judell/events{/privacy}","received_events_url":"https://api.github.com/users/judell/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":12,"state":"open","created_at":"2015-04-28T16:07:56Z","updated_at":"2015-05-05T00:32:19Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/hypothesis/h/pulls/2012/commits","review_comments_url":"https://api.github.com/repos/hypothesis/h/pulls/2012/comments","review_comment_url":"https://api.github.com/repos/hypothesis/h/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hypothesis/h/issues/2012/comments","statuses_url":"https://api.github.com/repos/hypothesis/h/statuses/af8b1832fd646c6e0dcb18e383c302e523b4c854","head":{"label":"hypothesis:via","ref":"via","sha":"af8b1832fd646c6e0dcb18e383c302e523b4c854","user":{"login":"hypothesis","id":1243215,"avatar_url":"https://avatars.githubusercontent.com/u/1243215?v=3","gravatar_id":"","url":"https://api.github.com/users/hypothesis","html_url":"https://github.com/hypothesis","followers_url":"https://api.github.com/users/hypothesis/followers","following_url":"https://api.github.com/users/hypothesis/following{/other_user}","gists_url":"https://api.github.com/users/hypothesis/gists{/gist_id}","starred_url":"https://api.github.com/users/hypothesis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hypothesis/subscriptions","organizations_url":"https://api.github.com/users/hypothesis/orgs","repos_url":"https://api.github.com/users/hypothesis/repos","events_url":"https://api.github.com/users/hypothesis/events{/privacy}","received_events_url":"https://api.github.com/users/hypothesis/received_events","type":"Organization","site_admin":false},"repo":{"id":3910945,"name":"h","full_name":"hypothesis/h","owner":{"login":"hypothesis","id":1243215,"avatar_url":"https://avatars.githubusercontent.com/u/1243215?v=3","gravatar_id":"","url":"https://api.github.com/users/hypothesis","html_url":"https://github.com/hypothesis","followers_url":"https://api.github.com/users/hypothesis/followers","following_url":"https://api.github.com/users/hypothesis/following{/other_user}","gists_url":"https://api.github.com/users/hypothesis/gists{/gist_id}","starred_url":"https://api.github.com/users/hypothesis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hypothesis/subscriptions","organizations_url":"https://api.github.com/users/hypothesis/orgs","repos_url":"https://api.github.com/users/hypothesis/repos","events_url":"https://api.github.com/users/hypothesis/events{/privacy}","received_events_url":"https://api.github.com/users/hypothesis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hypothesis/h","description":"The Internet, peer reviewed.","fork":false,"url":"https://api.github.com/repos/hypothesis/h","forks_url":"https://api.github.com/repos/hypothesis/h/forks","keys_url":"https://api.github.com/repos/hypothesis/h/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hypothesis/h/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hypothesis/h/teams","hooks_url":"https://api.github.com/repos/hypothesis/h/hooks","issue_events_url":"https://api.github.com/repos/hypothesis/h/issues/events{/number}","events_url":"https://api.github.com/repos/hypothesis/h/events","assignees_url":"https://api.github.com/repos/hypothesis/h/assignees{/user}","branches_url":"https://api.github.com/repos/hypothesis/h/branches{/branch}","tags_url":"https://api.github.com/repos/hypothesis/h/tags","blobs_url":"https://api.github.com/repos/hypothesis/h/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hypothesis/h/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hypothesis/h/git/refs{/sha}","trees_url":"https://api.github.com/repos/hypothesis/h/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hypothesis/h/statuses/{sha}","languages_url":"https://api.github.com/repos/hypothesis/h/languages","stargazers_url":"https://api.github.com/repos/hypothesis/h/stargazers","contributors_url":"https://api.github.com/repos/hypothesis/h/contributors","subscribers_url":"https://api.github.com/repos/hypothesis/h/subscribers","subscription_url":"https://api.github.com/repos/hypothesis/h/subscription","commits_url":"https://api.github.com/repos/hypothesis/h/commits{/sha}","git_commits_url":"https://api.github.com/repos/hypothesis/h/git/commits{/sha}","comments_url":"https://api.github.com/repos/hypothesis/h/comments{/number}","issue_comment_url":"https://api.github.com/repos/hypothesis/h/issues/comments{/number}","contents_url":"https://api.github.com/repos/hypothesis/h/contents/{+path}","compare_url":"https://api.github.com/repos/hypothesis/h/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hypothesis/h/merges","archive_url":"https://api.github.com/repos/hypothesis/h/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hypothesis/h/downloads","issues_url":"https://api.github.com/repos/hypothesis/h/issues{/number}","pulls_url":"https://api.github.com/repos/hypothesis/h/pulls{/number}","milestones_url":"https://api.github.com/repos/hypothesis/h/milestones{/number}","notifications_url":"https://api.github.com/repos/hypothesis/h/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hypothesis/h/labels{/name}","releases_url":"https://api.github.com/repos/hypothesis/h/releases{/id}","created_at":"2012-04-02T19:56:59Z","updated_at":"2015-05-05T14:05:19Z","pushed_at":"2015-05-05T14:05:22Z","git_url":"git://github.com/hypothesis/h.git","ssh_url":"git@github.com:hypothesis/h.git","clone_url":"https://github.com/hypothesis/h.git","svn_url":"https://github.com/hypothesis/h","homepage":"https://hypothes.is/","size":48112,"stargazers_count":433,"watchers_count":433,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":105,"mirror_url":null,"open_issues_count":167,"forks":105,"open_issues":167,"watchers":433,"default_branch":"master"}},"base":{"label":"hypothesis:master","ref":"master","sha":"b43bc408a33e7b777ce7dc7f0422b9ec0a893837","user":{"login":"hypothesis","id":1243215,"avatar_url":"https://avatars.githubusercontent.com/u/1243215?v=3","gravatar_id":"","url":"https://api.github.com/users/hypothesis","html_url":"https://github.com/hypothesis","followers_url":"https://api.github.com/users/hypothesis/followers","following_url":"https://api.github.com/users/hypothesis/following{/other_user}","gists_url":"https://api.github.com/users/hypothesis/gists{/gist_id}","starred_url":"https://api.github.com/users/hypothesis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hypothesis/subscriptions","organizations_url":"https://api.github.com/users/hypothesis/orgs","repos_url":"https://api.github.com/users/hypothesis/repos","events_url":"https://api.github.com/users/hypothesis/events{/privacy}","received_events_url":"https://api.github.com/users/hypothesis/received_events","type":"Organization","site_admin":false},"repo":{"id":3910945,"name":"h","full_name":"hypothesis/h","owner":{"login":"hypothesis","id":1243215,"avatar_url":"https://avatars.githubusercontent.com/u/1243215?v=3","gravatar_id":"","url":"https://api.github.com/users/hypothesis","html_url":"https://github.com/hypothesis","followers_url":"https://api.github.com/users/hypothesis/followers","following_url":"https://api.github.com/users/hypothesis/following{/other_user}","gists_url":"https://api.github.com/users/hypothesis/gists{/gist_id}","starred_url":"https://api.github.com/users/hypothesis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hypothesis/subscriptions","organizations_url":"https://api.github.com/users/hypothesis/orgs","repos_url":"https://api.github.com/users/hypothesis/repos","events_url":"https://api.github.com/users/hypothesis/events{/privacy}","received_events_url":"https://api.github.com/users/hypothesis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hypothesis/h","description":"The Internet, peer reviewed.","fork":false,"url":"https://api.github.com/repos/hypothesis/h","forks_url":"https://api.github.com/repos/hypothesis/h/forks","keys_url":"https://api.github.com/repos/hypothesis/h/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hypothesis/h/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hypothesis/h/teams","hooks_url":"https://api.github.com/repos/hypothesis/h/hooks","issue_events_url":"https://api.github.com/repos/hypothesis/h/issues/events{/number}","events_url":"https://api.github.com/repos/hypothesis/h/events","assignees_url":"https://api.github.com/repos/hypothesis/h/assignees{/user}","branches_url":"https://api.github.com/repos/hypothesis/h/branches{/branch}","tags_url":"https://api.github.com/repos/hypothesis/h/tags","blobs_url":"https://api.github.com/repos/hypothesis/h/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hypothesis/h/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hypothesis/h/git/refs{/sha}","trees_url":"https://api.github.com/repos/hypothesis/h/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hypothesis/h/statuses/{sha}","languages_url":"https://api.github.com/repos/hypothesis/h/languages","stargazers_url":"https://api.github.com/repos/hypothesis/h/stargazers","contributors_url":"https://api.github.com/repos/hypothesis/h/contributors","subscribers_url":"https://api.github.com/repos/hypothesis/h/subscribers","subscription_url":"https://api.github.com/repos/hypothesis/h/subscription","commits_url":"https://api.github.com/repos/hypothesis/h/commits{/sha}","git_commits_url":"https://api.github.com/repos/hypothesis/h/git/commits{/sha}","comments_url":"https://api.github.com/repos/hypothesis/h/comments{/number}","issue_comment_url":"https://api.github.com/repos/hypothesis/h/issues/comments{/number}","contents_url":"https://api.github.com/repos/hypothesis/h/contents/{+path}","compare_url":"https://api.github.com/repos/hypothesis/h/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hypothesis/h/merges","archive_url":"https://api.github.com/repos/hypothesis/h/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hypothesis/h/downloads","issues_url":"https://api.github.com/repos/hypothesis/h/issues{/number}","pulls_url":"https://api.github.com/repos/hypothesis/h/pulls{/number}","milestones_url":"https://api.github.com/repos/hypothesis/h/milestones{/number}","notifications_url":"https://api.github.com/repos/hypothesis/h/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hypothesis/h/labels{/name}","releases_url":"https://api.github.com/repos/hypothesis/h/releases{/id}","created_at":"2012-04-02T19:56:59Z","updated_at":"2015-05-05T14:05:19Z","pushed_at":"2015-05-05T14:05:22Z","git_url":"git://github.com/hypothesis/h.git","ssh_url":"git@github.com:hypothesis/h.git","clone_url":"https://github.com/hypothesis/h.git","svn_url":"https://github.com/hypothesis/h","homepage":"https://hypothes.is/","size":48112,"stargazers_count":433,"watchers_count":433,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":105,"mirror_url":null,"open_issues_count":167,"forks":105,"open_issues":167,"watchers":433,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hypothesis/h/pulls/2012"},"html":{"href":"https://github.com/hypothesis/h/pull/2012"},"issue":{"href":"https://api.github.com/repos/hypothesis/h/issues/2012"},"comments":{"href":"https://api.github.com/repos/hypothesis/h/issues/2012/comments"},"review_comments":{"href":"https://api.github.com/repos/hypothesis/h/pulls/2012/comments"},"review_comment":{"href":"https://api.github.com/repos/hypothesis/h/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hypothesis/h/pulls/2012/commits"},"statuses":{"href":"https://api.github.com/repos/hypothesis/h/statuses/af8b1832fd646c6e0dcb18e383c302e523b4c854"}}}}