{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/djamrozik/go-mmd/pulls/2","id":206470416,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2NDcwNDE2","html_url":"https://github.com/djamrozik/go-mmd/pull/2","diff_url":"https://github.com/djamrozik/go-mmd/pull/2.diff","patch_url":"https://github.com/djamrozik/go-mmd/pull/2.patch","issue_url":"https://api.github.com/repos/djamrozik/go-mmd/issues/2","number":2,"state":"closed","locked":false,"title":"For loop to double buffer size","user":{"login":"djamrozik","id":8813798,"node_id":"MDQ6VXNlcjg4MTM3OTg=","avatar_url":"https://avatars1.githubusercontent.com/u/8813798?v=4","gravatar_id":"","url":"https://api.github.com/users/djamrozik","html_url":"https://github.com/djamrozik","followers_url":"https://api.github.com/users/djamrozik/followers","following_url":"https://api.github.com/users/djamrozik/following{/other_user}","gists_url":"https://api.github.com/users/djamrozik/gists{/gist_id}","starred_url":"https://api.github.com/users/djamrozik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djamrozik/subscriptions","organizations_url":"https://api.github.com/users/djamrozik/orgs","repos_url":"https://api.github.com/users/djamrozik/repos","events_url":"https://api.github.com/users/djamrozik/events{/privacy}","received_events_url":"https://api.github.com/users/djamrozik/received_events","type":"User","site_admin":false},"body":"When we are calling the WriteString method in `buffer.go`, we may need more space than double the current capacity. At the moment we only double capacity, this will double until there is enough capacity and prevent the situation mentioned.\r\n\r\nAn example of that situation:\r\n\r\n","created_at":"2018-08-06T17:46:32Z","updated_at":"2018-09-07T21:38:28Z","closed_at":"2018-09-07T21:38:28Z","merged_at":null,"merge_commit_sha":"b424b19cdb0cc95e1a8eec84666e6412d395a6e4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/djamrozik/go-mmd/pulls/2/commits","review_comments_url":"https://api.github.com/repos/djamrozik/go-mmd/pulls/2/comments","review_comment_url":"https://api.github.com/repos/djamrozik/go-mmd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/djamrozik/go-mmd/issues/2/comments","statuses_url":"https://api.github.com/repos/djamrozik/go-mmd/statuses/04acd3681e98ebcc20c761f987eac18503c07dc3","head":{"label":"djamrozik:continue-increasing-buffer-size","ref":"continue-increasing-buffer-size","sha":"04acd3681e98ebcc20c761f987eac18503c07dc3","user":{"login":"djamrozik","id":8813798,"node_id":"MDQ6VXNlcjg4MTM3OTg=","avatar_url":"https://avatars1.githubusercontent.com/u/8813798?v=4","gravatar_id":"","url":"https://api.github.com/users/djamrozik","html_url":"https://github.com/djamrozik","followers_url":"https://api.github.com/users/djamrozik/followers","following_url":"https://api.github.com/users/djamrozik/following{/other_user}","gists_url":"https://api.github.com/users/djamrozik/gists{/gist_id}","starred_url":"https://api.github.com/users/djamrozik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djamrozik/subscriptions","organizations_url":"https://api.github.com/users/djamrozik/orgs","repos_url":"https://api.github.com/users/djamrozik/repos","events_url":"https://api.github.com/users/djamrozik/events{/privacy}","received_events_url":"https://api.github.com/users/djamrozik/received_events","type":"User","site_admin":false},"repo":{"id":129273939,"node_id":"MDEwOlJlcG9zaXRvcnkxMjkyNzM5Mzk=","name":"go-mmd","full_name":"djamrozik/go-mmd","owner":{"login":"djamrozik","id":8813798,"node_id":"MDQ6VXNlcjg4MTM3OTg=","avatar_url":"https://avatars1.githubusercontent.com/u/8813798?v=4","gravatar_id":"","url":"https://api.github.com/users/djamrozik","html_url":"https://github.com/djamrozik","followers_url":"https://api.github.com/users/djamrozik/followers","following_url":"https://api.github.com/users/djamrozik/following{/other_user}","gists_url":"https://api.github.com/users/djamrozik/gists{/gist_id}","starred_url":"https://api.github.com/users/djamrozik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djamrozik/subscriptions","organizations_url":"https://api.github.com/users/djamrozik/orgs","repos_url":"https://api.github.com/users/djamrozik/repos","events_url":"https://api.github.com/users/djamrozik/events{/privacy}","received_events_url":"https://api.github.com/users/djamrozik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/djamrozik/go-mmd","description":"MMD Driver for go","fork":true,"url":"https://api.github.com/repos/djamrozik/go-mmd","forks_url":"https://api.github.com/repos/djamrozik/go-mmd/forks","keys_url":"https://api.github.com/repos/djamrozik/go-mmd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/djamrozik/go-mmd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/djamrozik/go-mmd/teams","hooks_url":"https://api.github.com/repos/djamrozik/go-mmd/hooks","issue_events_url":"https://api.github.com/repos/djamrozik/go-mmd/issues/events{/number}","events_url":"https://api.github.com/repos/djamrozik/go-mmd/events","assignees_url":"https://api.github.com/repos/djamrozik/go-mmd/assignees{/user}","branches_url":"https://api.github.com/repos/djamrozik/go-mmd/branches{/branch}","tags_url":"https://api.github.com/repos/djamrozik/go-mmd/tags","blobs_url":"https://api.github.com/repos/djamrozik/go-mmd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/djamrozik/go-mmd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/djamrozik/go-mmd/git/refs{/sha}","trees_url":"https://api.github.com/repos/djamrozik/go-mmd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/djamrozik/go-mmd/statuses/{sha}","languages_url":"https://api.github.com/repos/djamrozik/go-mmd/languages","stargazers_url":"https://api.github.com/repos/djamrozik/go-mmd/stargazers","contributors_url":"https://api.github.com/repos/djamrozik/go-mmd/contributors","subscribers_url":"https://api.github.com/repos/djamrozik/go-mmd/subscribers","subscription_url":"https://api.github.com/repos/djamrozik/go-mmd/subscription","commits_url":"https://api.github.com/repos/djamrozik/go-mmd/commits{/sha}","git_commits_url":"https://api.github.com/repos/djamrozik/go-mmd/git/commits{/sha}","comments_url":"https://api.github.com/repos/djamrozik/go-mmd/comments{/number}","issue_comment_url":"https://api.github.com/repos/djamrozik/go-mmd/issues/comments{/number}","contents_url":"https://api.github.com/repos/djamrozik/go-mmd/contents/{+path}","compare_url":"https://api.github.com/repos/djamrozik/go-mmd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/djamrozik/go-mmd/merges","archive_url":"https://api.github.com/repos/djamrozik/go-mmd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/djamrozik/go-mmd/downloads","issues_url":"https://api.github.com/repos/djamrozik/go-mmd/issues{/number}","pulls_url":"https://api.github.com/repos/djamrozik/go-mmd/pulls{/number}","milestones_url":"https://api.github.com/repos/djamrozik/go-mmd/milestones{/number}","notifications_url":"https://api.github.com/repos/djamrozik/go-mmd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/djamrozik/go-mmd/labels{/name}","releases_url":"https://api.github.com/repos/djamrozik/go-mmd/releases{/id}","deployments_url":"https://api.github.com/repos/djamrozik/go-mmd/deployments","created_at":"2018-04-12T15:37:45Z","updated_at":"2018-09-07T21:38:02Z","pushed_at":"2018-09-07T21:38:00Z","git_url":"git://github.com/djamrozik/go-mmd.git","ssh_url":"git@github.com:djamrozik/go-mmd.git","clone_url":"https://github.com/djamrozik/go-mmd.git","svn_url":"https://github.com/djamrozik/go-mmd","homepage":null,"size":64,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"djamrozik:master","ref":"master","sha":"831d3f0f6b2fd48aaed3242ee803737da2d9f22b","user":{"login":"djamrozik","id":8813798,"node_id":"MDQ6VXNlcjg4MTM3OTg=","avatar_url":"https://avatars1.githubusercontent.com/u/8813798?v=4","gravatar_id":"","url":"https://api.github.com/users/djamrozik","html_url":"https://github.com/djamrozik","followers_url":"https://api.github.com/users/djamrozik/followers","following_url":"https://api.github.com/users/djamrozik/following{/other_user}","gists_url":"https://api.github.com/users/djamrozik/gists{/gist_id}","starred_url":"https://api.github.com/users/djamrozik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djamrozik/subscriptions","organizations_url":"https://api.github.com/users/djamrozik/orgs","repos_url":"https://api.github.com/users/djamrozik/repos","events_url":"https://api.github.com/users/djamrozik/events{/privacy}","received_events_url":"https://api.github.com/users/djamrozik/received_events","type":"User","site_admin":false},"repo":{"id":129273939,"node_id":"MDEwOlJlcG9zaXRvcnkxMjkyNzM5Mzk=","name":"go-mmd","full_name":"djamrozik/go-mmd","owner":{"login":"djamrozik","id":8813798,"node_id":"MDQ6VXNlcjg4MTM3OTg=","avatar_url":"https://avatars1.githubusercontent.com/u/8813798?v=4","gravatar_id":"","url":"https://api.github.com/users/djamrozik","html_url":"https://github.com/djamrozik","followers_url":"https://api.github.com/users/djamrozik/followers","following_url":"https://api.github.com/users/djamrozik/following{/other_user}","gists_url":"https://api.github.com/users/djamrozik/gists{/gist_id}","starred_url":"https://api.github.com/users/djamrozik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djamrozik/subscriptions","organizations_url":"https://api.github.com/users/djamrozik/orgs","repos_url":"https://api.github.com/users/djamrozik/repos","events_url":"https://api.github.com/users/djamrozik/events{/privacy}","received_events_url":"https://api.github.com/users/djamrozik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/djamrozik/go-mmd","description":"MMD Driver for go","fork":true,"url":"https://api.github.com/repos/djamrozik/go-mmd","forks_url":"https://api.github.com/repos/djamrozik/go-mmd/forks","keys_url":"https://api.github.com/repos/djamrozik/go-mmd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/djamrozik/go-mmd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/djamrozik/go-mmd/teams","hooks_url":"https://api.github.com/repos/djamrozik/go-mmd/hooks","issue_events_url":"https://api.github.com/repos/djamrozik/go-mmd/issues/events{/number}","events_url":"https://api.github.com/repos/djamrozik/go-mmd/events","assignees_url":"https://api.github.com/repos/djamrozik/go-mmd/assignees{/user}","branches_url":"https://api.github.com/repos/djamrozik/go-mmd/branches{/branch}","tags_url":"https://api.github.com/repos/djamrozik/go-mmd/tags","blobs_url":"https://api.github.com/repos/djamrozik/go-mmd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/djamrozik/go-mmd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/djamrozik/go-mmd/git/refs{/sha}","trees_url":"https://api.github.com/repos/djamrozik/go-mmd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/djamrozik/go-mmd/statuses/{sha}","languages_url":"https://api.github.com/repos/djamrozik/go-mmd/languages","stargazers_url":"https://api.github.com/repos/djamrozik/go-mmd/stargazers","contributors_url":"https://api.github.com/repos/djamrozik/go-mmd/contributors","subscribers_url":"https://api.github.com/repos/djamrozik/go-mmd/subscribers","subscription_url":"https://api.github.com/repos/djamrozik/go-mmd/subscription","commits_url":"https://api.github.com/repos/djamrozik/go-mmd/commits{/sha}","git_commits_url":"https://api.github.com/repos/djamrozik/go-mmd/git/commits{/sha}","comments_url":"https://api.github.com/repos/djamrozik/go-mmd/comments{/number}","issue_comment_url":"https://api.github.com/repos/djamrozik/go-mmd/issues/comments{/number}","contents_url":"https://api.github.com/repos/djamrozik/go-mmd/contents/{+path}","compare_url":"https://api.github.com/repos/djamrozik/go-mmd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/djamrozik/go-mmd/merges","archive_url":"https://api.github.com/repos/djamrozik/go-mmd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/djamrozik/go-mmd/downloads","issues_url":"https://api.github.com/repos/djamrozik/go-mmd/issues{/number}","pulls_url":"https://api.github.com/repos/djamrozik/go-mmd/pulls{/number}","milestones_url":"https://api.github.com/repos/djamrozik/go-mmd/milestones{/number}","notifications_url":"https://api.github.com/repos/djamrozik/go-mmd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/djamrozik/go-mmd/labels{/name}","releases_url":"https://api.github.com/repos/djamrozik/go-mmd/releases{/id}","deployments_url":"https://api.github.com/repos/djamrozik/go-mmd/deployments","created_at":"2018-04-12T15:37:45Z","updated_at":"2018-09-07T21:38:02Z","pushed_at":"2018-09-07T21:38:00Z","git_url":"git://github.com/djamrozik/go-mmd.git","ssh_url":"git@github.com:djamrozik/go-mmd.git","clone_url":"https://github.com/djamrozik/go-mmd.git","svn_url":"https://github.com/djamrozik/go-mmd","homepage":null,"size":64,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/djamrozik/go-mmd/pulls/2"},"html":{"href":"https://github.com/djamrozik/go-mmd/pull/2"},"issue":{"href":"https://api.github.com/repos/djamrozik/go-mmd/issues/2"},"comments":{"href":"https://api.github.com/repos/djamrozik/go-mmd/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/djamrozik/go-mmd/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/djamrozik/go-mmd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/djamrozik/go-mmd/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/djamrozik/go-mmd/statuses/04acd3681e98ebcc20c761f987eac18503c07dc3"}},"author_association":"OWNER","merged":false,"mergeable":true,"rebaseable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":2,"deletions":3,"changed_files":1}}
{"actor":{"display_login":"djamrozik"}}