{"action":"created","comment":{"url":"https://api.github.com/repos/juju/jujusvg/pulls/comments/28414072","id":28414072,"diff_hunk":"@@ -0,0 +1,120 @@\n+package jujusvg\n+\n+import (\n+\t\"fmt\"\n+\t\"net/http\"\n+\t\"net/http/httptest\"\n+\t\"strings\"\n+\n+\tgc \"gopkg.in/check.v1\"\n+\t\"gopkg.in/juju/charm.v5-unstable\"\n+)\n+\n+type IconFetcherSuite struct{}\n+\n+var _ = gc.Suite(&IconFetcherSuite{})\n+\n+var (\n+\tts        *httptest.Server\n+\ttsIconUrl func(*charm.Reference) string","path":"iconfetcher_test.go","position":19,"original_position":19,"commit_id":"1644262083dacd25354a6a6852631357b2f3131f","original_commit_id":"1644262083dacd25354a6a6852631357b2f3131f","user":{"login":"makyo","id":303761,"avatar_url":"https://avatars.githubusercontent.com/u/303761?v=3","gravatar_id":"","url":"https://api.github.com/users/makyo","html_url":"https://github.com/makyo","followers_url":"https://api.github.com/users/makyo/followers","following_url":"https://api.github.com/users/makyo/following{/other_user}","gists_url":"https://api.github.com/users/makyo/gists{/gist_id}","starred_url":"https://api.github.com/users/makyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makyo/subscriptions","organizations_url":"https://api.github.com/users/makyo/orgs","repos_url":"https://api.github.com/users/makyo/repos","events_url":"https://api.github.com/users/makyo/events{/privacy}","received_events_url":"https://api.github.com/users/makyo/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2015-04-15T12:17:51Z","updated_at":"2015-04-15T12:17:51Z","html_url":"https://github.com/juju/jujusvg/pull/23#discussion_r28414072","pull_request_url":"https://api.github.com/repos/juju/jujusvg/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/juju/jujusvg/pulls/comments/28414072"},"html":{"href":"https://github.com/juju/jujusvg/pull/23#discussion_r28414072"},"pull_request":{"href":"https://api.github.com/repos/juju/jujusvg/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/juju/jujusvg/pulls/23","id":32381074,"html_url":"https://github.com/juju/jujusvg/pull/23","diff_url":"https://github.com/juju/jujusvg/pull/23.diff","patch_url":"https://github.com/juju/jujusvg/pull/23.patch","issue_url":"https://api.github.com/repos/juju/jujusvg/issues/23","number":23,"state":"open","locked":false,"title":"Allow embedding icons within a bundle diagram","user":{"login":"makyo","id":303761,"avatar_url":"https://avatars.githubusercontent.com/u/303761?v=3","gravatar_id":"","url":"https://api.github.com/users/makyo","html_url":"https://github.com/makyo","followers_url":"https://api.github.com/users/makyo/followers","following_url":"https://api.github.com/users/makyo/following{/other_user}","gists_url":"https://api.github.com/users/makyo/gists{/gist_id}","starred_url":"https://api.github.com/users/makyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makyo/subscriptions","organizations_url":"https://api.github.com/users/makyo/orgs","repos_url":"https://api.github.com/users/makyo/repos","events_url":"https://api.github.com/users/makyo/events{/privacy}","received_events_url":"https://api.github.com/users/makyo/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-01T01:03:30Z","updated_at":"2015-04-15T12:17:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8e8b629efd6c0e85cc4c26b0b3d8f427b573585d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/juju/jujusvg/pulls/23/commits","review_comments_url":"https://api.github.com/repos/juju/jujusvg/pulls/23/comments","review_comment_url":"https://api.github.com/repos/juju/jujusvg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/juju/jujusvg/issues/23/comments","statuses_url":"https://api.github.com/repos/juju/jujusvg/statuses/1644262083dacd25354a6a6852631357b2f3131f","head":{"label":"makyo:embed-icons","ref":"embed-icons","sha":"1644262083dacd25354a6a6852631357b2f3131f","user":{"login":"makyo","id":303761,"avatar_url":"https://avatars.githubusercontent.com/u/303761?v=3","gravatar_id":"","url":"https://api.github.com/users/makyo","html_url":"https://github.com/makyo","followers_url":"https://api.github.com/users/makyo/followers","following_url":"https://api.github.com/users/makyo/following{/other_user}","gists_url":"https://api.github.com/users/makyo/gists{/gist_id}","starred_url":"https://api.github.com/users/makyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makyo/subscriptions","organizations_url":"https://api.github.com/users/makyo/orgs","repos_url":"https://api.github.com/users/makyo/repos","events_url":"https://api.github.com/users/makyo/events{/privacy}","received_events_url":"https://api.github.com/users/makyo/received_events","type":"User","site_admin":false},"repo":{"id":25603883,"name":"jujusvg","full_name":"makyo/jujusvg","owner":{"login":"makyo","id":303761,"avatar_url":"https://avatars.githubusercontent.com/u/303761?v=3","gravatar_id":"","url":"https://api.github.com/users/makyo","html_url":"https://github.com/makyo","followers_url":"https://api.github.com/users/makyo/followers","following_url":"https://api.github.com/users/makyo/following{/other_user}","gists_url":"https://api.github.com/users/makyo/gists{/gist_id}","starred_url":"https://api.github.com/users/makyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makyo/subscriptions","organizations_url":"https://api.github.com/users/makyo/orgs","repos_url":"https://api.github.com/users/makyo/repos","events_url":"https://api.github.com/users/makyo/events{/privacy}","received_events_url":"https://api.github.com/users/makyo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/makyo/jujusvg","description":"Generate svgs from Juju bundles and environment.","fork":true,"url":"https://api.github.com/repos/makyo/jujusvg","forks_url":"https://api.github.com/repos/makyo/jujusvg/forks","keys_url":"https://api.github.com/repos/makyo/jujusvg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/makyo/jujusvg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/makyo/jujusvg/teams","hooks_url":"https://api.github.com/repos/makyo/jujusvg/hooks","issue_events_url":"https://api.github.com/repos/makyo/jujusvg/issues/events{/number}","events_url":"https://api.github.com/repos/makyo/jujusvg/events","assignees_url":"https://api.github.com/repos/makyo/jujusvg/assignees{/user}","branches_url":"https://api.github.com/repos/makyo/jujusvg/branches{/branch}","tags_url":"https://api.github.com/repos/makyo/jujusvg/tags","blobs_url":"https://api.github.com/repos/makyo/jujusvg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/makyo/jujusvg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/makyo/jujusvg/git/refs{/sha}","trees_url":"https://api.github.com/repos/makyo/jujusvg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/makyo/jujusvg/statuses/{sha}","languages_url":"https://api.github.com/repos/makyo/jujusvg/languages","stargazers_url":"https://api.github.com/repos/makyo/jujusvg/stargazers","contributors_url":"https://api.github.com/repos/makyo/jujusvg/contributors","subscribers_url":"https://api.github.com/repos/makyo/jujusvg/subscribers","subscription_url":"https://api.github.com/repos/makyo/jujusvg/subscription","commits_url":"https://api.github.com/repos/makyo/jujusvg/commits{/sha}","git_commits_url":"https://api.github.com/repos/makyo/jujusvg/git/commits{/sha}","comments_url":"https://api.github.com/repos/makyo/jujusvg/comments{/number}","issue_comment_url":"https://api.github.com/repos/makyo/jujusvg/issues/comments{/number}","contents_url":"https://api.github.com/repos/makyo/jujusvg/contents/{+path}","compare_url":"https://api.github.com/repos/makyo/jujusvg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/makyo/jujusvg/merges","archive_url":"https://api.github.com/repos/makyo/jujusvg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/makyo/jujusvg/downloads","issues_url":"https://api.github.com/repos/makyo/jujusvg/issues{/number}","pulls_url":"https://api.github.com/repos/makyo/jujusvg/pulls{/number}","milestones_url":"https://api.github.com/repos/makyo/jujusvg/milestones{/number}","notifications_url":"https://api.github.com/repos/makyo/jujusvg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/makyo/jujusvg/labels{/name}","releases_url":"https://api.github.com/repos/makyo/jujusvg/releases{/id}","created_at":"2014-10-22T20:54:35Z","updated_at":"2015-03-31T21:52:25Z","pushed_at":"2015-04-06T22:19:08Z","git_url":"git://github.com/makyo/jujusvg.git","ssh_url":"git@github.com:makyo/jujusvg.git","clone_url":"https://github.com/makyo/jujusvg.git","svn_url":"https://github.com/makyo/jujusvg","homepage":null,"size":347,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"juju:master","ref":"master","sha":"0f22fd5a3521f2b4d5ca6283b24536762de0cc28","user":{"login":"juju","id":4604548,"avatar_url":"https://avatars.githubusercontent.com/u/4604548?v=3","gravatar_id":"","url":"https://api.github.com/users/juju","html_url":"https://github.com/juju","followers_url":"https://api.github.com/users/juju/followers","following_url":"https://api.github.com/users/juju/following{/other_user}","gists_url":"https://api.github.com/users/juju/gists{/gist_id}","starred_url":"https://api.github.com/users/juju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juju/subscriptions","organizations_url":"https://api.github.com/users/juju/orgs","repos_url":"https://api.github.com/users/juju/repos","events_url":"https://api.github.com/users/juju/events{/privacy}","received_events_url":"https://api.github.com/users/juju/received_events","type":"Organization","site_admin":false},"repo":{"id":22249784,"name":"jujusvg","full_name":"juju/jujusvg","owner":{"login":"juju","id":4604548,"avatar_url":"https://avatars.githubusercontent.com/u/4604548?v=3","gravatar_id":"","url":"https://api.github.com/users/juju","html_url":"https://github.com/juju","followers_url":"https://api.github.com/users/juju/followers","following_url":"https://api.github.com/users/juju/following{/other_user}","gists_url":"https://api.github.com/users/juju/gists{/gist_id}","starred_url":"https://api.github.com/users/juju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juju/subscriptions","organizations_url":"https://api.github.com/users/juju/orgs","repos_url":"https://api.github.com/users/juju/repos","events_url":"https://api.github.com/users/juju/events{/privacy}","received_events_url":"https://api.github.com/users/juju/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/juju/jujusvg","description":"Generate svgs from Juju bundles and environment.","fork":false,"url":"https://api.github.com/repos/juju/jujusvg","forks_url":"https://api.github.com/repos/juju/jujusvg/forks","keys_url":"https://api.github.com/repos/juju/jujusvg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/juju/jujusvg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/juju/jujusvg/teams","hooks_url":"https://api.github.com/repos/juju/jujusvg/hooks","issue_events_url":"https://api.github.com/repos/juju/jujusvg/issues/events{/number}","events_url":"https://api.github.com/repos/juju/jujusvg/events","assignees_url":"https://api.github.com/repos/juju/jujusvg/assignees{/user}","branches_url":"https://api.github.com/repos/juju/jujusvg/branches{/branch}","tags_url":"https://api.github.com/repos/juju/jujusvg/tags","blobs_url":"https://api.github.com/repos/juju/jujusvg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/juju/jujusvg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/juju/jujusvg/git/refs{/sha}","trees_url":"https://api.github.com/repos/juju/jujusvg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/juju/jujusvg/statuses/{sha}","languages_url":"https://api.github.com/repos/juju/jujusvg/languages","stargazers_url":"https://api.github.com/repos/juju/jujusvg/stargazers","contributors_url":"https://api.github.com/repos/juju/jujusvg/contributors","subscribers_url":"https://api.github.com/repos/juju/jujusvg/subscribers","subscription_url":"https://api.github.com/repos/juju/jujusvg/subscription","commits_url":"https://api.github.com/repos/juju/jujusvg/commits{/sha}","git_commits_url":"https://api.github.com/repos/juju/jujusvg/git/commits{/sha}","comments_url":"https://api.github.com/repos/juju/jujusvg/comments{/number}","issue_comment_url":"https://api.github.com/repos/juju/jujusvg/issues/comments{/number}","contents_url":"https://api.github.com/repos/juju/jujusvg/contents/{+path}","compare_url":"https://api.github.com/repos/juju/jujusvg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/juju/jujusvg/merges","archive_url":"https://api.github.com/repos/juju/jujusvg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/juju/jujusvg/downloads","issues_url":"https://api.github.com/repos/juju/jujusvg/issues{/number}","pulls_url":"https://api.github.com/repos/juju/jujusvg/pulls{/number}","milestones_url":"https://api.github.com/repos/juju/jujusvg/milestones{/number}","notifications_url":"https://api.github.com/repos/juju/jujusvg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/juju/jujusvg/labels{/name}","releases_url":"https://api.github.com/repos/juju/jujusvg/releases{/id}","created_at":"2014-07-25T08:13:21Z","updated_at":"2015-04-10T08:55:05Z","pushed_at":"2015-04-10T08:55:05Z","git_url":"git://github.com/juju/jujusvg.git","ssh_url":"git@github.com:juju/jujusvg.git","clone_url":"https://github.com/juju/jujusvg.git","svn_url":"https://github.com/juju/jujusvg","homepage":null,"size":593,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":4,"forks":7,"open_issues":4,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/juju/jujusvg/pulls/23"},"html":{"href":"https://github.com/juju/jujusvg/pull/23"},"issue":{"href":"https://api.github.com/repos/juju/jujusvg/issues/23"},"comments":{"href":"https://api.github.com/repos/juju/jujusvg/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/juju/jujusvg/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/juju/jujusvg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/juju/jujusvg/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/juju/jujusvg/statuses/1644262083dacd25354a6a6852631357b2f3131f"}}}}