{"action":"created","comment":{"url":"https://api.github.com/repos/gechr/WhichSpace/pulls/comments/43487542","id":43487542,"diff_hunk":"@@ -9,13 +9,14 @@\n import Cocoa\n \n @NSApplicationMain\n-class AppDelegate: NSObject, NSApplicationDelegate {\n+class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {\n \n     @IBOutlet weak var window: NSWindow!\n     @IBOutlet weak var statusMenu: NSMenu!\n \n     var icons = [NSImage]()\n-    let statusBarItem = NSStatusBar.systemStatusBar().statusItemWithLength(-1)\n+    let statusBarItem = NSStatusBar.systemStatusBar().statusItemWithLength(27)","path":"WhichSpace/AppDelegate.swift","position":12,"original_position":12,"commit_id":"3b7ed60632bc5d533d966ee0f966c671b515bdd5","original_commit_id":"3b7ed60632bc5d533d966ee0f966c671b515bdd5","user":{"login":"sdsykes","id":32757,"avatar_url":"https://avatars.githubusercontent.com/u/32757?v=3","gravatar_id":"","url":"https://api.github.com/users/sdsykes","html_url":"https://github.com/sdsykes","followers_url":"https://api.github.com/users/sdsykes/followers","following_url":"https://api.github.com/users/sdsykes/following{/other_user}","gists_url":"https://api.github.com/users/sdsykes/gists{/gist_id}","starred_url":"https://api.github.com/users/sdsykes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdsykes/subscriptions","organizations_url":"https://api.github.com/users/sdsykes/orgs","repos_url":"https://api.github.com/users/sdsykes/repos","events_url":"https://api.github.com/users/sdsykes/events{/privacy}","received_events_url":"https://api.github.com/users/sdsykes/received_events","type":"User","site_admin":false},"body":"That's the width of the status item, which I wanted to specify as I was drawing it myself","created_at":"2015-10-30T10:15:14Z","updated_at":"2015-10-30T10:15:14Z","html_url":"https://github.com/gechr/WhichSpace/pull/2#discussion_r43487542","pull_request_url":"https://api.github.com/repos/gechr/WhichSpace/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/gechr/WhichSpace/pulls/comments/43487542"},"html":{"href":"https://github.com/gechr/WhichSpace/pull/2#discussion_r43487542"},"pull_request":{"href":"https://api.github.com/repos/gechr/WhichSpace/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/gechr/WhichSpace/pulls/2","id":49245901,"html_url":"https://github.com/gechr/WhichSpace/pull/2","diff_url":"https://github.com/gechr/WhichSpace/pull/2.diff","patch_url":"https://github.com/gechr/WhichSpace/pull/2.patch","issue_url":"https://api.github.com/repos/gechr/WhichSpace/issues/2","number":2,"state":"open","locked":false,"title":"Drawn status item","user":{"login":"sdsykes","id":32757,"avatar_url":"https://avatars.githubusercontent.com/u/32757?v=3","gravatar_id":"","url":"https://api.github.com/users/sdsykes","html_url":"https://github.com/sdsykes","followers_url":"https://api.github.com/users/sdsykes/followers","following_url":"https://api.github.com/users/sdsykes/following{/other_user}","gists_url":"https://api.github.com/users/sdsykes/gists{/gist_id}","starred_url":"https://api.github.com/users/sdsykes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdsykes/subscriptions","organizations_url":"https://api.github.com/users/sdsykes/orgs","repos_url":"https://api.github.com/users/sdsykes/repos","events_url":"https://api.github.com/users/sdsykes/events{/privacy}","received_events_url":"https://api.github.com/users/sdsykes/received_events","type":"User","site_admin":false},"body":"Draw the status item in code. Todo: invert colours for dark menu bar setting","created_at":"2015-10-30T09:12:10Z","updated_at":"2015-10-30T10:15:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a5198cdae50a2381342f61a6255e93e8a9d7f9d4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gechr/WhichSpace/pulls/2/commits","review_comments_url":"https://api.github.com/repos/gechr/WhichSpace/pulls/2/comments","review_comment_url":"https://api.github.com/repos/gechr/WhichSpace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gechr/WhichSpace/issues/2/comments","statuses_url":"https://api.github.com/repos/gechr/WhichSpace/statuses/3b7ed60632bc5d533d966ee0f966c671b515bdd5","head":{"label":"sdsykes:feature_drawn_status_item","ref":"feature_drawn_status_item","sha":"3b7ed60632bc5d533d966ee0f966c671b515bdd5","user":{"login":"sdsykes","id":32757,"avatar_url":"https://avatars.githubusercontent.com/u/32757?v=3","gravatar_id":"","url":"https://api.github.com/users/sdsykes","html_url":"https://github.com/sdsykes","followers_url":"https://api.github.com/users/sdsykes/followers","following_url":"https://api.github.com/users/sdsykes/following{/other_user}","gists_url":"https://api.github.com/users/sdsykes/gists{/gist_id}","starred_url":"https://api.github.com/users/sdsykes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdsykes/subscriptions","organizations_url":"https://api.github.com/users/sdsykes/orgs","repos_url":"https://api.github.com/users/sdsykes/repos","events_url":"https://api.github.com/users/sdsykes/events{/privacy}","received_events_url":"https://api.github.com/users/sdsykes/received_events","type":"User","site_admin":false},"repo":{"id":45234009,"name":"WhichSpace","full_name":"sdsykes/WhichSpace","owner":{"login":"sdsykes","id":32757,"avatar_url":"https://avatars.githubusercontent.com/u/32757?v=3","gravatar_id":"","url":"https://api.github.com/users/sdsykes","html_url":"https://github.com/sdsykes","followers_url":"https://api.github.com/users/sdsykes/followers","following_url":"https://api.github.com/users/sdsykes/following{/other_user}","gists_url":"https://api.github.com/users/sdsykes/gists{/gist_id}","starred_url":"https://api.github.com/users/sdsykes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdsykes/subscriptions","organizations_url":"https://api.github.com/users/sdsykes/orgs","repos_url":"https://api.github.com/users/sdsykes/repos","events_url":"https://api.github.com/users/sdsykes/events{/privacy}","received_events_url":"https://api.github.com/users/sdsykes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sdsykes/WhichSpace","description":"Space indicator for OS X 10.11+","fork":true,"url":"https://api.github.com/repos/sdsykes/WhichSpace","forks_url":"https://api.github.com/repos/sdsykes/WhichSpace/forks","keys_url":"https://api.github.com/repos/sdsykes/WhichSpace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sdsykes/WhichSpace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sdsykes/WhichSpace/teams","hooks_url":"https://api.github.com/repos/sdsykes/WhichSpace/hooks","issue_events_url":"https://api.github.com/repos/sdsykes/WhichSpace/issues/events{/number}","events_url":"https://api.github.com/repos/sdsykes/WhichSpace/events","assignees_url":"https://api.github.com/repos/sdsykes/WhichSpace/assignees{/user}","branches_url":"https://api.github.com/repos/sdsykes/WhichSpace/branches{/branch}","tags_url":"https://api.github.com/repos/sdsykes/WhichSpace/tags","blobs_url":"https://api.github.com/repos/sdsykes/WhichSpace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sdsykes/WhichSpace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sdsykes/WhichSpace/git/refs{/sha}","trees_url":"https://api.github.com/repos/sdsykes/WhichSpace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sdsykes/WhichSpace/statuses/{sha}","languages_url":"https://api.github.com/repos/sdsykes/WhichSpace/languages","stargazers_url":"https://api.github.com/repos/sdsykes/WhichSpace/stargazers","contributors_url":"https://api.github.com/repos/sdsykes/WhichSpace/contributors","subscribers_url":"https://api.github.com/repos/sdsykes/WhichSpace/subscribers","subscription_url":"https://api.github.com/repos/sdsykes/WhichSpace/subscription","commits_url":"https://api.github.com/repos/sdsykes/WhichSpace/commits{/sha}","git_commits_url":"https://api.github.com/repos/sdsykes/WhichSpace/git/commits{/sha}","comments_url":"https://api.github.com/repos/sdsykes/WhichSpace/comments{/number}","issue_comment_url":"https://api.github.com/repos/sdsykes/WhichSpace/issues/comments{/number}","contents_url":"https://api.github.com/repos/sdsykes/WhichSpace/contents/{+path}","compare_url":"https://api.github.com/repos/sdsykes/WhichSpace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sdsykes/WhichSpace/merges","archive_url":"https://api.github.com/repos/sdsykes/WhichSpace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sdsykes/WhichSpace/downloads","issues_url":"https://api.github.com/repos/sdsykes/WhichSpace/issues{/number}","pulls_url":"https://api.github.com/repos/sdsykes/WhichSpace/pulls{/number}","milestones_url":"https://api.github.com/repos/sdsykes/WhichSpace/milestones{/number}","notifications_url":"https://api.github.com/repos/sdsykes/WhichSpace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sdsykes/WhichSpace/labels{/name}","releases_url":"https://api.github.com/repos/sdsykes/WhichSpace/releases{/id}","created_at":"2015-10-30T06:46:23Z","updated_at":"2015-10-30T06:46:24Z","pushed_at":"2015-10-30T09:10:13Z","git_url":"git://github.com/sdsykes/WhichSpace.git","ssh_url":"git@github.com:sdsykes/WhichSpace.git","clone_url":"https://github.com/sdsykes/WhichSpace.git","svn_url":"https://github.com/sdsykes/WhichSpace","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":"Swift","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":"gechr:master","ref":"master","sha":"8819cc52edcaf3b33f4611e00f6385a3c6113046","user":{"login":"gechr","id":7656560,"avatar_url":"https://avatars.githubusercontent.com/u/7656560?v=3","gravatar_id":"","url":"https://api.github.com/users/gechr","html_url":"https://github.com/gechr","followers_url":"https://api.github.com/users/gechr/followers","following_url":"https://api.github.com/users/gechr/following{/other_user}","gists_url":"https://api.github.com/users/gechr/gists{/gist_id}","starred_url":"https://api.github.com/users/gechr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gechr/subscriptions","organizations_url":"https://api.github.com/users/gechr/orgs","repos_url":"https://api.github.com/users/gechr/repos","events_url":"https://api.github.com/users/gechr/events{/privacy}","received_events_url":"https://api.github.com/users/gechr/received_events","type":"User","site_admin":false},"repo":{"id":45073916,"name":"WhichSpace","full_name":"gechr/WhichSpace","owner":{"login":"gechr","id":7656560,"avatar_url":"https://avatars.githubusercontent.com/u/7656560?v=3","gravatar_id":"","url":"https://api.github.com/users/gechr","html_url":"https://github.com/gechr","followers_url":"https://api.github.com/users/gechr/followers","following_url":"https://api.github.com/users/gechr/following{/other_user}","gists_url":"https://api.github.com/users/gechr/gists{/gist_id}","starred_url":"https://api.github.com/users/gechr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gechr/subscriptions","organizations_url":"https://api.github.com/users/gechr/orgs","repos_url":"https://api.github.com/users/gechr/repos","events_url":"https://api.github.com/users/gechr/events{/privacy}","received_events_url":"https://api.github.com/users/gechr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gechr/WhichSpace","description":"Space indicator for OS X 10.11+","fork":false,"url":"https://api.github.com/repos/gechr/WhichSpace","forks_url":"https://api.github.com/repos/gechr/WhichSpace/forks","keys_url":"https://api.github.com/repos/gechr/WhichSpace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gechr/WhichSpace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gechr/WhichSpace/teams","hooks_url":"https://api.github.com/repos/gechr/WhichSpace/hooks","issue_events_url":"https://api.github.com/repos/gechr/WhichSpace/issues/events{/number}","events_url":"https://api.github.com/repos/gechr/WhichSpace/events","assignees_url":"https://api.github.com/repos/gechr/WhichSpace/assignees{/user}","branches_url":"https://api.github.com/repos/gechr/WhichSpace/branches{/branch}","tags_url":"https://api.github.com/repos/gechr/WhichSpace/tags","blobs_url":"https://api.github.com/repos/gechr/WhichSpace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gechr/WhichSpace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gechr/WhichSpace/git/refs{/sha}","trees_url":"https://api.github.com/repos/gechr/WhichSpace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gechr/WhichSpace/statuses/{sha}","languages_url":"https://api.github.com/repos/gechr/WhichSpace/languages","stargazers_url":"https://api.github.com/repos/gechr/WhichSpace/stargazers","contributors_url":"https://api.github.com/repos/gechr/WhichSpace/contributors","subscribers_url":"https://api.github.com/repos/gechr/WhichSpace/subscribers","subscription_url":"https://api.github.com/repos/gechr/WhichSpace/subscription","commits_url":"https://api.github.com/repos/gechr/WhichSpace/commits{/sha}","git_commits_url":"https://api.github.com/repos/gechr/WhichSpace/git/commits{/sha}","comments_url":"https://api.github.com/repos/gechr/WhichSpace/comments{/number}","issue_comment_url":"https://api.github.com/repos/gechr/WhichSpace/issues/comments{/number}","contents_url":"https://api.github.com/repos/gechr/WhichSpace/contents/{+path}","compare_url":"https://api.github.com/repos/gechr/WhichSpace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gechr/WhichSpace/merges","archive_url":"https://api.github.com/repos/gechr/WhichSpace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gechr/WhichSpace/downloads","issues_url":"https://api.github.com/repos/gechr/WhichSpace/issues{/number}","pulls_url":"https://api.github.com/repos/gechr/WhichSpace/pulls{/number}","milestones_url":"https://api.github.com/repos/gechr/WhichSpace/milestones{/number}","notifications_url":"https://api.github.com/repos/gechr/WhichSpace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gechr/WhichSpace/labels{/name}","releases_url":"https://api.github.com/repos/gechr/WhichSpace/releases{/id}","created_at":"2015-10-27T22:26:37Z","updated_at":"2015-10-30T05:59:35Z","pushed_at":"2015-10-30T09:12:10Z","git_url":"git://github.com/gechr/WhichSpace.git","ssh_url":"git@github.com:gechr/WhichSpace.git","clone_url":"https://github.com/gechr/WhichSpace.git","svn_url":"https://github.com/gechr/WhichSpace","homepage":"","size":0,"stargazers_count":2,"watchers_count":2,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gechr/WhichSpace/pulls/2"},"html":{"href":"https://github.com/gechr/WhichSpace/pull/2"},"issue":{"href":"https://api.github.com/repos/gechr/WhichSpace/issues/2"},"comments":{"href":"https://api.github.com/repos/gechr/WhichSpace/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/gechr/WhichSpace/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/gechr/WhichSpace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gechr/WhichSpace/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/gechr/WhichSpace/statuses/3b7ed60632bc5d533d966ee0f966c671b515bdd5"}}}}