{"action":"created","issue":{"url":"https://api.github.com/repos/getchopchop/chopchop/issues/122","repository_url":"https://api.github.com/repos/getchopchop/chopchop","labels_url":"https://api.github.com/repos/getchopchop/chopchop/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/getchopchop/chopchop/issues/122/comments","events_url":"https://api.github.com/repos/getchopchop/chopchop/issues/122/events","html_url":"https://github.com/getchopchop/chopchop/pull/122","id":186924557,"number":122,"title":"Data Integration","user":{"login":"jakecobley","id":4924755,"avatar_url":"https://avatars.githubusercontent.com/u/4924755?v=3","gravatar_id":"","url":"https://api.github.com/users/jakecobley","html_url":"https://github.com/jakecobley","followers_url":"https://api.github.com/users/jakecobley/followers","following_url":"https://api.github.com/users/jakecobley/following{/other_user}","gists_url":"https://api.github.com/users/jakecobley/gists{/gist_id}","starred_url":"https://api.github.com/users/jakecobley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakecobley/subscriptions","organizations_url":"https://api.github.com/users/jakecobley/orgs","repos_url":"https://api.github.com/users/jakecobley/repos","events_url":"https://api.github.com/users/jakecobley/events{/privacy}","received_events_url":"https://api.github.com/users/jakecobley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-02T21:25:46Z","updated_at":"2016-11-03T14:42:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/getchopchop/chopchop/pulls/122","html_url":"https://github.com/getchopchop/chopchop/pull/122","diff_url":"https://github.com/getchopchop/chopchop/pull/122.diff","patch_url":"https://github.com/getchopchop/chopchop/pull/122.patch"},"body":"**Description**  \r\nAdded `printData()` and `getData` functions. Grabs and prints data from the YAML files located in the `data` folder in the root. \r\n\r\nI've added a `global.yml` and a `blog-titles.yml` file with some variables/arrays to get us started.\r\n\r\nExample usage below:\r\n\r\n```\r\n// Grabs the site name from the site name variable in the global.yml file in the data directory.\r\n<?php printData('global', 'site-name'); ?>\r\n\r\n// Grabs a random entry from the blog-titles object in the blog-titles.yml file in the data directory.\r\n<?php printData('blog-titles'); ?>\r\n\r\n// Grabs the second (starts from 0) blog title from the blog-title object in the blog-titles.yml file in the data directory.\r\n<?php printData('blog-titles', 1); ?>\r\n\r\n// Sets $someVariable equal to the site's email address from the site name variable in the global.yml file in the data directory.\r\n<?php $someVariable = getData('global', 'email'); ?>\r\n\r\n```\r\n\r\n**Related Issue**  \r\n#4\r\n\r\n**How Has This Been Tested?**  \r\nTested both `printData()` and `getData` with and without the second parameter being specified.\r\n\r\n**Types of changes**\r\n- [ ] Bug fix (non-breaking change which fixes an issue)\r\n- [x] New feature (non-breaking change which adds functionality)\r\n- [ ] Breaking change (fix or feature that would cause existing functionality to\r\n  change)\r\n\r\n## Checklist:\r\n- [x] My code follows the code style of this project.\r\n- [ ] My change requires a change to the documentation.\r\n- [ ] I have updated the documentation accordingly.\r\n- [x] I have read the [CONTRIBUTING](https://github.com/getchopchop/chopchop/blob/next/.github/CONTRIBUTING.md) document.\r\n"},"comment":{"url":"https://api.github.com/repos/getchopchop/chopchop/issues/comments/258161768","html_url":"https://github.com/getchopchop/chopchop/pull/122#issuecomment-258161768","issue_url":"https://api.github.com/repos/getchopchop/chopchop/issues/122","id":258161768,"user":{"login":"gazjoy","id":628064,"avatar_url":"https://avatars.githubusercontent.com/u/628064?v=3","gravatar_id":"","url":"https://api.github.com/users/gazjoy","html_url":"https://github.com/gazjoy","followers_url":"https://api.github.com/users/gazjoy/followers","following_url":"https://api.github.com/users/gazjoy/following{/other_user}","gists_url":"https://api.github.com/users/gazjoy/gists{/gist_id}","starred_url":"https://api.github.com/users/gazjoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gazjoy/subscriptions","organizations_url":"https://api.github.com/users/gazjoy/orgs","repos_url":"https://api.github.com/users/gazjoy/repos","events_url":"https://api.github.com/users/gazjoy/events{/privacy}","received_events_url":"https://api.github.com/users/gazjoy/received_events","type":"User","site_admin":false},"created_at":"2016-11-03T14:42:07Z","updated_at":"2016-11-03T14:42:07Z","body":"@jakecobley you are my hero 😍 "}}
{"actor":{"display_login":"gazjoy"}}