{"action":"closed","number":176,"pull_request":{"url":"https://api.github.com/repos/primer/octicons/pulls/176","id":142634875,"html_url":"https://github.com/primer/octicons/pull/176","diff_url":"https://github.com/primer/octicons/pull/176.diff","patch_url":"https://github.com/primer/octicons/pull/176.patch","issue_url":"https://api.github.com/repos/primer/octicons/issues/176","number":176,"state":"closed","locked":false,"title":"Add icon server for SVG + PNG","user":{"login":"shawnbot","id":113896,"avatar_url":"https://avatars2.githubusercontent.com/u/113896?v=4","gravatar_id":"","url":"https://api.github.com/users/shawnbot","html_url":"https://github.com/shawnbot","followers_url":"https://api.github.com/users/shawnbot/followers","following_url":"https://api.github.com/users/shawnbot/following{/other_user}","gists_url":"https://api.github.com/users/shawnbot/gists{/gist_id}","starred_url":"https://api.github.com/users/shawnbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawnbot/subscriptions","organizations_url":"https://api.github.com/users/shawnbot/orgs","repos_url":"https://api.github.com/users/shawnbot/repos","events_url":"https://api.github.com/users/shawnbot/events{/privacy}","received_events_url":"https://api.github.com/users/shawnbot/received_events","type":"User","site_admin":true},"body":"This adds an [express](https://expressjs.com/) server when you run `npm start` that will serve up octicons at different sizes at URLs in the form:\r\n\r\n```\r\n/{symbol}.(svg|png){?params}\r\n```\r\n\r\nWhere `params` are passed along as `octicons[symbol].toSVG(params)` and become attributes of the generated `<svg>` element, e.g.\r\n\r\n```\r\n/smiley.svg?width=400&fill=red\r\n```\r\n\r\nBy default, it runs on a random open port. You can change that by setting the `PORT` environment variable:\r\n\r\n```sh\r\nPORT=4001 npm start\r\n```\r\n\r\nwhich should make the above URL available at:\r\n\r\n```\r\nhttp://127.0.0.1:4001/smiley.svg?width=400&height=400&fill=red\r\n```\r\n\r\n~From here, it should be pretty trivial to add a PNG endpoint that rasterizes the SVG.~ [sharp](http://sharp.dimens.io/en/stable/) made it ridiculously easy to add PNG rasterizing! 🎉 ","created_at":"2017-09-22T17:52:39Z","updated_at":"2017-10-13T23:01:05Z","closed_at":"2017-10-13T23:01:05Z","merged_at":null,"merge_commit_sha":"00e90170e5c5360efeda10cf5a7a8ade0fa4749f","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/primer/octicons/pulls/176/commits","review_comments_url":"https://api.github.com/repos/primer/octicons/pulls/176/comments","review_comment_url":"https://api.github.com/repos/primer/octicons/pulls/comments{/number}","comments_url":"https://api.github.com/repos/primer/octicons/issues/176/comments","statuses_url":"https://api.github.com/repos/primer/octicons/statuses/41ed2a82601103d46b307f2907b4eb46bf5451b8","head":{"label":"primer:icon-server","ref":"icon-server","sha":"41ed2a82601103d46b307f2907b4eb46bf5451b8","user":{"login":"primer","id":7143434,"avatar_url":"https://avatars0.githubusercontent.com/u/7143434?v=4","gravatar_id":"","url":"https://api.github.com/users/primer","html_url":"https://github.com/primer","followers_url":"https://api.github.com/users/primer/followers","following_url":"https://api.github.com/users/primer/following{/other_user}","gists_url":"https://api.github.com/users/primer/gists{/gist_id}","starred_url":"https://api.github.com/users/primer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/primer/subscriptions","organizations_url":"https://api.github.com/users/primer/orgs","repos_url":"https://api.github.com/users/primer/repos","events_url":"https://api.github.com/users/primer/events{/privacy}","received_events_url":"https://api.github.com/users/primer/received_events","type":"Organization","site_admin":false},"repo":{"id":20893207,"name":"octicons","full_name":"primer/octicons","owner":{"login":"primer","id":7143434,"avatar_url":"https://avatars0.githubusercontent.com/u/7143434?v=4","gravatar_id":"","url":"https://api.github.com/users/primer","html_url":"https://github.com/primer","followers_url":"https://api.github.com/users/primer/followers","following_url":"https://api.github.com/users/primer/following{/other_user}","gists_url":"https://api.github.com/users/primer/gists{/gist_id}","starred_url":"https://api.github.com/users/primer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/primer/subscriptions","organizations_url":"https://api.github.com/users/primer/orgs","repos_url":"https://api.github.com/users/primer/repos","events_url":"https://api.github.com/users/primer/events{/privacy}","received_events_url":"https://api.github.com/users/primer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/primer/octicons","description":"A scalable set of icons handcrafted with <3 by GitHub","fork":false,"url":"https://api.github.com/repos/primer/octicons","forks_url":"https://api.github.com/repos/primer/octicons/forks","keys_url":"https://api.github.com/repos/primer/octicons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/primer/octicons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/primer/octicons/teams","hooks_url":"https://api.github.com/repos/primer/octicons/hooks","issue_events_url":"https://api.github.com/repos/primer/octicons/issues/events{/number}","events_url":"https://api.github.com/repos/primer/octicons/events","assignees_url":"https://api.github.com/repos/primer/octicons/assignees{/user}","branches_url":"https://api.github.com/repos/primer/octicons/branches{/branch}","tags_url":"https://api.github.com/repos/primer/octicons/tags","blobs_url":"https://api.github.com/repos/primer/octicons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/primer/octicons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/primer/octicons/git/refs{/sha}","trees_url":"https://api.github.com/repos/primer/octicons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/primer/octicons/statuses/{sha}","languages_url":"https://api.github.com/repos/primer/octicons/languages","stargazers_url":"https://api.github.com/repos/primer/octicons/stargazers","contributors_url":"https://api.github.com/repos/primer/octicons/contributors","subscribers_url":"https://api.github.com/repos/primer/octicons/subscribers","subscription_url":"https://api.github.com/repos/primer/octicons/subscription","commits_url":"https://api.github.com/repos/primer/octicons/commits{/sha}","git_commits_url":"https://api.github.com/repos/primer/octicons/git/commits{/sha}","comments_url":"https://api.github.com/repos/primer/octicons/comments{/number}","issue_comment_url":"https://api.github.com/repos/primer/octicons/issues/comments{/number}","contents_url":"https://api.github.com/repos/primer/octicons/contents/{+path}","compare_url":"https://api.github.com/repos/primer/octicons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/primer/octicons/merges","archive_url":"https://api.github.com/repos/primer/octicons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/primer/octicons/downloads","issues_url":"https://api.github.com/repos/primer/octicons/issues{/number}","pulls_url":"https://api.github.com/repos/primer/octicons/pulls{/number}","milestones_url":"https://api.github.com/repos/primer/octicons/milestones{/number}","notifications_url":"https://api.github.com/repos/primer/octicons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/primer/octicons/labels{/name}","releases_url":"https://api.github.com/repos/primer/octicons/releases{/id}","deployments_url":"https://api.github.com/repos/primer/octicons/deployments","created_at":"2014-06-16T17:10:25Z","updated_at":"2017-10-13T21:51:20Z","pushed_at":"2017-10-13T22:06:27Z","git_url":"git://github.com/primer/octicons.git","ssh_url":"git@github.com:primer/octicons.git","clone_url":"https://github.com/primer/octicons.git","svn_url":"https://github.com/primer/octicons","homepage":"https://octicons.github.com/","size":18432,"stargazers_count":4056,"watchers_count":4056,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":316,"mirror_url":null,"open_issues_count":11,"forks":316,"open_issues":11,"watchers":4056,"default_branch":"master"}},"base":{"label":"primer:master","ref":"master","sha":"49be5369aa57d532586c68a7ffcfa24c611a20ff","user":{"login":"primer","id":7143434,"avatar_url":"https://avatars0.githubusercontent.com/u/7143434?v=4","gravatar_id":"","url":"https://api.github.com/users/primer","html_url":"https://github.com/primer","followers_url":"https://api.github.com/users/primer/followers","following_url":"https://api.github.com/users/primer/following{/other_user}","gists_url":"https://api.github.com/users/primer/gists{/gist_id}","starred_url":"https://api.github.com/users/primer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/primer/subscriptions","organizations_url":"https://api.github.com/users/primer/orgs","repos_url":"https://api.github.com/users/primer/repos","events_url":"https://api.github.com/users/primer/events{/privacy}","received_events_url":"https://api.github.com/users/primer/received_events","type":"Organization","site_admin":false},"repo":{"id":20893207,"name":"octicons","full_name":"primer/octicons","owner":{"login":"primer","id":7143434,"avatar_url":"https://avatars0.githubusercontent.com/u/7143434?v=4","gravatar_id":"","url":"https://api.github.com/users/primer","html_url":"https://github.com/primer","followers_url":"https://api.github.com/users/primer/followers","following_url":"https://api.github.com/users/primer/following{/other_user}","gists_url":"https://api.github.com/users/primer/gists{/gist_id}","starred_url":"https://api.github.com/users/primer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/primer/subscriptions","organizations_url":"https://api.github.com/users/primer/orgs","repos_url":"https://api.github.com/users/primer/repos","events_url":"https://api.github.com/users/primer/events{/privacy}","received_events_url":"https://api.github.com/users/primer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/primer/octicons","description":"A scalable set of icons handcrafted with <3 by GitHub","fork":false,"url":"https://api.github.com/repos/primer/octicons","forks_url":"https://api.github.com/repos/primer/octicons/forks","keys_url":"https://api.github.com/repos/primer/octicons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/primer/octicons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/primer/octicons/teams","hooks_url":"https://api.github.com/repos/primer/octicons/hooks","issue_events_url":"https://api.github.com/repos/primer/octicons/issues/events{/number}","events_url":"https://api.github.com/repos/primer/octicons/events","assignees_url":"https://api.github.com/repos/primer/octicons/assignees{/user}","branches_url":"https://api.github.com/repos/primer/octicons/branches{/branch}","tags_url":"https://api.github.com/repos/primer/octicons/tags","blobs_url":"https://api.github.com/repos/primer/octicons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/primer/octicons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/primer/octicons/git/refs{/sha}","trees_url":"https://api.github.com/repos/primer/octicons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/primer/octicons/statuses/{sha}","languages_url":"https://api.github.com/repos/primer/octicons/languages","stargazers_url":"https://api.github.com/repos/primer/octicons/stargazers","contributors_url":"https://api.github.com/repos/primer/octicons/contributors","subscribers_url":"https://api.github.com/repos/primer/octicons/subscribers","subscription_url":"https://api.github.com/repos/primer/octicons/subscription","commits_url":"https://api.github.com/repos/primer/octicons/commits{/sha}","git_commits_url":"https://api.github.com/repos/primer/octicons/git/commits{/sha}","comments_url":"https://api.github.com/repos/primer/octicons/comments{/number}","issue_comment_url":"https://api.github.com/repos/primer/octicons/issues/comments{/number}","contents_url":"https://api.github.com/repos/primer/octicons/contents/{+path}","compare_url":"https://api.github.com/repos/primer/octicons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/primer/octicons/merges","archive_url":"https://api.github.com/repos/primer/octicons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/primer/octicons/downloads","issues_url":"https://api.github.com/repos/primer/octicons/issues{/number}","pulls_url":"https://api.github.com/repos/primer/octicons/pulls{/number}","milestones_url":"https://api.github.com/repos/primer/octicons/milestones{/number}","notifications_url":"https://api.github.com/repos/primer/octicons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/primer/octicons/labels{/name}","releases_url":"https://api.github.com/repos/primer/octicons/releases{/id}","deployments_url":"https://api.github.com/repos/primer/octicons/deployments","created_at":"2014-06-16T17:10:25Z","updated_at":"2017-10-13T21:51:20Z","pushed_at":"2017-10-13T22:06:27Z","git_url":"git://github.com/primer/octicons.git","ssh_url":"git@github.com:primer/octicons.git","clone_url":"https://github.com/primer/octicons.git","svn_url":"https://github.com/primer/octicons","homepage":"https://octicons.github.com/","size":18432,"stargazers_count":4056,"watchers_count":4056,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":316,"mirror_url":null,"open_issues_count":11,"forks":316,"open_issues":11,"watchers":4056,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/primer/octicons/pulls/176"},"html":{"href":"https://github.com/primer/octicons/pull/176"},"issue":{"href":"https://api.github.com/repos/primer/octicons/issues/176"},"comments":{"href":"https://api.github.com/repos/primer/octicons/issues/176/comments"},"review_comments":{"href":"https://api.github.com/repos/primer/octicons/pulls/176/comments"},"review_comment":{"href":"https://api.github.com/repos/primer/octicons/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/primer/octicons/pulls/176/commits"},"statuses":{"href":"https://api.github.com/repos/primer/octicons/statuses/41ed2a82601103d46b307f2907b4eb46bf5451b8"}},"author_association":"OWNER","merged":false,"mergeable":true,"rebaseable":false,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":5,"additions":115,"deletions":0,"changed_files":4}}
{"actor":{"display_login":"jonrohan"}}