{"action":"created","comment":{"url":"https://api.github.com/repos/netlify/netlify-cms/pulls/comments/146431512","pull_request_review_id":71372337,"id":146431512,"diff_hunk":"@@ -89,10 +89,22 @@ export default class GitHub {\n     }));\n   }\n \n+  getMedia() {\n+    return this.api.listFiles(this.config.get('media_folder'))\n+      .then(files => files.filter(file => file.type === 'file'))\n+      .then(files => files.map(({ sha, name, size, download_url, path }) => {\n+        return { id: sha, name, size, url: download_url, path };\n+      }));\n+  }\n+\n   persistEntry(entry, mediaFiles = [], options = {}) {\n     return this.api.persistFiles(entry, mediaFiles, options);\n   }\n \n+  persistMedia(mediaFile, options = {}) {\n+    return this.api.persistFiles(null, [mediaFile], options);","path":"src/backends/github/implementation.js","position":17,"original_position":17,"commit_id":"fc0bdf1bd9e195890a239d40b11bc3c895c9227b","original_commit_id":"fc0bdf1bd9e195890a239d40b11bc3c895c9227b","user":{"login":"erquhart","id":2112202,"avatar_url":"https://avatars3.githubusercontent.com/u/2112202?v=4","gravatar_id":"","url":"https://api.github.com/users/erquhart","html_url":"https://github.com/erquhart","followers_url":"https://api.github.com/users/erquhart/followers","following_url":"https://api.github.com/users/erquhart/following{/other_user}","gists_url":"https://api.github.com/users/erquhart/gists{/gist_id}","starred_url":"https://api.github.com/users/erquhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erquhart/subscriptions","organizations_url":"https://api.github.com/users/erquhart/orgs","repos_url":"https://api.github.com/users/erquhart/repos","events_url":"https://api.github.com/users/erquhart/events{/privacy}","received_events_url":"https://api.github.com/users/erquhart/received_events","type":"User","site_admin":false},"body":"I'll check.","created_at":"2017-10-24T00:58:02Z","updated_at":"2017-10-24T00:58:02Z","html_url":"https://github.com/netlify/netlify-cms/pull/554#discussion_r146431512","pull_request_url":"https://api.github.com/repos/netlify/netlify-cms/pulls/554","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/netlify/netlify-cms/pulls/comments/146431512"},"html":{"href":"https://github.com/netlify/netlify-cms/pull/554#discussion_r146431512"},"pull_request":{"href":"https://api.github.com/repos/netlify/netlify-cms/pulls/554"}},"in_reply_to_id":146404338},"pull_request":{"url":"https://api.github.com/repos/netlify/netlify-cms/pulls/554","id":137754691,"html_url":"https://github.com/netlify/netlify-cms/pull/554","diff_url":"https://github.com/netlify/netlify-cms/pull/554.diff","patch_url":"https://github.com/netlify/netlify-cms/pull/554.patch","issue_url":"https://api.github.com/repos/netlify/netlify-cms/issues/554","number":554,"state":"open","locked":false,"title":"Media Library","user":{"login":"erquhart","id":2112202,"avatar_url":"https://avatars3.githubusercontent.com/u/2112202?v=4","gravatar_id":"","url":"https://api.github.com/users/erquhart","html_url":"https://github.com/erquhart","followers_url":"https://api.github.com/users/erquhart/followers","following_url":"https://api.github.com/users/erquhart/following{/other_user}","gists_url":"https://api.github.com/users/erquhart/gists{/gist_id}","starred_url":"https://api.github.com/users/erquhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erquhart/subscriptions","organizations_url":"https://api.github.com/users/erquhart/orgs","repos_url":"https://api.github.com/users/erquhart/repos","events_url":"https://api.github.com/users/erquhart/events{/privacy}","received_events_url":"https://api.github.com/users/erquhart/received_events","type":"User","site_admin":false},"body":"Closes #350.\r\n\r\nThe media library UI is feature complete. Here are the remaining steps:\r\n\r\n- [x] remove temporary \"media\" widget and convert image/field widgets to use media library\r\n- [x] implement support for asset provider integrations\r\n- [x] add support for in-memory test backend\r\n- [x] ensure asset filenames are lowercased\r\n- [x] add media library support for markdown editor\r\n- [x] migrate netlify-auth support to git-gateway (rebase to 0.5.0-beta branch)\r\n\r\nNote that the media library will be in place for the editorial workflow, but will not be subject to the editorial workflow process. ","created_at":"2017-08-25T20:51:26Z","updated_at":"2017-10-24T00:58:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4a2d7511814b64848acebc7f7b06b52020ea2360","assignee":null,"assignees":[],"requested_reviewers":[{"login":"talves","id":784848,"avatar_url":"https://avatars0.githubusercontent.com/u/784848?v=4","gravatar_id":"","url":"https://api.github.com/users/talves","html_url":"https://github.com/talves","followers_url":"https://api.github.com/users/talves/followers","following_url":"https://api.github.com/users/talves/following{/other_user}","gists_url":"https://api.github.com/users/talves/gists{/gist_id}","starred_url":"https://api.github.com/users/talves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talves/subscriptions","organizations_url":"https://api.github.com/users/talves/orgs","repos_url":"https://api.github.com/users/talves/repos","events_url":"https://api.github.com/users/talves/events{/privacy}","received_events_url":"https://api.github.com/users/talves/received_events","type":"User","site_admin":false},{"login":"Benaiah","id":1425133,"avatar_url":"https://avatars1.githubusercontent.com/u/1425133?v=4","gravatar_id":"","url":"https://api.github.com/users/Benaiah","html_url":"https://github.com/Benaiah","followers_url":"https://api.github.com/users/Benaiah/followers","following_url":"https://api.github.com/users/Benaiah/following{/other_user}","gists_url":"https://api.github.com/users/Benaiah/gists{/gist_id}","starred_url":"https://api.github.com/users/Benaiah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Benaiah/subscriptions","organizations_url":"https://api.github.com/users/Benaiah/orgs","repos_url":"https://api.github.com/users/Benaiah/repos","events_url":"https://api.github.com/users/Benaiah/events{/privacy}","received_events_url":"https://api.github.com/users/Benaiah/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/netlify/netlify-cms/pulls/554/commits","review_comments_url":"https://api.github.com/repos/netlify/netlify-cms/pulls/554/comments","review_comment_url":"https://api.github.com/repos/netlify/netlify-cms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/netlify/netlify-cms/issues/554/comments","statuses_url":"https://api.github.com/repos/netlify/netlify-cms/statuses/fc0bdf1bd9e195890a239d40b11bc3c895c9227b","head":{"label":"netlify:media-library-ui","ref":"media-library-ui","sha":"fc0bdf1bd9e195890a239d40b11bc3c895c9227b","user":{"login":"netlify","id":7892489,"avatar_url":"https://avatars1.githubusercontent.com/u/7892489?v=4","gravatar_id":"","url":"https://api.github.com/users/netlify","html_url":"https://github.com/netlify","followers_url":"https://api.github.com/users/netlify/followers","following_url":"https://api.github.com/users/netlify/following{/other_user}","gists_url":"https://api.github.com/users/netlify/gists{/gist_id}","starred_url":"https://api.github.com/users/netlify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netlify/subscriptions","organizations_url":"https://api.github.com/users/netlify/orgs","repos_url":"https://api.github.com/users/netlify/repos","events_url":"https://api.github.com/users/netlify/events{/privacy}","received_events_url":"https://api.github.com/users/netlify/received_events","type":"Organization","site_admin":false},"repo":{"id":29514104,"name":"netlify-cms","full_name":"netlify/netlify-cms","owner":{"login":"netlify","id":7892489,"avatar_url":"https://avatars1.githubusercontent.com/u/7892489?v=4","gravatar_id":"","url":"https://api.github.com/users/netlify","html_url":"https://github.com/netlify","followers_url":"https://api.github.com/users/netlify/followers","following_url":"https://api.github.com/users/netlify/following{/other_user}","gists_url":"https://api.github.com/users/netlify/gists{/gist_id}","starred_url":"https://api.github.com/users/netlify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netlify/subscriptions","organizations_url":"https://api.github.com/users/netlify/orgs","repos_url":"https://api.github.com/users/netlify/repos","events_url":"https://api.github.com/users/netlify/events{/privacy}","received_events_url":"https://api.github.com/users/netlify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/netlify/netlify-cms","description":"A CMS for Static Site Generators","fork":false,"url":"https://api.github.com/repos/netlify/netlify-cms","forks_url":"https://api.github.com/repos/netlify/netlify-cms/forks","keys_url":"https://api.github.com/repos/netlify/netlify-cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/netlify/netlify-cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/netlify/netlify-cms/teams","hooks_url":"https://api.github.com/repos/netlify/netlify-cms/hooks","issue_events_url":"https://api.github.com/repos/netlify/netlify-cms/issues/events{/number}","events_url":"https://api.github.com/repos/netlify/netlify-cms/events","assignees_url":"https://api.github.com/repos/netlify/netlify-cms/assignees{/user}","branches_url":"https://api.github.com/repos/netlify/netlify-cms/branches{/branch}","tags_url":"https://api.github.com/repos/netlify/netlify-cms/tags","blobs_url":"https://api.github.com/repos/netlify/netlify-cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/netlify/netlify-cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/netlify/netlify-cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/netlify/netlify-cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/netlify/netlify-cms/statuses/{sha}","languages_url":"https://api.github.com/repos/netlify/netlify-cms/languages","stargazers_url":"https://api.github.com/repos/netlify/netlify-cms/stargazers","contributors_url":"https://api.github.com/repos/netlify/netlify-cms/contributors","subscribers_url":"https://api.github.com/repos/netlify/netlify-cms/subscribers","subscription_url":"https://api.github.com/repos/netlify/netlify-cms/subscription","commits_url":"https://api.github.com/repos/netlify/netlify-cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/netlify/netlify-cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/netlify/netlify-cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/netlify/netlify-cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/netlify/netlify-cms/contents/{+path}","compare_url":"https://api.github.com/repos/netlify/netlify-cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/netlify/netlify-cms/merges","archive_url":"https://api.github.com/repos/netlify/netlify-cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/netlify/netlify-cms/downloads","issues_url":"https://api.github.com/repos/netlify/netlify-cms/issues{/number}","pulls_url":"https://api.github.com/repos/netlify/netlify-cms/pulls{/number}","milestones_url":"https://api.github.com/repos/netlify/netlify-cms/milestones{/number}","notifications_url":"https://api.github.com/repos/netlify/netlify-cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/netlify/netlify-cms/labels{/name}","releases_url":"https://api.github.com/repos/netlify/netlify-cms/releases{/id}","deployments_url":"https://api.github.com/repos/netlify/netlify-cms/deployments","created_at":"2015-01-20T05:47:47Z","updated_at":"2017-10-24T00:28:10Z","pushed_at":"2017-10-24T00:57:24Z","git_url":"git://github.com/netlify/netlify-cms.git","ssh_url":"git@github.com:netlify/netlify-cms.git","clone_url":"https://github.com/netlify/netlify-cms.git","svn_url":"https://github.com/netlify/netlify-cms","homepage":"https://www.netlifycms.org","size":25614,"stargazers_count":3174,"watchers_count":3174,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":443,"mirror_url":null,"archived":false,"open_issues_count":173,"forks":443,"open_issues":173,"watchers":3174,"default_branch":"master"}},"base":{"label":"netlify:master","ref":"master","sha":"5efa384684d6099623fd7169663536eabf6bd93d","user":{"login":"netlify","id":7892489,"avatar_url":"https://avatars1.githubusercontent.com/u/7892489?v=4","gravatar_id":"","url":"https://api.github.com/users/netlify","html_url":"https://github.com/netlify","followers_url":"https://api.github.com/users/netlify/followers","following_url":"https://api.github.com/users/netlify/following{/other_user}","gists_url":"https://api.github.com/users/netlify/gists{/gist_id}","starred_url":"https://api.github.com/users/netlify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netlify/subscriptions","organizations_url":"https://api.github.com/users/netlify/orgs","repos_url":"https://api.github.com/users/netlify/repos","events_url":"https://api.github.com/users/netlify/events{/privacy}","received_events_url":"https://api.github.com/users/netlify/received_events","type":"Organization","site_admin":false},"repo":{"id":29514104,"name":"netlify-cms","full_name":"netlify/netlify-cms","owner":{"login":"netlify","id":7892489,"avatar_url":"https://avatars1.githubusercontent.com/u/7892489?v=4","gravatar_id":"","url":"https://api.github.com/users/netlify","html_url":"https://github.com/netlify","followers_url":"https://api.github.com/users/netlify/followers","following_url":"https://api.github.com/users/netlify/following{/other_user}","gists_url":"https://api.github.com/users/netlify/gists{/gist_id}","starred_url":"https://api.github.com/users/netlify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netlify/subscriptions","organizations_url":"https://api.github.com/users/netlify/orgs","repos_url":"https://api.github.com/users/netlify/repos","events_url":"https://api.github.com/users/netlify/events{/privacy}","received_events_url":"https://api.github.com/users/netlify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/netlify/netlify-cms","description":"A CMS for Static Site Generators","fork":false,"url":"https://api.github.com/repos/netlify/netlify-cms","forks_url":"https://api.github.com/repos/netlify/netlify-cms/forks","keys_url":"https://api.github.com/repos/netlify/netlify-cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/netlify/netlify-cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/netlify/netlify-cms/teams","hooks_url":"https://api.github.com/repos/netlify/netlify-cms/hooks","issue_events_url":"https://api.github.com/repos/netlify/netlify-cms/issues/events{/number}","events_url":"https://api.github.com/repos/netlify/netlify-cms/events","assignees_url":"https://api.github.com/repos/netlify/netlify-cms/assignees{/user}","branches_url":"https://api.github.com/repos/netlify/netlify-cms/branches{/branch}","tags_url":"https://api.github.com/repos/netlify/netlify-cms/tags","blobs_url":"https://api.github.com/repos/netlify/netlify-cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/netlify/netlify-cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/netlify/netlify-cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/netlify/netlify-cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/netlify/netlify-cms/statuses/{sha}","languages_url":"https://api.github.com/repos/netlify/netlify-cms/languages","stargazers_url":"https://api.github.com/repos/netlify/netlify-cms/stargazers","contributors_url":"https://api.github.com/repos/netlify/netlify-cms/contributors","subscribers_url":"https://api.github.com/repos/netlify/netlify-cms/subscribers","subscription_url":"https://api.github.com/repos/netlify/netlify-cms/subscription","commits_url":"https://api.github.com/repos/netlify/netlify-cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/netlify/netlify-cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/netlify/netlify-cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/netlify/netlify-cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/netlify/netlify-cms/contents/{+path}","compare_url":"https://api.github.com/repos/netlify/netlify-cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/netlify/netlify-cms/merges","archive_url":"https://api.github.com/repos/netlify/netlify-cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/netlify/netlify-cms/downloads","issues_url":"https://api.github.com/repos/netlify/netlify-cms/issues{/number}","pulls_url":"https://api.github.com/repos/netlify/netlify-cms/pulls{/number}","milestones_url":"https://api.github.com/repos/netlify/netlify-cms/milestones{/number}","notifications_url":"https://api.github.com/repos/netlify/netlify-cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/netlify/netlify-cms/labels{/name}","releases_url":"https://api.github.com/repos/netlify/netlify-cms/releases{/id}","deployments_url":"https://api.github.com/repos/netlify/netlify-cms/deployments","created_at":"2015-01-20T05:47:47Z","updated_at":"2017-10-24T00:28:10Z","pushed_at":"2017-10-24T00:57:24Z","git_url":"git://github.com/netlify/netlify-cms.git","ssh_url":"git@github.com:netlify/netlify-cms.git","clone_url":"https://github.com/netlify/netlify-cms.git","svn_url":"https://github.com/netlify/netlify-cms","homepage":"https://www.netlifycms.org","size":25614,"stargazers_count":3174,"watchers_count":3174,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":443,"mirror_url":null,"archived":false,"open_issues_count":173,"forks":443,"open_issues":173,"watchers":3174,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/netlify/netlify-cms/pulls/554"},"html":{"href":"https://github.com/netlify/netlify-cms/pull/554"},"issue":{"href":"https://api.github.com/repos/netlify/netlify-cms/issues/554"},"comments":{"href":"https://api.github.com/repos/netlify/netlify-cms/issues/554/comments"},"review_comments":{"href":"https://api.github.com/repos/netlify/netlify-cms/pulls/554/comments"},"review_comment":{"href":"https://api.github.com/repos/netlify/netlify-cms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/netlify/netlify-cms/pulls/554/commits"},"statuses":{"href":"https://api.github.com/repos/netlify/netlify-cms/statuses/fc0bdf1bd9e195890a239d40b11bc3c895c9227b"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"erquhart"}}