{"action":"opened","number":64,"pull_request":{"url":"https://api.github.com/repos/markolson/linkbot/pulls/64","id":35018274,"html_url":"https://github.com/markolson/linkbot/pull/64","diff_url":"https://github.com/markolson/linkbot/pull/64.diff","patch_url":"https://github.com/markolson/linkbot/pull/64.patch","issue_url":"https://api.github.com/repos/markolson/linkbot/issues/64","number":64,"state":"open","locked":false,"title":"Ensure image URLs returned end with a graphic extension","user":{"login":"robbkidd","id":517302,"avatar_url":"https://avatars.githubusercontent.com/u/517302?v=3","gravatar_id":"","url":"https://api.github.com/users/robbkidd","html_url":"https://github.com/robbkidd","followers_url":"https://api.github.com/users/robbkidd/followers","following_url":"https://api.github.com/users/robbkidd/following{/other_user}","gists_url":"https://api.github.com/users/robbkidd/gists{/gist_id}","starred_url":"https://api.github.com/users/robbkidd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbkidd/subscriptions","organizations_url":"https://api.github.com/users/robbkidd/orgs","repos_url":"https://api.github.com/users/robbkidd/repos","events_url":"https://api.github.com/users/robbkidd/events{/privacy}","received_events_url":"https://api.github.com/users/robbkidd/received_events","type":"User","site_admin":false},"body":"Lifted liberally from [hubot's Google image search](https://github.com/hubot-scripts/hubot-google-images/blob/v0.1.4/src/google-images.coffee#L46-L51). Blindly appends\r\na graphic extension to a URL if it does not end in one so that chat\r\nclients attempt to treat the URL as a graphic.\r\n\r\nDoes not solve the problem of Google returning a URL with junk at the\r\nend that causes the real site to go WTF?","created_at":"2015-05-08T15:18:08Z","updated_at":"2015-05-08T15:18:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/markolson/linkbot/pulls/64/commits","review_comments_url":"https://api.github.com/repos/markolson/linkbot/pulls/64/comments","review_comment_url":"https://api.github.com/repos/markolson/linkbot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/markolson/linkbot/issues/64/comments","statuses_url":"https://api.github.com/repos/markolson/linkbot/statuses/d55e563fcedcb82b83336d3c472cf51178343f6a","head":{"label":"robbkidd:ensure-image-extension","ref":"ensure-image-extension","sha":"d55e563fcedcb82b83336d3c472cf51178343f6a","user":{"login":"robbkidd","id":517302,"avatar_url":"https://avatars.githubusercontent.com/u/517302?v=3","gravatar_id":"","url":"https://api.github.com/users/robbkidd","html_url":"https://github.com/robbkidd","followers_url":"https://api.github.com/users/robbkidd/followers","following_url":"https://api.github.com/users/robbkidd/following{/other_user}","gists_url":"https://api.github.com/users/robbkidd/gists{/gist_id}","starred_url":"https://api.github.com/users/robbkidd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbkidd/subscriptions","organizations_url":"https://api.github.com/users/robbkidd/orgs","repos_url":"https://api.github.com/users/robbkidd/repos","events_url":"https://api.github.com/users/robbkidd/events{/privacy}","received_events_url":"https://api.github.com/users/robbkidd/received_events","type":"User","site_admin":false},"repo":{"id":7263989,"name":"linkbot","full_name":"robbkidd/linkbot","owner":{"login":"robbkidd","id":517302,"avatar_url":"https://avatars.githubusercontent.com/u/517302?v=3","gravatar_id":"","url":"https://api.github.com/users/robbkidd","html_url":"https://github.com/robbkidd","followers_url":"https://api.github.com/users/robbkidd/followers","following_url":"https://api.github.com/users/robbkidd/following{/other_user}","gists_url":"https://api.github.com/users/robbkidd/gists{/gist_id}","starred_url":"https://api.github.com/users/robbkidd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbkidd/subscriptions","organizations_url":"https://api.github.com/users/robbkidd/orgs","repos_url":"https://api.github.com/users/robbkidd/repos","events_url":"https://api.github.com/users/robbkidd/events{/privacy}","received_events_url":"https://api.github.com/users/robbkidd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/robbkidd/linkbot","description":"pluggable ruby chatbot for campfire","fork":true,"url":"https://api.github.com/repos/robbkidd/linkbot","forks_url":"https://api.github.com/repos/robbkidd/linkbot/forks","keys_url":"https://api.github.com/repos/robbkidd/linkbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robbkidd/linkbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robbkidd/linkbot/teams","hooks_url":"https://api.github.com/repos/robbkidd/linkbot/hooks","issue_events_url":"https://api.github.com/repos/robbkidd/linkbot/issues/events{/number}","events_url":"https://api.github.com/repos/robbkidd/linkbot/events","assignees_url":"https://api.github.com/repos/robbkidd/linkbot/assignees{/user}","branches_url":"https://api.github.com/repos/robbkidd/linkbot/branches{/branch}","tags_url":"https://api.github.com/repos/robbkidd/linkbot/tags","blobs_url":"https://api.github.com/repos/robbkidd/linkbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robbkidd/linkbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robbkidd/linkbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/robbkidd/linkbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robbkidd/linkbot/statuses/{sha}","languages_url":"https://api.github.com/repos/robbkidd/linkbot/languages","stargazers_url":"https://api.github.com/repos/robbkidd/linkbot/stargazers","contributors_url":"https://api.github.com/repos/robbkidd/linkbot/contributors","subscribers_url":"https://api.github.com/repos/robbkidd/linkbot/subscribers","subscription_url":"https://api.github.com/repos/robbkidd/linkbot/subscription","commits_url":"https://api.github.com/repos/robbkidd/linkbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/robbkidd/linkbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/robbkidd/linkbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/robbkidd/linkbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/robbkidd/linkbot/contents/{+path}","compare_url":"https://api.github.com/repos/robbkidd/linkbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robbkidd/linkbot/merges","archive_url":"https://api.github.com/repos/robbkidd/linkbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robbkidd/linkbot/downloads","issues_url":"https://api.github.com/repos/robbkidd/linkbot/issues{/number}","pulls_url":"https://api.github.com/repos/robbkidd/linkbot/pulls{/number}","milestones_url":"https://api.github.com/repos/robbkidd/linkbot/milestones{/number}","notifications_url":"https://api.github.com/repos/robbkidd/linkbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robbkidd/linkbot/labels{/name}","releases_url":"https://api.github.com/repos/robbkidd/linkbot/releases{/id}","created_at":"2012-12-20T20:41:55Z","updated_at":"2014-02-19T18:53:10Z","pushed_at":"2015-05-08T15:10:41Z","git_url":"git://github.com/robbkidd/linkbot.git","ssh_url":"git@github.com:robbkidd/linkbot.git","clone_url":"https://github.com/robbkidd/linkbot.git","svn_url":"https://github.com/robbkidd/linkbot","homepage":"","size":633,"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":"markolson:master","ref":"master","sha":"ac60c2a3b35b8ea0e0536c605e31cf5545370e66","user":{"login":"markolson","id":137988,"avatar_url":"https://avatars.githubusercontent.com/u/137988?v=3","gravatar_id":"","url":"https://api.github.com/users/markolson","html_url":"https://github.com/markolson","followers_url":"https://api.github.com/users/markolson/followers","following_url":"https://api.github.com/users/markolson/following{/other_user}","gists_url":"https://api.github.com/users/markolson/gists{/gist_id}","starred_url":"https://api.github.com/users/markolson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markolson/subscriptions","organizations_url":"https://api.github.com/users/markolson/orgs","repos_url":"https://api.github.com/users/markolson/repos","events_url":"https://api.github.com/users/markolson/events{/privacy}","received_events_url":"https://api.github.com/users/markolson/received_events","type":"User","site_admin":false},"repo":{"id":1348491,"name":"linkbot","full_name":"markolson/linkbot","owner":{"login":"markolson","id":137988,"avatar_url":"https://avatars.githubusercontent.com/u/137988?v=3","gravatar_id":"","url":"https://api.github.com/users/markolson","html_url":"https://github.com/markolson","followers_url":"https://api.github.com/users/markolson/followers","following_url":"https://api.github.com/users/markolson/following{/other_user}","gists_url":"https://api.github.com/users/markolson/gists{/gist_id}","starred_url":"https://api.github.com/users/markolson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markolson/subscriptions","organizations_url":"https://api.github.com/users/markolson/orgs","repos_url":"https://api.github.com/users/markolson/repos","events_url":"https://api.github.com/users/markolson/events{/privacy}","received_events_url":"https://api.github.com/users/markolson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/markolson/linkbot","description":"pluggable ruby chatbot for campfire","fork":false,"url":"https://api.github.com/repos/markolson/linkbot","forks_url":"https://api.github.com/repos/markolson/linkbot/forks","keys_url":"https://api.github.com/repos/markolson/linkbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/markolson/linkbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/markolson/linkbot/teams","hooks_url":"https://api.github.com/repos/markolson/linkbot/hooks","issue_events_url":"https://api.github.com/repos/markolson/linkbot/issues/events{/number}","events_url":"https://api.github.com/repos/markolson/linkbot/events","assignees_url":"https://api.github.com/repos/markolson/linkbot/assignees{/user}","branches_url":"https://api.github.com/repos/markolson/linkbot/branches{/branch}","tags_url":"https://api.github.com/repos/markolson/linkbot/tags","blobs_url":"https://api.github.com/repos/markolson/linkbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/markolson/linkbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/markolson/linkbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/markolson/linkbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/markolson/linkbot/statuses/{sha}","languages_url":"https://api.github.com/repos/markolson/linkbot/languages","stargazers_url":"https://api.github.com/repos/markolson/linkbot/stargazers","contributors_url":"https://api.github.com/repos/markolson/linkbot/contributors","subscribers_url":"https://api.github.com/repos/markolson/linkbot/subscribers","subscription_url":"https://api.github.com/repos/markolson/linkbot/subscription","commits_url":"https://api.github.com/repos/markolson/linkbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/markolson/linkbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/markolson/linkbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/markolson/linkbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/markolson/linkbot/contents/{+path}","compare_url":"https://api.github.com/repos/markolson/linkbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/markolson/linkbot/merges","archive_url":"https://api.github.com/repos/markolson/linkbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/markolson/linkbot/downloads","issues_url":"https://api.github.com/repos/markolson/linkbot/issues{/number}","pulls_url":"https://api.github.com/repos/markolson/linkbot/pulls{/number}","milestones_url":"https://api.github.com/repos/markolson/linkbot/milestones{/number}","notifications_url":"https://api.github.com/repos/markolson/linkbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/markolson/linkbot/labels{/name}","releases_url":"https://api.github.com/repos/markolson/linkbot/releases{/id}","created_at":"2011-02-09T22:44:39Z","updated_at":"2015-04-29T19:08:14Z","pushed_at":"2015-04-29T19:08:14Z","git_url":"git://github.com/markolson/linkbot.git","ssh_url":"git@github.com:markolson/linkbot.git","clone_url":"https://github.com/markolson/linkbot.git","svn_url":"https://github.com/markolson/linkbot","homepage":"","size":1261,"stargazers_count":22,"watchers_count":22,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":9,"forks":18,"open_issues":9,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/markolson/linkbot/pulls/64"},"html":{"href":"https://github.com/markolson/linkbot/pull/64"},"issue":{"href":"https://api.github.com/repos/markolson/linkbot/issues/64"},"comments":{"href":"https://api.github.com/repos/markolson/linkbot/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/markolson/linkbot/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/markolson/linkbot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/markolson/linkbot/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/markolson/linkbot/statuses/d55e563fcedcb82b83336d3c472cf51178343f6a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":10,"deletions":1,"changed_files":1}}