{"action":"created","issue":{"url":"https://api.github.com/repos/hoetmaaiers/metalsmith-project-images/issues/3","repository_url":"https://api.github.com/repos/hoetmaaiers/metalsmith-project-images","labels_url":"https://api.github.com/repos/hoetmaaiers/metalsmith-project-images/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/hoetmaaiers/metalsmith-project-images/issues/3/comments","events_url":"https://api.github.com/repos/hoetmaaiers/metalsmith-project-images/issues/3/events","html_url":"https://github.com/hoetmaaiers/metalsmith-project-images/pull/3","id":180532987,"number":3,"title":"Set images key","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},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-02T20:23:59Z","updated_at":"2016-10-03T15:22:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hoetmaaiers/metalsmith-project-images/pulls/3","html_url":"https://github.com/hoetmaaiers/metalsmith-project-images/pull/3","diff_url":"https://github.com/hoetmaaiers/metalsmith-project-images/pull/3.diff","patch_url":"https://github.com/hoetmaaiers/metalsmith-project-images/pull/3.patch"},"body":"Allows setting the metadata key the image collection is added to.\r\n\r\n### Use Case\r\n\r\nIt's possible for a single project to have multiple _groups_ of images, instead of a single collection of images. This pull request enables setting the metadata key (default `images`) so it's possible to reference groups of images by different bucket references.\r\n\r\nFor example, on a single project, let's imagine we have:\r\n\r\n- `project/screenshots`\r\n- `project/flow-diagrams`\r\n- `project/ads`\r\n\r\nWith the following configuration we can differentiate these on the project template:\r\n\r\n```javascript\r\nvar options = [\r\n\t// for project screenshots, displayed as an image carousel\r\n\t// (accessible via `file.images` as normal)\r\n\t{\r\n\t\tpattern: 'project/*.',\r\n\t\timagesDirectory: 'screenshots',\r\n\t},\r\n\r\n\t// for flow-diagrams, displayed as a list of links only\r\n\t{\r\n\t\tpattern: 'project/*.',\r\n\t\timagesDirectory: 'flow-diagrams',\r\n\t\timagesKey: 'flow',\r\n\t},\r\n\r\n\t// randomize the collection and inline display the advertisements!\r\n\t{\r\n\t\tpattern: 'projects/**/*.md',\r\n\t\timagesDirectory: 'ads',\r\n\t\timagesKey: 'ads',\r\n\t},\r\n]\r\n```\r\n\r\n### Changelog\r\n\r\n- Adds `imagesKey` option\r\n- Adds a test for successfully setting the specified key name\r\n- Updates README.md to document the new option"},"comment":{"url":"https://api.github.com/repos/hoetmaaiers/metalsmith-project-images/issues/comments/251136325","html_url":"https://github.com/hoetmaaiers/metalsmith-project-images/pull/3#issuecomment-251136325","issue_url":"https://api.github.com/repos/hoetmaaiers/metalsmith-project-images/issues/3","id":251136325,"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-03T15:22:25Z","updated_at":"2016-10-03T15:22:25Z","body":"Sure thing! Apparently _src/index.js_ I pulled from had the arrow function syntax. I've since confirmed sync with your upstream."}}
{"actor":{"display_login":"nianwang"}}