{"action":"opened","number":5790,"pull_request":{"url":"https://api.github.com/repos/coreos/etcd/pulls/5790","id":75426252,"html_url":"https://github.com/coreos/etcd/pull/5790","diff_url":"https://github.com/coreos/etcd/pull/5790.diff","patch_url":"https://github.com/coreos/etcd/pull/5790.patch","issue_url":"https://api.github.com/repos/coreos/etcd/issues/5790","number":5790,"state":"open","locked":false,"title":"truncateAndAppend: no need the value of 'after' sub 1","user":{"login":"zhonglin6666","id":6994237,"avatar_url":"https://avatars.githubusercontent.com/u/6994237?v=3","gravatar_id":"","url":"https://api.github.com/users/zhonglin6666","html_url":"https://github.com/zhonglin6666","followers_url":"https://api.github.com/users/zhonglin6666/followers","following_url":"https://api.github.com/users/zhonglin6666/following{/other_user}","gists_url":"https://api.github.com/users/zhonglin6666/gists{/gist_id}","starred_url":"https://api.github.com/users/zhonglin6666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhonglin6666/subscriptions","organizations_url":"https://api.github.com/users/zhonglin6666/orgs","repos_url":"https://api.github.com/users/zhonglin6666/repos","events_url":"https://api.github.com/users/zhonglin6666/events{/privacy}","received_events_url":"https://api.github.com/users/zhonglin6666/received_events","type":"User","site_admin":false},"body":"\r\nIn function: truncateAndAppend\r\nafter := ents[0].Index - 1\r\n\r\nBut every time use 'after + 1', so I thought no need init 'after' with sub 1 . As follow\r\nafter := ents[0].Index","created_at":"2016-06-28T06:50:14Z","updated_at":"2016-06-28T06:50:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/coreos/etcd/pulls/5790/commits","review_comments_url":"https://api.github.com/repos/coreos/etcd/pulls/5790/comments","review_comment_url":"https://api.github.com/repos/coreos/etcd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coreos/etcd/issues/5790/comments","statuses_url":"https://api.github.com/repos/coreos/etcd/statuses/4e5da45a28a6cc87f2201fb8aae1a4c3d2a43396","head":{"label":"zhonglin6666:zhonglin6666/truncateAndAppend_after","ref":"zhonglin6666/truncateAndAppend_after","sha":"4e5da45a28a6cc87f2201fb8aae1a4c3d2a43396","user":{"login":"zhonglin6666","id":6994237,"avatar_url":"https://avatars.githubusercontent.com/u/6994237?v=3","gravatar_id":"","url":"https://api.github.com/users/zhonglin6666","html_url":"https://github.com/zhonglin6666","followers_url":"https://api.github.com/users/zhonglin6666/followers","following_url":"https://api.github.com/users/zhonglin6666/following{/other_user}","gists_url":"https://api.github.com/users/zhonglin6666/gists{/gist_id}","starred_url":"https://api.github.com/users/zhonglin6666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhonglin6666/subscriptions","organizations_url":"https://api.github.com/users/zhonglin6666/orgs","repos_url":"https://api.github.com/users/zhonglin6666/repos","events_url":"https://api.github.com/users/zhonglin6666/events{/privacy}","received_events_url":"https://api.github.com/users/zhonglin6666/received_events","type":"User","site_admin":false},"repo":{"id":48843188,"name":"etcd","full_name":"zhonglin6666/etcd","owner":{"login":"zhonglin6666","id":6994237,"avatar_url":"https://avatars.githubusercontent.com/u/6994237?v=3","gravatar_id":"","url":"https://api.github.com/users/zhonglin6666","html_url":"https://github.com/zhonglin6666","followers_url":"https://api.github.com/users/zhonglin6666/followers","following_url":"https://api.github.com/users/zhonglin6666/following{/other_user}","gists_url":"https://api.github.com/users/zhonglin6666/gists{/gist_id}","starred_url":"https://api.github.com/users/zhonglin6666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhonglin6666/subscriptions","organizations_url":"https://api.github.com/users/zhonglin6666/orgs","repos_url":"https://api.github.com/users/zhonglin6666/repos","events_url":"https://api.github.com/users/zhonglin6666/events{/privacy}","received_events_url":"https://api.github.com/users/zhonglin6666/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zhonglin6666/etcd","description":"Distributed reliable key-value store for the most critical data of a distributed system","fork":true,"url":"https://api.github.com/repos/zhonglin6666/etcd","forks_url":"https://api.github.com/repos/zhonglin6666/etcd/forks","keys_url":"https://api.github.com/repos/zhonglin6666/etcd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zhonglin6666/etcd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zhonglin6666/etcd/teams","hooks_url":"https://api.github.com/repos/zhonglin6666/etcd/hooks","issue_events_url":"https://api.github.com/repos/zhonglin6666/etcd/issues/events{/number}","events_url":"https://api.github.com/repos/zhonglin6666/etcd/events","assignees_url":"https://api.github.com/repos/zhonglin6666/etcd/assignees{/user}","branches_url":"https://api.github.com/repos/zhonglin6666/etcd/branches{/branch}","tags_url":"https://api.github.com/repos/zhonglin6666/etcd/tags","blobs_url":"https://api.github.com/repos/zhonglin6666/etcd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zhonglin6666/etcd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zhonglin6666/etcd/git/refs{/sha}","trees_url":"https://api.github.com/repos/zhonglin6666/etcd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zhonglin6666/etcd/statuses/{sha}","languages_url":"https://api.github.com/repos/zhonglin6666/etcd/languages","stargazers_url":"https://api.github.com/repos/zhonglin6666/etcd/stargazers","contributors_url":"https://api.github.com/repos/zhonglin6666/etcd/contributors","subscribers_url":"https://api.github.com/repos/zhonglin6666/etcd/subscribers","subscription_url":"https://api.github.com/repos/zhonglin6666/etcd/subscription","commits_url":"https://api.github.com/repos/zhonglin6666/etcd/commits{/sha}","git_commits_url":"https://api.github.com/repos/zhonglin6666/etcd/git/commits{/sha}","comments_url":"https://api.github.com/repos/zhonglin6666/etcd/comments{/number}","issue_comment_url":"https://api.github.com/repos/zhonglin6666/etcd/issues/comments{/number}","contents_url":"https://api.github.com/repos/zhonglin6666/etcd/contents/{+path}","compare_url":"https://api.github.com/repos/zhonglin6666/etcd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zhonglin6666/etcd/merges","archive_url":"https://api.github.com/repos/zhonglin6666/etcd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zhonglin6666/etcd/downloads","issues_url":"https://api.github.com/repos/zhonglin6666/etcd/issues{/number}","pulls_url":"https://api.github.com/repos/zhonglin6666/etcd/pulls{/number}","milestones_url":"https://api.github.com/repos/zhonglin6666/etcd/milestones{/number}","notifications_url":"https://api.github.com/repos/zhonglin6666/etcd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zhonglin6666/etcd/labels{/name}","releases_url":"https://api.github.com/repos/zhonglin6666/etcd/releases{/id}","deployments_url":"https://api.github.com/repos/zhonglin6666/etcd/deployments","created_at":"2015-12-31T09:07:59Z","updated_at":"2015-12-31T09:08:01Z","pushed_at":"2016-06-28T06:42:37Z","git_url":"git://github.com/zhonglin6666/etcd.git","ssh_url":"git@github.com:zhonglin6666/etcd.git","clone_url":"https://github.com/zhonglin6666/etcd.git","svn_url":"https://github.com/zhonglin6666/etcd","homepage":"https://coreos.com/etcd/docs/latest/","size":22010,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"coreos:master","ref":"master","sha":"0cd5c658aad0372d1651f006b0739d82ca0fc20a","user":{"login":"coreos","id":3730757,"avatar_url":"https://avatars.githubusercontent.com/u/3730757?v=3","gravatar_id":"","url":"https://api.github.com/users/coreos","html_url":"https://github.com/coreos","followers_url":"https://api.github.com/users/coreos/followers","following_url":"https://api.github.com/users/coreos/following{/other_user}","gists_url":"https://api.github.com/users/coreos/gists{/gist_id}","starred_url":"https://api.github.com/users/coreos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreos/subscriptions","organizations_url":"https://api.github.com/users/coreos/orgs","repos_url":"https://api.github.com/users/coreos/repos","events_url":"https://api.github.com/users/coreos/events{/privacy}","received_events_url":"https://api.github.com/users/coreos/received_events","type":"Organization","site_admin":false},"repo":{"id":11225014,"name":"etcd","full_name":"coreos/etcd","owner":{"login":"coreos","id":3730757,"avatar_url":"https://avatars.githubusercontent.com/u/3730757?v=3","gravatar_id":"","url":"https://api.github.com/users/coreos","html_url":"https://github.com/coreos","followers_url":"https://api.github.com/users/coreos/followers","following_url":"https://api.github.com/users/coreos/following{/other_user}","gists_url":"https://api.github.com/users/coreos/gists{/gist_id}","starred_url":"https://api.github.com/users/coreos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreos/subscriptions","organizations_url":"https://api.github.com/users/coreos/orgs","repos_url":"https://api.github.com/users/coreos/repos","events_url":"https://api.github.com/users/coreos/events{/privacy}","received_events_url":"https://api.github.com/users/coreos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coreos/etcd","description":"Distributed reliable key-value store for the most critical data of a distributed system","fork":false,"url":"https://api.github.com/repos/coreos/etcd","forks_url":"https://api.github.com/repos/coreos/etcd/forks","keys_url":"https://api.github.com/repos/coreos/etcd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coreos/etcd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coreos/etcd/teams","hooks_url":"https://api.github.com/repos/coreos/etcd/hooks","issue_events_url":"https://api.github.com/repos/coreos/etcd/issues/events{/number}","events_url":"https://api.github.com/repos/coreos/etcd/events","assignees_url":"https://api.github.com/repos/coreos/etcd/assignees{/user}","branches_url":"https://api.github.com/repos/coreos/etcd/branches{/branch}","tags_url":"https://api.github.com/repos/coreos/etcd/tags","blobs_url":"https://api.github.com/repos/coreos/etcd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coreos/etcd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coreos/etcd/git/refs{/sha}","trees_url":"https://api.github.com/repos/coreos/etcd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coreos/etcd/statuses/{sha}","languages_url":"https://api.github.com/repos/coreos/etcd/languages","stargazers_url":"https://api.github.com/repos/coreos/etcd/stargazers","contributors_url":"https://api.github.com/repos/coreos/etcd/contributors","subscribers_url":"https://api.github.com/repos/coreos/etcd/subscribers","subscription_url":"https://api.github.com/repos/coreos/etcd/subscription","commits_url":"https://api.github.com/repos/coreos/etcd/commits{/sha}","git_commits_url":"https://api.github.com/repos/coreos/etcd/git/commits{/sha}","comments_url":"https://api.github.com/repos/coreos/etcd/comments{/number}","issue_comment_url":"https://api.github.com/repos/coreos/etcd/issues/comments{/number}","contents_url":"https://api.github.com/repos/coreos/etcd/contents/{+path}","compare_url":"https://api.github.com/repos/coreos/etcd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coreos/etcd/merges","archive_url":"https://api.github.com/repos/coreos/etcd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coreos/etcd/downloads","issues_url":"https://api.github.com/repos/coreos/etcd/issues{/number}","pulls_url":"https://api.github.com/repos/coreos/etcd/pulls{/number}","milestones_url":"https://api.github.com/repos/coreos/etcd/milestones{/number}","notifications_url":"https://api.github.com/repos/coreos/etcd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coreos/etcd/labels{/name}","releases_url":"https://api.github.com/repos/coreos/etcd/releases{/id}","deployments_url":"https://api.github.com/repos/coreos/etcd/deployments","created_at":"2013-07-06T21:57:21Z","updated_at":"2016-06-28T04:19:10Z","pushed_at":"2016-06-28T06:50:14Z","git_url":"git://github.com/coreos/etcd.git","ssh_url":"git@github.com:coreos/etcd.git","clone_url":"https://github.com/coreos/etcd.git","svn_url":"https://github.com/coreos/etcd","homepage":"https://coreos.com/etcd/docs/latest/","size":32764,"stargazers_count":10027,"watchers_count":10027,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1689,"mirror_url":null,"open_issues_count":126,"forks":1689,"open_issues":126,"watchers":10027,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coreos/etcd/pulls/5790"},"html":{"href":"https://github.com/coreos/etcd/pull/5790"},"issue":{"href":"https://api.github.com/repos/coreos/etcd/issues/5790"},"comments":{"href":"https://api.github.com/repos/coreos/etcd/issues/5790/comments"},"review_comments":{"href":"https://api.github.com/repos/coreos/etcd/pulls/5790/comments"},"review_comment":{"href":"https://api.github.com/repos/coreos/etcd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coreos/etcd/pulls/5790/commits"},"statuses":{"href":"https://api.github.com/repos/coreos/etcd/statuses/4e5da45a28a6cc87f2201fb8aae1a4c3d2a43396"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":8,"deletions":8,"changed_files":1}}
{"actor":{"display_login":"zhonglin6666"}}