{"action":"opened","number":74,"pull_request":{"url":"https://api.github.com/repos/openregister/register/pulls/74","id":36645560,"html_url":"https://github.com/openregister/register/pull/74","diff_url":"https://github.com/openregister/register/pull/74.diff","patch_url":"https://github.com/openregister/register/pull/74.patch","issue_url":"https://api.github.com/repos/openregister/register/issues/74","number":74,"state":"open","locked":false,"title":"Tell google which URL for a resource is canonical","user":{"login":"philandstuff","id":581269,"avatar_url":"https://avatars.githubusercontent.com/u/581269?v=3","gravatar_id":"","url":"https://api.github.com/users/philandstuff","html_url":"https://github.com/philandstuff","followers_url":"https://api.github.com/users/philandstuff/followers","following_url":"https://api.github.com/users/philandstuff/following{/other_user}","gists_url":"https://api.github.com/users/philandstuff/gists{/gist_id}","starred_url":"https://api.github.com/users/philandstuff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philandstuff/subscriptions","organizations_url":"https://api.github.com/users/philandstuff/orgs","repos_url":"https://api.github.com/users/philandstuff/repos","events_url":"https://api.github.com/users/philandstuff/events{/privacy}","received_events_url":"https://api.github.com/users/philandstuff/received_events","type":"User","site_admin":false},"body":"This adds a Link: header to tell google and other crawlers which url is\r\nthe canonical URL for a resource.  RFC5988 defines the Link: header, and\r\nhttps://support.google.com/webmasters/answer/139066?hl=en gives a good\r\nsummary of using it to define canonical URLs.\r\n\r\nThis makes it so that:\r\n\r\n    /hash/abcd.json\r\n\r\nsets a header\r\n\r\n    Link: </hash/abcd> rel=\"canonical\"\r\n\r\nand\r\n\r\n    /key1/value1.json\r\n\r\nsets a header\r\n\r\n    Link: </key1/value1> rel=\"canonical\"\r\n\r\nThis works for all representations as it's done at the Rest level.","created_at":"2015-06-01T16:24:27Z","updated_at":"2015-06-01T16:24:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openregister/register/pulls/74/commits","review_comments_url":"https://api.github.com/repos/openregister/register/pulls/74/comments","review_comment_url":"https://api.github.com/repos/openregister/register/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openregister/register/issues/74/comments","statuses_url":"https://api.github.com/repos/openregister/register/statuses/3d86f703fa32f02c0fda443f5007ba846ebeaba4","head":{"label":"openregister:add-canonical-url-link-headers","ref":"add-canonical-url-link-headers","sha":"3d86f703fa32f02c0fda443f5007ba846ebeaba4","user":{"login":"openregister","id":10206003,"avatar_url":"https://avatars.githubusercontent.com/u/10206003?v=3","gravatar_id":"","url":"https://api.github.com/users/openregister","html_url":"https://github.com/openregister","followers_url":"https://api.github.com/users/openregister/followers","following_url":"https://api.github.com/users/openregister/following{/other_user}","gists_url":"https://api.github.com/users/openregister/gists{/gist_id}","starred_url":"https://api.github.com/users/openregister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openregister/subscriptions","organizations_url":"https://api.github.com/users/openregister/orgs","repos_url":"https://api.github.com/users/openregister/repos","events_url":"https://api.github.com/users/openregister/events{/privacy}","received_events_url":"https://api.github.com/users/openregister/received_events","type":"Organization","site_admin":false},"repo":{"id":33663034,"name":"register","full_name":"openregister/register","owner":{"login":"openregister","id":10206003,"avatar_url":"https://avatars.githubusercontent.com/u/10206003?v=3","gravatar_id":"","url":"https://api.github.com/users/openregister","html_url":"https://github.com/openregister","followers_url":"https://api.github.com/users/openregister/followers","following_url":"https://api.github.com/users/openregister/following{/other_user}","gists_url":"https://api.github.com/users/openregister/gists{/gist_id}","starred_url":"https://api.github.com/users/openregister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openregister/subscriptions","organizations_url":"https://api.github.com/users/openregister/orgs","repos_url":"https://api.github.com/users/openregister/repos","events_url":"https://api.github.com/users/openregister/events{/privacy}","received_events_url":"https://api.github.com/users/openregister/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openregister/register","description":"Java/play application for hosting an open register","fork":false,"url":"https://api.github.com/repos/openregister/register","forks_url":"https://api.github.com/repos/openregister/register/forks","keys_url":"https://api.github.com/repos/openregister/register/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openregister/register/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openregister/register/teams","hooks_url":"https://api.github.com/repos/openregister/register/hooks","issue_events_url":"https://api.github.com/repos/openregister/register/issues/events{/number}","events_url":"https://api.github.com/repos/openregister/register/events","assignees_url":"https://api.github.com/repos/openregister/register/assignees{/user}","branches_url":"https://api.github.com/repos/openregister/register/branches{/branch}","tags_url":"https://api.github.com/repos/openregister/register/tags","blobs_url":"https://api.github.com/repos/openregister/register/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openregister/register/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openregister/register/git/refs{/sha}","trees_url":"https://api.github.com/repos/openregister/register/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openregister/register/statuses/{sha}","languages_url":"https://api.github.com/repos/openregister/register/languages","stargazers_url":"https://api.github.com/repos/openregister/register/stargazers","contributors_url":"https://api.github.com/repos/openregister/register/contributors","subscribers_url":"https://api.github.com/repos/openregister/register/subscribers","subscription_url":"https://api.github.com/repos/openregister/register/subscription","commits_url":"https://api.github.com/repos/openregister/register/commits{/sha}","git_commits_url":"https://api.github.com/repos/openregister/register/git/commits{/sha}","comments_url":"https://api.github.com/repos/openregister/register/comments{/number}","issue_comment_url":"https://api.github.com/repos/openregister/register/issues/comments{/number}","contents_url":"https://api.github.com/repos/openregister/register/contents/{+path}","compare_url":"https://api.github.com/repos/openregister/register/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openregister/register/merges","archive_url":"https://api.github.com/repos/openregister/register/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openregister/register/downloads","issues_url":"https://api.github.com/repos/openregister/register/issues{/number}","pulls_url":"https://api.github.com/repos/openregister/register/pulls{/number}","milestones_url":"https://api.github.com/repos/openregister/register/milestones{/number}","notifications_url":"https://api.github.com/repos/openregister/register/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openregister/register/labels{/name}","releases_url":"https://api.github.com/repos/openregister/register/releases{/id}","created_at":"2015-04-09T10:30:18Z","updated_at":"2015-05-16T09:16:14Z","pushed_at":"2015-06-01T16:24:17Z","git_url":"git://github.com/openregister/register.git","ssh_url":"git@github.com:openregister/register.git","clone_url":"https://github.com/openregister/register.git","svn_url":"https://github.com/openregister/register","homepage":"","size":3976,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"openregister:master","ref":"master","sha":"853239700a374cde62d129a0678d5d452e004635","user":{"login":"openregister","id":10206003,"avatar_url":"https://avatars.githubusercontent.com/u/10206003?v=3","gravatar_id":"","url":"https://api.github.com/users/openregister","html_url":"https://github.com/openregister","followers_url":"https://api.github.com/users/openregister/followers","following_url":"https://api.github.com/users/openregister/following{/other_user}","gists_url":"https://api.github.com/users/openregister/gists{/gist_id}","starred_url":"https://api.github.com/users/openregister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openregister/subscriptions","organizations_url":"https://api.github.com/users/openregister/orgs","repos_url":"https://api.github.com/users/openregister/repos","events_url":"https://api.github.com/users/openregister/events{/privacy}","received_events_url":"https://api.github.com/users/openregister/received_events","type":"Organization","site_admin":false},"repo":{"id":33663034,"name":"register","full_name":"openregister/register","owner":{"login":"openregister","id":10206003,"avatar_url":"https://avatars.githubusercontent.com/u/10206003?v=3","gravatar_id":"","url":"https://api.github.com/users/openregister","html_url":"https://github.com/openregister","followers_url":"https://api.github.com/users/openregister/followers","following_url":"https://api.github.com/users/openregister/following{/other_user}","gists_url":"https://api.github.com/users/openregister/gists{/gist_id}","starred_url":"https://api.github.com/users/openregister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openregister/subscriptions","organizations_url":"https://api.github.com/users/openregister/orgs","repos_url":"https://api.github.com/users/openregister/repos","events_url":"https://api.github.com/users/openregister/events{/privacy}","received_events_url":"https://api.github.com/users/openregister/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openregister/register","description":"Java/play application for hosting an open register","fork":false,"url":"https://api.github.com/repos/openregister/register","forks_url":"https://api.github.com/repos/openregister/register/forks","keys_url":"https://api.github.com/repos/openregister/register/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openregister/register/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openregister/register/teams","hooks_url":"https://api.github.com/repos/openregister/register/hooks","issue_events_url":"https://api.github.com/repos/openregister/register/issues/events{/number}","events_url":"https://api.github.com/repos/openregister/register/events","assignees_url":"https://api.github.com/repos/openregister/register/assignees{/user}","branches_url":"https://api.github.com/repos/openregister/register/branches{/branch}","tags_url":"https://api.github.com/repos/openregister/register/tags","blobs_url":"https://api.github.com/repos/openregister/register/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openregister/register/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openregister/register/git/refs{/sha}","trees_url":"https://api.github.com/repos/openregister/register/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openregister/register/statuses/{sha}","languages_url":"https://api.github.com/repos/openregister/register/languages","stargazers_url":"https://api.github.com/repos/openregister/register/stargazers","contributors_url":"https://api.github.com/repos/openregister/register/contributors","subscribers_url":"https://api.github.com/repos/openregister/register/subscribers","subscription_url":"https://api.github.com/repos/openregister/register/subscription","commits_url":"https://api.github.com/repos/openregister/register/commits{/sha}","git_commits_url":"https://api.github.com/repos/openregister/register/git/commits{/sha}","comments_url":"https://api.github.com/repos/openregister/register/comments{/number}","issue_comment_url":"https://api.github.com/repos/openregister/register/issues/comments{/number}","contents_url":"https://api.github.com/repos/openregister/register/contents/{+path}","compare_url":"https://api.github.com/repos/openregister/register/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openregister/register/merges","archive_url":"https://api.github.com/repos/openregister/register/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openregister/register/downloads","issues_url":"https://api.github.com/repos/openregister/register/issues{/number}","pulls_url":"https://api.github.com/repos/openregister/register/pulls{/number}","milestones_url":"https://api.github.com/repos/openregister/register/milestones{/number}","notifications_url":"https://api.github.com/repos/openregister/register/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openregister/register/labels{/name}","releases_url":"https://api.github.com/repos/openregister/register/releases{/id}","created_at":"2015-04-09T10:30:18Z","updated_at":"2015-05-16T09:16:14Z","pushed_at":"2015-06-01T16:24:17Z","git_url":"git://github.com/openregister/register.git","ssh_url":"git@github.com:openregister/register.git","clone_url":"https://github.com/openregister/register.git","svn_url":"https://github.com/openregister/register","homepage":"","size":3976,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openregister/register/pulls/74"},"html":{"href":"https://github.com/openregister/register/pull/74"},"issue":{"href":"https://api.github.com/repos/openregister/register/issues/74"},"comments":{"href":"https://api.github.com/repos/openregister/register/issues/74/comments"},"review_comments":{"href":"https://api.github.com/repos/openregister/register/pulls/74/comments"},"review_comment":{"href":"https://api.github.com/repos/openregister/register/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openregister/register/pulls/74/commits"},"statuses":{"href":"https://api.github.com/repos/openregister/register/statuses/3d86f703fa32f02c0fda443f5007ba846ebeaba4"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":8,"deletions":0,"changed_files":2}}