{"action":"created","issue":{"url":"https://api.github.com/repos/leeper/RL10N/issues/1","labels_url":"https://api.github.com/repos/leeper/RL10N/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/leeper/RL10N/issues/1/comments","events_url":"https://api.github.com/repos/leeper/RL10N/issues/1/events","html_url":"https://github.com/leeper/RL10N/issues/1","id":117810677,"number":1,"title":"Assess prevalence of /po directories in packages","user":{"login":"leeper","id":3505428,"avatar_url":"https://avatars.githubusercontent.com/u/3505428?v=3","gravatar_id":"","url":"https://api.github.com/users/leeper","html_url":"https://github.com/leeper","followers_url":"https://api.github.com/users/leeper/followers","following_url":"https://api.github.com/users/leeper/following{/other_user}","gists_url":"https://api.github.com/users/leeper/gists{/gist_id}","starred_url":"https://api.github.com/users/leeper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leeper/subscriptions","organizations_url":"https://api.github.com/users/leeper/orgs","repos_url":"https://api.github.com/users/leeper/repos","events_url":"https://api.github.com/users/leeper/events{/privacy}","received_events_url":"https://api.github.com/users/leeper/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/leeper/RL10N/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-19T13:09:44Z","updated_at":"2015-11-20T19:03:31Z","closed_at":null,"body":"This should be easy via the GitHub API and the \"cran\" organization because we can pull the repo contents as JSON: \r\n\r\nIt's probably easiest to do this with [gh](https://github.com/gaborcsardi/gh).\r\n\r\nFor example for assertive, we pull the `trees` url (https://api.github.com/repos/cran/assertive/git/trees/master) to get this:\r\n\r\n```\r\n{\r\n  \"sha\": \"6317613cf1958c6f7341b42793a7b9d3f6127169\",\r\n  \"url\": \"https://api.github.com/repos/cran/assertive/git/trees/6317613cf1958c6f7341b42793a7b9d3f6127169\",\r\n  \"tree\": [\r\n    {\r\n      \"path\": \"DESCRIPTION\",\r\n      \"mode\": \"100644\",\r\n      \"type\": \"blob\",\r\n      \"sha\": \"a24c30a8cbf47fd0dd5012ab476008a5185d3dc5\",\r\n      \"size\": 2112,\r\n      \"url\": \"https://api.github.com/repos/cran/assertive/git/blobs/a24c30a8cbf47fd0dd5012ab476008a5185d3dc5\"\r\n    },\r\n    {\r\n      \"path\": \"MD5\",\r\n      \"mode\": \"100644\",\r\n      \"type\": \"blob\",\r\n      \"sha\": \"39092db22e3ca172c8f7c7cb2c36d90ed3f91e21\",\r\n      \"size\": 11881,\r\n      \"url\": \"https://api.github.com/repos/cran/assertive/git/blobs/39092db22e3ca172c8f7c7cb2c36d90ed3f91e21\"\r\n    },\r\n    {\r\n      \"path\": \"NAMESPACE\",\r\n      \"mode\": \"100644\",\r\n      \"type\": \"blob\",\r\n      \"sha\": \"0ebcd1cf4339a714831e0e15df62322737e77d77\",\r\n      \"size\": 15464,\r\n      \"url\": \"https://api.github.com/repos/cran/assertive/git/blobs/0ebcd1cf4339a714831e0e15df62322737e77d77\"\r\n    },\r\n    {\r\n      \"path\": \"NEWS\",\r\n      \"mode\": \"100644\",\r\n      \"type\": \"blob\",\r\n      \"sha\": \"81fa099d5deccd7ad5be9733d8f997e25f72d535\",\r\n      \"size\": 1280,\r\n      \"url\": \"https://api.github.com/repos/cran/assertive/git/blobs/81fa099d5deccd7ad5be9733d8f997e25f72d535\"\r\n    },\r\n    {\r\n      \"path\": \"R\",\r\n      \"mode\": \"040000\",\r\n      \"type\": \"tree\",\r\n      \"sha\": \"0dec16eb0d3715ce29c0acd22043509bafac5a7d\",\r\n      \"url\": \"https://api.github.com/repos/cran/assertive/git/trees/0dec16eb0d3715ce29c0acd22043509bafac5a7d\"\r\n    },\r\n    {\r\n      \"path\": \"README.md\",\r\n      \"mode\": \"100644\",\r\n      \"type\": \"blob\",\r\n      \"sha\": \"8d5ba20ada314305878f4deb45e4d4c4e35be030\",\r\n      \"size\": 8690,\r\n      \"url\": \"https://api.github.com/repos/cran/assertive/git/blobs/8d5ba20ada314305878f4deb45e4d4c4e35be030\"\r\n    },\r\n    {\r\n      \"path\": \"build\",\r\n      \"mode\": \"040000\",\r\n      \"type\": \"tree\",\r\n      \"sha\": \"a68a7120dc6e4bda88fa9b1bc77b743055ddb5d7\",\r\n      \"url\": \"https://api.github.com/repos/cran/assertive/git/trees/a68a7120dc6e4bda88fa9b1bc77b743055ddb5d7\"\r\n    },\r\n    {\r\n      \"path\": \"inst\",\r\n      \"mode\": \"040000\",\r\n      \"type\": \"tree\",\r\n      \"sha\": \"22070ea29ca4d2e063d2983993bafa282511e7b7\",\r\n      \"url\": \"https://api.github.com/repos/cran/assertive/git/trees/22070ea29ca4d2e063d2983993bafa282511e7b7\"\r\n    },\r\n    {\r\n      \"path\": \"man\",\r\n      \"mode\": \"040000\",\r\n      \"type\": \"tree\",\r\n      \"sha\": \"86b9b1ac087bc56c2209591f69d3a42e7831ac53\",\r\n      \"url\": \"https://api.github.com/repos/cran/assertive/git/trees/86b9b1ac087bc56c2209591f69d3a42e7831ac53\"\r\n    },\r\n    {\r\n      \"path\": \"po\",\r\n      \"mode\": \"040000\",\r\n      \"type\": \"tree\",\r\n      \"sha\": \"045aba3defebe8615fe0916e5cbbf45b10b1f0c7\",\r\n      \"url\": \"https://api.github.com/repos/cran/assertive/git/trees/045aba3defebe8615fe0916e5cbbf45b10b1f0c7\"\r\n    },\r\n    {\r\n      \"path\": \"tests\",\r\n      \"mode\": \"040000\",\r\n      \"type\": \"tree\",\r\n      \"sha\": \"c8dbdd020c437ea4c76aadd90218c032c37f254e\",\r\n      \"url\": \"https://api.github.com/repos/cran/assertive/git/trees/c8dbdd020c437ea4c76aadd90218c032c37f254e\"\r\n    },\r\n    {\r\n      \"path\": \"vignettes\",\r\n      \"mode\": \"040000\",\r\n      \"type\": \"tree\",\r\n      \"sha\": \"d713b9558aa5a136905494842c500b550e4bb892\",\r\n      \"url\": \"https://api.github.com/repos/cran/assertive/git/trees/d713b9558aa5a136905494842c500b550e4bb892\"\r\n    }\r\n  ],\r\n  \"truncated\": false\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/leeper/RL10N/issues/comments/158495865","html_url":"https://github.com/leeper/RL10N/issues/1#issuecomment-158495865","issue_url":"https://api.github.com/repos/leeper/RL10N/issues/1","id":158495865,"user":{"login":"richierocks","id":197589,"avatar_url":"https://avatars.githubusercontent.com/u/197589?v=3","gravatar_id":"","url":"https://api.github.com/users/richierocks","html_url":"https://github.com/richierocks","followers_url":"https://api.github.com/users/richierocks/followers","following_url":"https://api.github.com/users/richierocks/following{/other_user}","gists_url":"https://api.github.com/users/richierocks/gists{/gist_id}","starred_url":"https://api.github.com/users/richierocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richierocks/subscriptions","organizations_url":"https://api.github.com/users/richierocks/orgs","repos_url":"https://api.github.com/users/richierocks/repos","events_url":"https://api.github.com/users/richierocks/events{/privacy}","received_events_url":"https://api.github.com/users/richierocks/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T19:03:30Z","updated_at":"2015-11-20T19:03:30Z","body":"> add the script and resulting data to the repo so that we have a record of it\r\n\r\nGood call.\r\n\r\n> I'm working on this now.\r\n\r\nExcellent!"}}