{"action":"created","issue":{"url":"https://api.github.com/repos/yoshuawuyts/changelog/issues/1","repository_url":"https://api.github.com/repos/yoshuawuyts/changelog","labels_url":"https://api.github.com/repos/yoshuawuyts/changelog/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/yoshuawuyts/changelog/issues/1/comments","events_url":"https://api.github.com/repos/yoshuawuyts/changelog/issues/1/events","html_url":"https://github.com/yoshuawuyts/changelog/issues/1","id":353147378,"node_id":"MDU6SXNzdWUzNTMxNDczNzg=","number":1,"title":"Print stats","user":{"login":"yoshuawuyts","id":2467194,"node_id":"MDQ6VXNlcjI0NjcxOTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2467194?v=4","gravatar_id":"","url":"https://api.github.com/users/yoshuawuyts","html_url":"https://github.com/yoshuawuyts","followers_url":"https://api.github.com/users/yoshuawuyts/followers","following_url":"https://api.github.com/users/yoshuawuyts/following{/other_user}","gists_url":"https://api.github.com/users/yoshuawuyts/gists{/gist_id}","starred_url":"https://api.github.com/users/yoshuawuyts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoshuawuyts/subscriptions","organizations_url":"https://api.github.com/users/yoshuawuyts/orgs","repos_url":"https://api.github.com/users/yoshuawuyts/repos","events_url":"https://api.github.com/users/yoshuawuyts/events{/privacy}","received_events_url":"https://api.github.com/users/yoshuawuyts/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-22T22:20:20Z","updated_at":"2018-08-22T23:53:58Z","closed_at":"2018-08-22T23:53:58Z","author_association":"OWNER","body":"# Feature Request\r\n## Summary\r\nIncluding the stat diff can be of great help to signal what has changed.\r\n\r\n## Motivation\r\nWe need more information than just the commit names. If commits are poorly written, they're not always very descriptive.\r\n\r\n## Expected Behavior\r\n```diff\r\n src/commit.rs      |  18 +++++--\r\n src/index.rs       |  76 +++++++++++++++++++++++++++++++-\r\n src/lib.rs         |   2 +-\r\n src/tree.rs        | 132 ++++++++++++++++++++++++++++++++++++++++++++++++++++--\r\n systest/Cargo.toml |   2 +-\r\n systest/build.rs   |   2 +-\r\n 6 files changed, 221 insertions(+), 11 deletions(-)\r\n```\r\n\r\nFrom the example code:\r\n```rust\r\nfn print_stats(diff: &Diff, args: &Args) -> Result<(), Error> {\r\n    let stats = try!(diff.stats());\r\n    let mut format = git2::DiffStatsFormat::NONE;\r\n    if args.flag_stat {\r\n        format |= git2::DiffStatsFormat::FULL;\r\n    }\r\n    if args.flag_shortstat {\r\n        format |= git2::DiffStatsFormat::SHORT;\r\n    }\r\n    if args.flag_numstat {\r\n        format |= git2::DiffStatsFormat::NUMBER;\r\n    }\r\n    if args.flag_summary {\r\n        format |= git2::DiffStatsFormat::INCLUDE_SUMMARY;\r\n    }\r\n    let buf = try!(stats.to_buf(format, 80));\r\n    print!(\"{}\", str::from_utf8(&*buf).unwrap());\r\n    Ok(())\r\n}\r\n```\r\n\r\n## Drawbacks\r\nNone to my knowledge.\r\n\r\n## Rationale and alternatives\r\nIt's pretty low hanging fruit to signal more about the changes that occurred. And less involved than going all-in on parsers.\r\n\r\n## Unresolved Questions\r\nNone to my knowledge.\r\n"},"comment":{"url":"https://api.github.com/repos/yoshuawuyts/changelog/issues/comments/415225358","html_url":"https://github.com/yoshuawuyts/changelog/issues/1#issuecomment-415225358","issue_url":"https://api.github.com/repos/yoshuawuyts/changelog/issues/1","id":415225358,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTIyNTM1OA==","user":{"login":"yoshuawuyts","id":2467194,"node_id":"MDQ6VXNlcjI0NjcxOTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2467194?v=4","gravatar_id":"","url":"https://api.github.com/users/yoshuawuyts","html_url":"https://github.com/yoshuawuyts","followers_url":"https://api.github.com/users/yoshuawuyts/followers","following_url":"https://api.github.com/users/yoshuawuyts/following{/other_user}","gists_url":"https://api.github.com/users/yoshuawuyts/gists{/gist_id}","starred_url":"https://api.github.com/users/yoshuawuyts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoshuawuyts/subscriptions","organizations_url":"https://api.github.com/users/yoshuawuyts/orgs","repos_url":"https://api.github.com/users/yoshuawuyts/repos","events_url":"https://api.github.com/users/yoshuawuyts/events{/privacy}","received_events_url":"https://api.github.com/users/yoshuawuyts/received_events","type":"User","site_admin":false},"created_at":"2018-08-22T23:53:58Z","updated_at":"2018-08-22T23:53:58Z","author_association":"OWNER","body":"Done!"}}
{"actor":{"display_login":"yoshuawuyts"}}