{"push_id":1282941094,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"82a81d51312cd805063c4d205118f29cfb382945","before":"0b89879714a9390add4e4a12332d091a02ecd588","commits":[{"sha":"82a81d51312cd805063c4d205118f29cfb382945","author":{"name":"Graham Christensen","email":"be1a3648697c1cd4a79a8995b39d92f72b02059b@grahamc.com"},"message":"Create github-issue-stats for generating issue open /close information (#21)\n\nOutput to standard out looks like this:\r\n\r\n```\r\n{\r\n    \"closed_issues\": 47,\r\n    \"closed_prs\": 178,\r\n    \"new_issues\": 54,\r\n    \"new_prs\": 173\r\n}\r\n```\r\n\r\nNote it emits extra stuff to stderr while running.\r\n\r\nHelp Output:\r\n\r\n```\r\n ./result/bin/github-issue-stats -h\r\nusage: github-issue-stats [-h] project report_date\r\n\r\nCreate a Github issue report\r\n\r\npositional arguments:\r\n  project      Example: NixOS/nixpkgs\r\n  report_date  Date to run report for, ex: 2016-08-01\r\n\r\noptional arguments:\r\n  -h, --help   show this help message and exit\r\n\r\n    Magic Environment Variables:\r\n\r\n     - GITHUB_API: https://api.github.com for changing to GH Enterprise\r\n     - BE_A_BAD_GITHUB_CITIZEN: set to 1 to disable rate limiting. Instead\r\n       of disabling rate limiting, you should authenticate to GitHub.\r\n       Check out the .netrc example below.\r\n     - REPORT_DURATION: How many days should the report be for? default: 7\r\n\r\n    Notes:\r\n     - report_date is forced to be at 00:00:00 in UTC on the used date\r\n\r\n    Authenticating to GitHub? Create a file at ~/.netrc with:\r\n\r\n        machine api.github.com\r\n        login youruser\r\n        password <api-key>\r\n\r\n```\r\n\r\nExample Output:\r\n```\r\n$ ./result/bin/github-issue-stats nixos/nixpkgs 2016-09-04 > test\r\nINFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): api.github.com\r\nDEBUG:requests.packages.urllib3.connectionpool:\"GET /repos/nixos/nixpkgs/issues?state=all&since=2016-08-28T00%3A00%3A00%2B00%3A00Z HTTP/1.1\" 200 None\r\nDEBUG:root:Rate limit delay 0s (4982/5000 resets at 1472992420)\r\nDEBUG:requests.packages.urllib3.connectionpool:\"GET /repositories/4542716/issues?state=all&since=2016-08-28T00%3A00%3A00%2B00%3A00Z&page=2 HTTP/1.1\" 200 None\r\nDEBUG:root:Rate limit delay 0s (4981/5000 resets at 1472992420)\r\nDEBUG:requests.packages.urllib3.connectionpool:\"GET /repositories/4542716/issues?state=all&since=2016-08-28T00%3A00%3A00%2B00%3A00Z&page=3 HTTP/1.1\" 200 None\r\nDEBUG:root:Rate limit delay 0s (4980/5000 resets at 1472992420)\r\nDEBUG:requests.packages.urllib3.connectionpool:\"GET /repositories/4542716/issues?state=all&since=2016-08-28T00%3A00%3A00%2B00%3A00Z&page=4 HTTP/1.1\" 200 None\r\nDEBUG:root:Rate limit delay 0s (4979/5000 resets at 1472992420)\r\nDEBUG:requests.packages.urllib3.connectionpool:\"GET /repositories/4542716/issues?state=all&since=2016-08-28T00%3A00%3A00%2B00%3A00Z&page=5 HTTP/1.1\" 200 None\r\nDEBUG:root:Rate limit delay 0s (4978/5000 resets at 1472992420)\r\nDEBUG:requests.packages.urllib3.connectionpool:\"GET /repositories/4542716/issues?state=all&since=2016-08-28T00%3A00%3A00%2B00%3A00Z&page=6 HTTP/1.1\" 200 None\r\nDEBUG:root:Rate limit delay 0s (4977/5000 resets at 1472992420)\r\nDEBUG:requests.packages.urllib3.connectionpool:\"GET /repositories/4542716/issues?state=all&since=2016-08-28T00%3A00%3A00%2B00%3A00Z&page=7 HTTP/1.1\" 200 None\r\nDEBUG:root:Rate limit delay 0s (4976/5000 resets at 1472992420)\r\nDEBUG:requests.packages.urllib3.connectionpool:\"GET /repositories/4542716/issues?state=all&since=2016-08-28T00%3A00%3A00%2B00%3A00Z&page=8 HTTP/1.1\" 200 None\r\nDEBUG:root:Rate limit delay 0s (4975/5000 resets at 1472992420)\r\nDEBUG:requests.packages.urllib3.connectionpool:\"GET /repositories/4542716/issues?state=all&since=2016-08-28T00%3A00%3A00%2B00%3A00Z&page=9 HTTP/1.1\" 200 None\r\nDEBUG:root:Rate limit delay 0s (4974/5000 resets at 1472992420)\r\nDEBUG:requests.packages.urllib3.connectionpool:\"GET /repositories/4542716/issues?state=all&since=2016-08-28T00%3A00%3A00%2B00%3A00Z&page=10 HTTP/1.1\" 200 None\r\nDEBUG:root:Rate limit delay 0s (4973/5000 resets at 1472992420)\r\nDEBUG:requests.packages.urllib3.connectionpool:\"GET /repositories/4542716/issues?state=all&since=2016-08-28T00%3A00%3A00%2B00%3A00Z&page=11 HTTP/1.1\" 200 None\r\nDEBUG:root:Rate limit delay 0s (4972/5000 resets at 1472992420)\r\nDEBUG:requests.packages.urllib3.connectionpool:\"GET /repositories/4542716/issues?state=all&since=2016-08-28T00%3A00%3A00%2B00%3A00Z&page=12 HTTP/1.1\" 200 None\r\nDEBUG:root:Rate limit delay 0s (4971/5000 resets at 1472992420)\r\nDEBUG:requests.packages.urllib3.connectionpool:\"GET /repositories/4542716/issues?state=all&since=2016-08-28T00%3A00%3A00%2B00%3A00Z&page=13 HTTP/1.1\" 200 None\r\nDEBUG:root:Rate limit delay 0s (4970/5000 resets at 1472992420)\r\nDEBUG:requests.packages.urllib3.connectionpool:\"GET /repositories/4542716/issues?state=all&since=2016-08-28T00%3A00%3A00%2B00%3A00Z&page=14 HTTP/1.1\" 200 None\r\nDEBUG:root:Rate limit delay 0s (4969/5000 resets at 1472992420)\r\nDEBUG:requests.packages.urllib3.connectionpool:\"GET /repositories/4542716/issues?state=all&since=2016-08-28T00%3A00%3A00%2B00%3A00Z&page=15 HTTP/1.1\" 200 None\r\n$ cat test\r\n{\r\n    \"closed_issues\": 47,\r\n    \"closed_prs\": 178,\r\n    \"new_issues\": 54,\r\n    \"new_prs\": 173\r\n}\r\n```","distinct":true,"url":"https://api.github.com/repos/NixOS/nixos-weekly/commits/82a81d51312cd805063c4d205118f29cfb382945"}]}
{"actor":{"display_login":"garbas"}}