{"action":"created","issue":{"url":"https://api.github.com/repos/github/github-services/issues/1075","labels_url":"https://api.github.com/repos/github/github-services/issues/1075/labels{/name}","comments_url":"https://api.github.com/repos/github/github-services/issues/1075/comments","events_url":"https://api.github.com/repos/github/github-services/issues/1075/events","html_url":"https://github.com/github/github-services/pull/1075","id":101562980,"number":1075,"title":"Twitter: Preserve commit message whitespace","user":{"login":"parshap","id":332258,"avatar_url":"https://avatars.githubusercontent.com/u/332258?v=3","gravatar_id":"","url":"https://api.github.com/users/parshap","html_url":"https://github.com/parshap","followers_url":"https://api.github.com/users/parshap/followers","following_url":"https://api.github.com/users/parshap/following{/other_user}","gists_url":"https://api.github.com/users/parshap/gists{/gist_id}","starred_url":"https://api.github.com/users/parshap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parshap/subscriptions","organizations_url":"https://api.github.com/users/parshap/orgs","repos_url":"https://api.github.com/users/parshap/repos","events_url":"https://api.github.com/users/parshap/events{/privacy}","received_events_url":"https://api.github.com/users/parshap/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-18T03:32:50Z","updated_at":"2015-08-19T20:28:57Z","closed_at":"2015-08-19T20:28:20Z","pull_request":{"url":"https://api.github.com/repos/github/github-services/pulls/1075","html_url":"https://github.com/github/github-services/pull/1075","diff_url":"https://github.com/github/github-services/pull/1075.diff","patch_url":"https://github.com/github/github-services/pull/1075.patch"},"body":"When tweeting commit messages, preserve the original commit message whitespace and tweet it as-is.\r\n\r\nPreviously, `String#split(\" \")` was used to process words, [which splits on *any* whitespace and with runs of contiguous whitespace characters ignored][1]. When the split array was turned back into a string with `Array#join(\" \")`, original whitespace characters were lost and replaced by a single space character.\r\n\r\nNow, `String#gsub` and a regular expression is used to process words, which will preserve the original whitespace.\r\n\r\nFixes #959.\r\n\r\n/cc @domenic @kdaigle\r\n\r\n[1]: http://ruby-doc.org/core-2.2.0/String.html#method-i-split"},"comment":{"url":"https://api.github.com/repos/github/github-services/issues/comments/132771878","html_url":"https://github.com/github/github-services/pull/1075#issuecomment-132771878","issue_url":"https://api.github.com/repos/github/github-services/issues/1075","id":132771878,"user":{"login":"domenic","id":617481,"avatar_url":"https://avatars.githubusercontent.com/u/617481?v=3","gravatar_id":"","url":"https://api.github.com/users/domenic","html_url":"https://github.com/domenic","followers_url":"https://api.github.com/users/domenic/followers","following_url":"https://api.github.com/users/domenic/following{/other_user}","gists_url":"https://api.github.com/users/domenic/gists{/gist_id}","starred_url":"https://api.github.com/users/domenic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domenic/subscriptions","organizations_url":"https://api.github.com/users/domenic/orgs","repos_url":"https://api.github.com/users/domenic/repos","events_url":"https://api.github.com/users/domenic/events{/privacy}","received_events_url":"https://api.github.com/users/domenic/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T20:28:57Z","updated_at":"2015-08-19T20:28:57Z","body":"<3 <3 <3 @parshap "}}