{"action":"created","comment":{"url":"https://api.github.com/repos/atom/atom/pulls/comments/24210401","id":24210401,"diff_hunk":"@@ -0,0 +1,131 @@\n+{Model} = require 'theorist'\n+{CompositeDisposable, Emitter} = require 'event-kit'\n+{Gutter} = require './gutter'\n+\n+# This class encapsulates the logic for adding and modifying the gutters on a\n+# TextEditor.\n+\n+module.exports =\n+class GutterContainer extends Model","path":"src/gutter-container.coffee","position":9,"original_position":9,"commit_id":"0d1f2fefa21cda291ec5aa751fa344f3a83841e7","original_commit_id":"0d1f2fefa21cda291ec5aa751fa344f3a83841e7","user":{"login":"nathansobo","id":1789,"avatar_url":"https://avatars.githubusercontent.com/u/1789?v=3","gravatar_id":"","url":"https://api.github.com/users/nathansobo","html_url":"https://github.com/nathansobo","followers_url":"https://api.github.com/users/nathansobo/followers","following_url":"https://api.github.com/users/nathansobo/following{/other_user}","gists_url":"https://api.github.com/users/nathansobo/gists{/gist_id}","starred_url":"https://api.github.com/users/nathansobo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathansobo/subscriptions","organizations_url":"https://api.github.com/users/nathansobo/orgs","repos_url":"https://api.github.com/users/nathansobo/repos","events_url":"https://api.github.com/users/nathansobo/events{/privacy}","received_events_url":"https://api.github.com/users/nathansobo/received_events","type":"User","site_admin":true},"body":"I don't think you should extend `Model`. I know we do it elsewhere but eventually I want to rip it all out and go simpler.","created_at":"2015-02-05T23:29:52Z","updated_at":"2015-02-05T23:29:52Z","html_url":"https://github.com/atom/atom/pull/5217#discussion_r24210401","pull_request_url":"https://api.github.com/repos/atom/atom/pulls/5217","_links":{"self":{"href":"https://api.github.com/repos/atom/atom/pulls/comments/24210401"},"html":{"href":"https://github.com/atom/atom/pull/5217#discussion_r24210401"},"pull_request":{"href":"https://api.github.com/repos/atom/atom/pulls/5217"}}},"pull_request":{"url":"https://api.github.com/repos/atom/atom/pulls/5217","id":27863543,"html_url":"https://github.com/atom/atom/pull/5217","diff_url":"https://github.com/atom/atom/pull/5217.diff","patch_url":"https://github.com/atom/atom/pull/5217.patch","issue_url":"https://api.github.com/repos/atom/atom/issues/5217","number":5217,"state":"open","locked":false,"title":"[Gutter] Implement API for Creating Custom Gutters","user":{"login":"jssln","id":1017111,"avatar_url":"https://avatars.githubusercontent.com/u/1017111?v=3","gravatar_id":"","url":"https://api.github.com/users/jssln","html_url":"https://github.com/jssln","followers_url":"https://api.github.com/users/jssln/followers","following_url":"https://api.github.com/users/jssln/following{/other_user}","gists_url":"https://api.github.com/users/jssln/gists{/gist_id}","starred_url":"https://api.github.com/users/jssln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jssln/subscriptions","organizations_url":"https://api.github.com/users/jssln/orgs","repos_url":"https://api.github.com/users/jssln/repos","events_url":"https://api.github.com/users/jssln/events{/privacy}","received_events_url":"https://api.github.com/users/jssln/received_events","type":"User","site_admin":false},"body":"Summary: This adds hide() and show() methods to GutterComponent. This is the first step in a series of changes to implement the gutter API described in https://github.com/atom/atom/issues/5038.\r\n\r\nTest Plan: Manually tested by setting `isHiddenInitially` to `true`, and saw the gutter hidden when the workspace loaded. + Unit tests.","created_at":"2015-01-22T18:00:40Z","updated_at":"2015-02-05T23:29:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"49236e06ab470daca3e1491b10a84397e212ed92","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/atom/atom/pulls/5217/commits","review_comments_url":"https://api.github.com/repos/atom/atom/pulls/5217/comments","review_comment_url":"https://api.github.com/repos/atom/atom/pulls/comments/{number}","comments_url":"https://api.github.com/repos/atom/atom/issues/5217/comments","statuses_url":"https://api.github.com/repos/atom/atom/statuses/0d1f2fefa21cda291ec5aa751fa344f3a83841e7","head":{"label":"jssln:gutter","ref":"gutter","sha":"0d1f2fefa21cda291ec5aa751fa344f3a83841e7","user":{"login":"jssln","id":1017111,"avatar_url":"https://avatars.githubusercontent.com/u/1017111?v=3","gravatar_id":"","url":"https://api.github.com/users/jssln","html_url":"https://github.com/jssln","followers_url":"https://api.github.com/users/jssln/followers","following_url":"https://api.github.com/users/jssln/following{/other_user}","gists_url":"https://api.github.com/users/jssln/gists{/gist_id}","starred_url":"https://api.github.com/users/jssln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jssln/subscriptions","organizations_url":"https://api.github.com/users/jssln/orgs","repos_url":"https://api.github.com/users/jssln/repos","events_url":"https://api.github.com/users/jssln/events{/privacy}","received_events_url":"https://api.github.com/users/jssln/received_events","type":"User","site_admin":false},"repo":{"id":29616370,"name":"atom","full_name":"jssln/atom","owner":{"login":"jssln","id":1017111,"avatar_url":"https://avatars.githubusercontent.com/u/1017111?v=3","gravatar_id":"","url":"https://api.github.com/users/jssln","html_url":"https://github.com/jssln","followers_url":"https://api.github.com/users/jssln/followers","following_url":"https://api.github.com/users/jssln/following{/other_user}","gists_url":"https://api.github.com/users/jssln/gists{/gist_id}","starred_url":"https://api.github.com/users/jssln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jssln/subscriptions","organizations_url":"https://api.github.com/users/jssln/orgs","repos_url":"https://api.github.com/users/jssln/repos","events_url":"https://api.github.com/users/jssln/events{/privacy}","received_events_url":"https://api.github.com/users/jssln/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jssln/atom","description":"The hackable editor","fork":true,"url":"https://api.github.com/repos/jssln/atom","forks_url":"https://api.github.com/repos/jssln/atom/forks","keys_url":"https://api.github.com/repos/jssln/atom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jssln/atom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jssln/atom/teams","hooks_url":"https://api.github.com/repos/jssln/atom/hooks","issue_events_url":"https://api.github.com/repos/jssln/atom/issues/events{/number}","events_url":"https://api.github.com/repos/jssln/atom/events","assignees_url":"https://api.github.com/repos/jssln/atom/assignees{/user}","branches_url":"https://api.github.com/repos/jssln/atom/branches{/branch}","tags_url":"https://api.github.com/repos/jssln/atom/tags","blobs_url":"https://api.github.com/repos/jssln/atom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jssln/atom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jssln/atom/git/refs{/sha}","trees_url":"https://api.github.com/repos/jssln/atom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jssln/atom/statuses/{sha}","languages_url":"https://api.github.com/repos/jssln/atom/languages","stargazers_url":"https://api.github.com/repos/jssln/atom/stargazers","contributors_url":"https://api.github.com/repos/jssln/atom/contributors","subscribers_url":"https://api.github.com/repos/jssln/atom/subscribers","subscription_url":"https://api.github.com/repos/jssln/atom/subscription","commits_url":"https://api.github.com/repos/jssln/atom/commits{/sha}","git_commits_url":"https://api.github.com/repos/jssln/atom/git/commits{/sha}","comments_url":"https://api.github.com/repos/jssln/atom/comments{/number}","issue_comment_url":"https://api.github.com/repos/jssln/atom/issues/comments/{number}","contents_url":"https://api.github.com/repos/jssln/atom/contents/{+path}","compare_url":"https://api.github.com/repos/jssln/atom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jssln/atom/merges","archive_url":"https://api.github.com/repos/jssln/atom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jssln/atom/downloads","issues_url":"https://api.github.com/repos/jssln/atom/issues{/number}","pulls_url":"https://api.github.com/repos/jssln/atom/pulls{/number}","milestones_url":"https://api.github.com/repos/jssln/atom/milestones{/number}","notifications_url":"https://api.github.com/repos/jssln/atom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jssln/atom/labels{/name}","releases_url":"https://api.github.com/repos/jssln/atom/releases{/id}","created_at":"2015-01-21T21:26:02Z","updated_at":"2015-02-04T23:52:17Z","pushed_at":"2015-02-05T05:23:28Z","git_url":"git://github.com/jssln/atom.git","ssh_url":"git@github.com:jssln/atom.git","clone_url":"https://github.com/jssln/atom.git","svn_url":"https://github.com/jssln/atom","homepage":"https://atom.io/","size":262590,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","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":"atom:master","ref":"master","sha":"83c8d904cfb6de44fa8c4a3ff10a0ea44ab563a9","user":{"login":"atom","id":1089146,"avatar_url":"https://avatars.githubusercontent.com/u/1089146?v=3","gravatar_id":"","url":"https://api.github.com/users/atom","html_url":"https://github.com/atom","followers_url":"https://api.github.com/users/atom/followers","following_url":"https://api.github.com/users/atom/following{/other_user}","gists_url":"https://api.github.com/users/atom/gists{/gist_id}","starred_url":"https://api.github.com/users/atom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom/subscriptions","organizations_url":"https://api.github.com/users/atom/orgs","repos_url":"https://api.github.com/users/atom/repos","events_url":"https://api.github.com/users/atom/events{/privacy}","received_events_url":"https://api.github.com/users/atom/received_events","type":"Organization","site_admin":false},"repo":{"id":3228505,"name":"atom","full_name":"atom/atom","owner":{"login":"atom","id":1089146,"avatar_url":"https://avatars.githubusercontent.com/u/1089146?v=3","gravatar_id":"","url":"https://api.github.com/users/atom","html_url":"https://github.com/atom","followers_url":"https://api.github.com/users/atom/followers","following_url":"https://api.github.com/users/atom/following{/other_user}","gists_url":"https://api.github.com/users/atom/gists{/gist_id}","starred_url":"https://api.github.com/users/atom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom/subscriptions","organizations_url":"https://api.github.com/users/atom/orgs","repos_url":"https://api.github.com/users/atom/repos","events_url":"https://api.github.com/users/atom/events{/privacy}","received_events_url":"https://api.github.com/users/atom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/atom/atom","description":"The hackable editor","fork":false,"url":"https://api.github.com/repos/atom/atom","forks_url":"https://api.github.com/repos/atom/atom/forks","keys_url":"https://api.github.com/repos/atom/atom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atom/atom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atom/atom/teams","hooks_url":"https://api.github.com/repos/atom/atom/hooks","issue_events_url":"https://api.github.com/repos/atom/atom/issues/events{/number}","events_url":"https://api.github.com/repos/atom/atom/events","assignees_url":"https://api.github.com/repos/atom/atom/assignees{/user}","branches_url":"https://api.github.com/repos/atom/atom/branches{/branch}","tags_url":"https://api.github.com/repos/atom/atom/tags","blobs_url":"https://api.github.com/repos/atom/atom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atom/atom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atom/atom/git/refs{/sha}","trees_url":"https://api.github.com/repos/atom/atom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atom/atom/statuses/{sha}","languages_url":"https://api.github.com/repos/atom/atom/languages","stargazers_url":"https://api.github.com/repos/atom/atom/stargazers","contributors_url":"https://api.github.com/repos/atom/atom/contributors","subscribers_url":"https://api.github.com/repos/atom/atom/subscribers","subscription_url":"https://api.github.com/repos/atom/atom/subscription","commits_url":"https://api.github.com/repos/atom/atom/commits{/sha}","git_commits_url":"https://api.github.com/repos/atom/atom/git/commits{/sha}","comments_url":"https://api.github.com/repos/atom/atom/comments{/number}","issue_comment_url":"https://api.github.com/repos/atom/atom/issues/comments/{number}","contents_url":"https://api.github.com/repos/atom/atom/contents/{+path}","compare_url":"https://api.github.com/repos/atom/atom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atom/atom/merges","archive_url":"https://api.github.com/repos/atom/atom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atom/atom/downloads","issues_url":"https://api.github.com/repos/atom/atom/issues{/number}","pulls_url":"https://api.github.com/repos/atom/atom/pulls{/number}","milestones_url":"https://api.github.com/repos/atom/atom/milestones{/number}","notifications_url":"https://api.github.com/repos/atom/atom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atom/atom/labels{/name}","releases_url":"https://api.github.com/repos/atom/atom/releases{/id}","created_at":"2012-01-20T18:18:21Z","updated_at":"2015-02-05T23:04:40Z","pushed_at":"2015-02-05T23:24:07Z","git_url":"git://github.com/atom/atom.git","ssh_url":"git@github.com:atom/atom.git","clone_url":"https://github.com/atom/atom.git","svn_url":"https://github.com/atom/atom","homepage":"https://atom.io/","size":338567,"stargazers_count":12262,"watchers_count":12262,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2047,"mirror_url":null,"open_issues_count":833,"forks":2047,"open_issues":833,"watchers":12262,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/atom/atom/pulls/5217"},"html":{"href":"https://github.com/atom/atom/pull/5217"},"issue":{"href":"https://api.github.com/repos/atom/atom/issues/5217"},"comments":{"href":"https://api.github.com/repos/atom/atom/issues/5217/comments"},"review_comments":{"href":"https://api.github.com/repos/atom/atom/pulls/5217/comments"},"review_comment":{"href":"https://api.github.com/repos/atom/atom/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/atom/atom/pulls/5217/commits"},"statuses":{"href":"https://api.github.com/repos/atom/atom/statuses/0d1f2fefa21cda291ec5aa751fa344f3a83841e7"}}}}