{"action":"created","issue":{"url":"https://api.github.com/repos/hoetmaaiers/metalsmith-project-images/issues/4","repository_url":"https://api.github.com/repos/hoetmaaiers/metalsmith-project-images","labels_url":"https://api.github.com/repos/hoetmaaiers/metalsmith-project-images/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/hoetmaaiers/metalsmith-project-images/issues/4/comments","events_url":"https://api.github.com/repos/hoetmaaiers/metalsmith-project-images/issues/4/events","html_url":"https://github.com/hoetmaaiers/metalsmith-project-images/issues/4","id":181569077,"number":4,"title":"Make imagesDirectory optional","user":{"login":"jvolker","id":546852,"avatar_url":"https://avatars.githubusercontent.com/u/546852?v=3","gravatar_id":"","url":"https://api.github.com/users/jvolker","html_url":"https://github.com/jvolker","followers_url":"https://api.github.com/users/jvolker/followers","following_url":"https://api.github.com/users/jvolker/following{/other_user}","gists_url":"https://api.github.com/users/jvolker/gists{/gist_id}","starred_url":"https://api.github.com/users/jvolker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvolker/subscriptions","organizations_url":"https://api.github.com/users/jvolker/orgs","repos_url":"https://api.github.com/users/jvolker/repos","events_url":"https://api.github.com/users/jvolker/events{/privacy}","received_events_url":"https://api.github.com/users/jvolker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-07T01:53:51Z","updated_at":"2016-10-12T17:47:22Z","closed_at":null,"body":"Currently the folder specified as `imagesDirectory` has to exist in every project / item of your pattern.\r\n\r\ne.g.: \r\n```\r\n.use(images({\r\n    pattern: 'projects/**/*'\r\n  }))\r\n```\r\nin every project there has to be a folder `images`. Otherwise you get an `Error: ENOENT: no such file or directory`\r\n\r\nIt would be great to be able to not have this folder, in case there are no images to the project."},"comment":{"url":"https://api.github.com/repos/hoetmaaiers/metalsmith-project-images/issues/comments/253285945","html_url":"https://github.com/hoetmaaiers/metalsmith-project-images/issues/4#issuecomment-253285945","issue_url":"https://api.github.com/repos/hoetmaaiers/metalsmith-project-images/issues/4","id":253285945,"user":{"login":"nianwang","id":1289935,"avatar_url":"https://avatars.githubusercontent.com/u/1289935?v=3","gravatar_id":"","url":"https://api.github.com/users/nianwang","html_url":"https://github.com/nianwang","followers_url":"https://api.github.com/users/nianwang/followers","following_url":"https://api.github.com/users/nianwang/following{/other_user}","gists_url":"https://api.github.com/users/nianwang/gists{/gist_id}","starred_url":"https://api.github.com/users/nianwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nianwang/subscriptions","organizations_url":"https://api.github.com/users/nianwang/orgs","repos_url":"https://api.github.com/users/nianwang/repos","events_url":"https://api.github.com/users/nianwang/events{/privacy}","received_events_url":"https://api.github.com/users/nianwang/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T17:47:22Z","updated_at":"2016-10-12T17:47:22Z","body":"When the specified `imagesDirectory` does not exist, should the metadata array be added at all?\r\n\r\nInstead, perhaps skip over those projects without the specified `imagesDirectory`.\r\n\r\nThere are two points to consider:\r\n\r\n- An empty directory cannot exist with Git\r\n- An empty directory with placeholder (e.g., `images/.placeholder`) will still result in an empty array already.\r\n\r\n"}}
{"actor":{"display_login":"nianwang"}}