payload: {"action":"created","issue":{"url":"https://api.github.com/repos/Allenxuxu/ringbuffer/issues/1","repository_url":"https://api.github.com/repos/Allenxuxu/ringbuffer","labels_url":"https://api.github.com/repos/Allenxuxu/ringbuffer/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Allenxuxu/ringbuffer/issues/1/comments","events_url":"https://api.github.com/repos/Allenxuxu/ringbuffer/issues/1/events","html_url":"https://github.com/Allenxuxu/ringbuffer/pull/1","id":497836978,"node_id":"MDExOlB1bGxSZXF1ZXN0MzIwODkxNDMy","number":1,"title":"Refactor","user":{"login":"Harold2017","id":29817247,"node_id":"MDQ6VXNlcjI5ODE3MjQ3","avatar_url":"https://avatars3.githubusercontent.com/u/29817247?v=4","gravatar_id":"","url":"https://api.github.com/users/Harold2017","html_url":"https://github.com/Harold2017","followers_url":"https://api.github.com/users/Harold2017/followers","following_url":"https://api.github.com/users/Harold2017/following{/other_user}","gists_url":"https://api.github.com/users/Harold2017/gists{/gist_id}","starred_url":"https://api.github.com/users/Harold2017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Harold2017/subscriptions","organizations_url":"https://api.github.com/users/Harold2017/orgs","repos_url":"https://api.github.com/users/Harold2017/repos","events_url":"https://api.github.com/users/Harold2017/events{/privacy}","received_events_url":"https://api.github.com/users/Harold2017/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-09-24T17:53:47Z","updated_at":"2019-09-26T11:34:42Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/Allenxuxu/ringbuffer/pulls/1","html_url":"https://github.com/Allenxuxu/ringbuffer/pull/1","diff_url":"https://github.com/Allenxuxu/ringbuffer/pull/1.diff","patch_url":"https://github.com/Allenxuxu/ringbuffer/pull/1.patch"},"body":"## Refactor\r\n\r\n- short branch with early break\r\n- remove redundant vars and statements\r\n\r\n## Suggestion\r\n\r\n- rename\r\n\r\n```Go\r\ntype RingBuffer struct {\r\n\tbuf      []byte\r\n\tcap      uint\r\n\treadPtr  uint\r\n\twritePtr uint\r\n\tisEmpty  bool\r\n}\r\n// RetrieveAll / Retrieve -> ClearAll / Clear\r\n// Length / Free -> BytesAvailableRead / BytesAvailableWrite\r\n// makeSpace -> allocate or addCap\r\n// .etc\r\n```\r\n\r\n- refactor atomic_ring_buffer as well"},"comment":{"url":"https://api.github.com/repos/Allenxuxu/ringbuffer/issues/comments/535463107","html_url":"https://github.com/Allenxuxu/ringbuffer/pull/1#issuecomment-535463107","issue_url":"https://api.github.com/repos/Allenxuxu/ringbuffer/issues/1","id":535463107,"node_id":"MDEyOklzc3VlQ29tbWVudDUzNTQ2MzEwNw==","user":{"login":"Harold2017","id":29817247,"node_id":"MDQ6VXNlcjI5ODE3MjQ3","avatar_url":"https://avatars3.githubusercontent.com/u/29817247?v=4","gravatar_id":"","url":"https://api.github.com/users/Harold2017","html_url":"https://github.com/Harold2017","followers_url":"https://api.github.com/users/Harold2017/followers","following_url":"https://api.github.com/users/Harold2017/following{/other_user}","gists_url":"https://api.github.com/users/Harold2017/gists{/gist_id}","starred_url":"https://api.github.com/users/Harold2017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Harold2017/subscriptions","organizations_url":"https://api.github.com/users/Harold2017/orgs","repos_url":"https://api.github.com/users/Harold2017/repos","events_url":"https://api.github.com/users/Harold2017/events{/privacy}","received_events_url":"https://api.github.com/users/Harold2017/received_events","type":"User","site_admin":false},"created_at":"2019-09-26T11:34:42Z","updated_at":"2019-09-26T11:34:42Z","author_association":"NONE","body":"并不会有bug的，注意我的code里最后cast的还是s，而不是x和sh，你可以试试看"}}
other: {"actor":{"display_login":"Harold2017"}}