{"action":"created","comment":{"url":"https://api.github.com/repos/limetext/commands/pulls/comments/74289385","id":74289385,"diff_hunk":"@@ -8,19 +8,27 @@ import (\n \t\"strings\"\n \t\"unicode\"\n \n-\t. \"github.com/limetext/backend\"\n+\t\"github.com/limetext/backend\"\n )\n \n type (\n+\t// ToggleComment converts the current selection into a comment,\n+\t// or add a comment depending if the selection contains any commented lines\n+\t// if it is already a comment, converts it back into plain text\n+\t// it'll add the comment symbol at the first character of the selection\n+\t// regardless if the line is already commented.\n+\t// While removing a comment during a toggle, it'll follow the same logic as above\n+\t// and it'll only remove one layer of comments","path":"comment.go","position":15,"original_position":15,"commit_id":"c715d52dacc4e69175c9bce13577726d7b647a0a","original_commit_id":"c715d52dacc4e69175c9bce13577726d7b647a0a","user":{"login":"thewhitetulip","id":6261877,"avatar_url":"https://avatars.githubusercontent.com/u/6261877?v=3","gravatar_id":"","url":"https://api.github.com/users/thewhitetulip","html_url":"https://github.com/thewhitetulip","followers_url":"https://api.github.com/users/thewhitetulip/followers","following_url":"https://api.github.com/users/thewhitetulip/following{/other_user}","gists_url":"https://api.github.com/users/thewhitetulip/gists{/gist_id}","starred_url":"https://api.github.com/users/thewhitetulip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thewhitetulip/subscriptions","organizations_url":"https://api.github.com/users/thewhitetulip/orgs","repos_url":"https://api.github.com/users/thewhitetulip/repos","events_url":"https://api.github.com/users/thewhitetulip/events{/privacy}","received_events_url":"https://api.github.com/users/thewhitetulip/received_events","type":"User","site_admin":false},"body":"Perfecto!","created_at":"2016-08-10T17:22:38Z","updated_at":"2016-08-10T17:22:38Z","html_url":"https://github.com/limetext/commands/pull/8#discussion_r74289385","pull_request_url":"https://api.github.com/repos/limetext/commands/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/limetext/commands/pulls/comments/74289385"},"html":{"href":"https://github.com/limetext/commands/pull/8#discussion_r74289385"},"pull_request":{"href":"https://api.github.com/repos/limetext/commands/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/limetext/commands/pulls/8","id":80818088,"html_url":"https://github.com/limetext/commands/pull/8","diff_url":"https://github.com/limetext/commands/pull/8.diff","patch_url":"https://github.com/limetext/commands/pull/8.patch","issue_url":"https://api.github.com/repos/limetext/commands/issues/8","number":8,"state":"open","locked":false,"title":"Changes made to follow Go coding standards","user":{"login":"thewhitetulip","id":6261877,"avatar_url":"https://avatars.githubusercontent.com/u/6261877?v=3","gravatar_id":"","url":"https://api.github.com/users/thewhitetulip","html_url":"https://github.com/thewhitetulip","followers_url":"https://api.github.com/users/thewhitetulip/followers","following_url":"https://api.github.com/users/thewhitetulip/following{/other_user}","gists_url":"https://api.github.com/users/thewhitetulip/gists{/gist_id}","starred_url":"https://api.github.com/users/thewhitetulip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thewhitetulip/subscriptions","organizations_url":"https://api.github.com/users/thewhitetulip/orgs","repos_url":"https://api.github.com/users/thewhitetulip/repos","events_url":"https://api.github.com/users/thewhitetulip/events{/privacy}","received_events_url":"https://api.github.com/users/thewhitetulip/received_events","type":"User","site_admin":false},"body":"Comments have been changed to follow this\r\n\r\n```\r\n//TypeCommand does this and that\r\nTypeCommand\r\n```\r\n\r\nrather than \r\n`//the TypeCommand is a command which does this and that`\r\n\r\nvariable names should be in CamelCase.\r\n\r\nAdded comments wherever necessary","created_at":"2016-08-10T15:44:49Z","updated_at":"2016-08-10T17:22:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d08e4f410c89eb2c612827b2f5848df933477ae","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/limetext/commands/pulls/8/commits","review_comments_url":"https://api.github.com/repos/limetext/commands/pulls/8/comments","review_comment_url":"https://api.github.com/repos/limetext/commands/pulls/comments{/number}","comments_url":"https://api.github.com/repos/limetext/commands/issues/8/comments","statuses_url":"https://api.github.com/repos/limetext/commands/statuses/c715d52dacc4e69175c9bce13577726d7b647a0a","head":{"label":"thewhitetulip:master","ref":"master","sha":"c715d52dacc4e69175c9bce13577726d7b647a0a","user":{"login":"thewhitetulip","id":6261877,"avatar_url":"https://avatars.githubusercontent.com/u/6261877?v=3","gravatar_id":"","url":"https://api.github.com/users/thewhitetulip","html_url":"https://github.com/thewhitetulip","followers_url":"https://api.github.com/users/thewhitetulip/followers","following_url":"https://api.github.com/users/thewhitetulip/following{/other_user}","gists_url":"https://api.github.com/users/thewhitetulip/gists{/gist_id}","starred_url":"https://api.github.com/users/thewhitetulip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thewhitetulip/subscriptions","organizations_url":"https://api.github.com/users/thewhitetulip/orgs","repos_url":"https://api.github.com/users/thewhitetulip/repos","events_url":"https://api.github.com/users/thewhitetulip/events{/privacy}","received_events_url":"https://api.github.com/users/thewhitetulip/received_events","type":"User","site_admin":false},"repo":{"id":65394733,"name":"commands","full_name":"thewhitetulip/commands","owner":{"login":"thewhitetulip","id":6261877,"avatar_url":"https://avatars.githubusercontent.com/u/6261877?v=3","gravatar_id":"","url":"https://api.github.com/users/thewhitetulip","html_url":"https://github.com/thewhitetulip","followers_url":"https://api.github.com/users/thewhitetulip/followers","following_url":"https://api.github.com/users/thewhitetulip/following{/other_user}","gists_url":"https://api.github.com/users/thewhitetulip/gists{/gist_id}","starred_url":"https://api.github.com/users/thewhitetulip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thewhitetulip/subscriptions","organizations_url":"https://api.github.com/users/thewhitetulip/orgs","repos_url":"https://api.github.com/users/thewhitetulip/repos","events_url":"https://api.github.com/users/thewhitetulip/events{/privacy}","received_events_url":"https://api.github.com/users/thewhitetulip/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thewhitetulip/commands","description":"Lime commands","fork":true,"url":"https://api.github.com/repos/thewhitetulip/commands","forks_url":"https://api.github.com/repos/thewhitetulip/commands/forks","keys_url":"https://api.github.com/repos/thewhitetulip/commands/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thewhitetulip/commands/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thewhitetulip/commands/teams","hooks_url":"https://api.github.com/repos/thewhitetulip/commands/hooks","issue_events_url":"https://api.github.com/repos/thewhitetulip/commands/issues/events{/number}","events_url":"https://api.github.com/repos/thewhitetulip/commands/events","assignees_url":"https://api.github.com/repos/thewhitetulip/commands/assignees{/user}","branches_url":"https://api.github.com/repos/thewhitetulip/commands/branches{/branch}","tags_url":"https://api.github.com/repos/thewhitetulip/commands/tags","blobs_url":"https://api.github.com/repos/thewhitetulip/commands/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thewhitetulip/commands/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thewhitetulip/commands/git/refs{/sha}","trees_url":"https://api.github.com/repos/thewhitetulip/commands/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thewhitetulip/commands/statuses/{sha}","languages_url":"https://api.github.com/repos/thewhitetulip/commands/languages","stargazers_url":"https://api.github.com/repos/thewhitetulip/commands/stargazers","contributors_url":"https://api.github.com/repos/thewhitetulip/commands/contributors","subscribers_url":"https://api.github.com/repos/thewhitetulip/commands/subscribers","subscription_url":"https://api.github.com/repos/thewhitetulip/commands/subscription","commits_url":"https://api.github.com/repos/thewhitetulip/commands/commits{/sha}","git_commits_url":"https://api.github.com/repos/thewhitetulip/commands/git/commits{/sha}","comments_url":"https://api.github.com/repos/thewhitetulip/commands/comments{/number}","issue_comment_url":"https://api.github.com/repos/thewhitetulip/commands/issues/comments{/number}","contents_url":"https://api.github.com/repos/thewhitetulip/commands/contents/{+path}","compare_url":"https://api.github.com/repos/thewhitetulip/commands/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thewhitetulip/commands/merges","archive_url":"https://api.github.com/repos/thewhitetulip/commands/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thewhitetulip/commands/downloads","issues_url":"https://api.github.com/repos/thewhitetulip/commands/issues{/number}","pulls_url":"https://api.github.com/repos/thewhitetulip/commands/pulls{/number}","milestones_url":"https://api.github.com/repos/thewhitetulip/commands/milestones{/number}","notifications_url":"https://api.github.com/repos/thewhitetulip/commands/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thewhitetulip/commands/labels{/name}","releases_url":"https://api.github.com/repos/thewhitetulip/commands/releases{/id}","deployments_url":"https://api.github.com/repos/thewhitetulip/commands/deployments","created_at":"2016-08-10T15:38:34Z","updated_at":"2016-08-10T15:38:35Z","pushed_at":"2016-08-10T17:09:32Z","git_url":"git://github.com/thewhitetulip/commands.git","ssh_url":"git@github.com:thewhitetulip/commands.git","clone_url":"https://github.com/thewhitetulip/commands.git","svn_url":"https://github.com/thewhitetulip/commands","homepage":"","size":94,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"limetext:master","ref":"master","sha":"66e4c0b4adac53b3275c097b8aa5cf1ba49babd0","user":{"login":"limetext","id":5825890,"avatar_url":"https://avatars.githubusercontent.com/u/5825890?v=3","gravatar_id":"","url":"https://api.github.com/users/limetext","html_url":"https://github.com/limetext","followers_url":"https://api.github.com/users/limetext/followers","following_url":"https://api.github.com/users/limetext/following{/other_user}","gists_url":"https://api.github.com/users/limetext/gists{/gist_id}","starred_url":"https://api.github.com/users/limetext/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/limetext/subscriptions","organizations_url":"https://api.github.com/users/limetext/orgs","repos_url":"https://api.github.com/users/limetext/repos","events_url":"https://api.github.com/users/limetext/events{/privacy}","received_events_url":"https://api.github.com/users/limetext/received_events","type":"Organization","site_admin":false},"repo":{"id":56259384,"name":"commands","full_name":"limetext/commands","owner":{"login":"limetext","id":5825890,"avatar_url":"https://avatars.githubusercontent.com/u/5825890?v=3","gravatar_id":"","url":"https://api.github.com/users/limetext","html_url":"https://github.com/limetext","followers_url":"https://api.github.com/users/limetext/followers","following_url":"https://api.github.com/users/limetext/following{/other_user}","gists_url":"https://api.github.com/users/limetext/gists{/gist_id}","starred_url":"https://api.github.com/users/limetext/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/limetext/subscriptions","organizations_url":"https://api.github.com/users/limetext/orgs","repos_url":"https://api.github.com/users/limetext/repos","events_url":"https://api.github.com/users/limetext/events{/privacy}","received_events_url":"https://api.github.com/users/limetext/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/limetext/commands","description":"Lime commands","fork":false,"url":"https://api.github.com/repos/limetext/commands","forks_url":"https://api.github.com/repos/limetext/commands/forks","keys_url":"https://api.github.com/repos/limetext/commands/keys{/key_id}","collaborators_url":"https://api.github.com/repos/limetext/commands/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/limetext/commands/teams","hooks_url":"https://api.github.com/repos/limetext/commands/hooks","issue_events_url":"https://api.github.com/repos/limetext/commands/issues/events{/number}","events_url":"https://api.github.com/repos/limetext/commands/events","assignees_url":"https://api.github.com/repos/limetext/commands/assignees{/user}","branches_url":"https://api.github.com/repos/limetext/commands/branches{/branch}","tags_url":"https://api.github.com/repos/limetext/commands/tags","blobs_url":"https://api.github.com/repos/limetext/commands/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/limetext/commands/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/limetext/commands/git/refs{/sha}","trees_url":"https://api.github.com/repos/limetext/commands/git/trees{/sha}","statuses_url":"https://api.github.com/repos/limetext/commands/statuses/{sha}","languages_url":"https://api.github.com/repos/limetext/commands/languages","stargazers_url":"https://api.github.com/repos/limetext/commands/stargazers","contributors_url":"https://api.github.com/repos/limetext/commands/contributors","subscribers_url":"https://api.github.com/repos/limetext/commands/subscribers","subscription_url":"https://api.github.com/repos/limetext/commands/subscription","commits_url":"https://api.github.com/repos/limetext/commands/commits{/sha}","git_commits_url":"https://api.github.com/repos/limetext/commands/git/commits{/sha}","comments_url":"https://api.github.com/repos/limetext/commands/comments{/number}","issue_comment_url":"https://api.github.com/repos/limetext/commands/issues/comments{/number}","contents_url":"https://api.github.com/repos/limetext/commands/contents/{+path}","compare_url":"https://api.github.com/repos/limetext/commands/compare/{base}...{head}","merges_url":"https://api.github.com/repos/limetext/commands/merges","archive_url":"https://api.github.com/repos/limetext/commands/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/limetext/commands/downloads","issues_url":"https://api.github.com/repos/limetext/commands/issues{/number}","pulls_url":"https://api.github.com/repos/limetext/commands/pulls{/number}","milestones_url":"https://api.github.com/repos/limetext/commands/milestones{/number}","notifications_url":"https://api.github.com/repos/limetext/commands/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/limetext/commands/labels{/name}","releases_url":"https://api.github.com/repos/limetext/commands/releases{/id}","deployments_url":"https://api.github.com/repos/limetext/commands/deployments","created_at":"2016-04-14T18:05:58Z","updated_at":"2016-04-19T20:20:35Z","pushed_at":"2016-08-10T17:09:32Z","git_url":"git://github.com/limetext/commands.git","ssh_url":"git@github.com:limetext/commands.git","clone_url":"https://github.com/limetext/commands.git","svn_url":"https://github.com/limetext/commands","homepage":"","size":77,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/limetext/commands/pulls/8"},"html":{"href":"https://github.com/limetext/commands/pull/8"},"issue":{"href":"https://api.github.com/repos/limetext/commands/issues/8"},"comments":{"href":"https://api.github.com/repos/limetext/commands/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/limetext/commands/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/limetext/commands/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/limetext/commands/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/limetext/commands/statuses/c715d52dacc4e69175c9bce13577726d7b647a0a"}}}}
{"actor":{"display_login":"thewhitetulip"}}