{"action":"opened","number":277,"pull_request":{"url":"https://api.github.com/repos/matryer/bitbar/pulls/277","id":62700978,"html_url":"https://github.com/matryer/bitbar/pull/277","diff_url":"https://github.com/matryer/bitbar/pull/277.diff","patch_url":"https://github.com/matryer/bitbar/pull/277.patch","issue_url":"https://api.github.com/repos/matryer/bitbar/issues/277","number":277,"state":"open","locked":false,"title":"Fix retain cycle during scheduling causing extra runs","user":{"login":"naddeoa","id":1233709,"avatar_url":"https://avatars.githubusercontent.com/u/1233709?v=3","gravatar_id":"","url":"https://api.github.com/users/naddeoa","html_url":"https://github.com/naddeoa","followers_url":"https://api.github.com/users/naddeoa/followers","following_url":"https://api.github.com/users/naddeoa/following{/other_user}","gists_url":"https://api.github.com/users/naddeoa/gists{/gist_id}","starred_url":"https://api.github.com/users/naddeoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naddeoa/subscriptions","organizations_url":"https://api.github.com/users/naddeoa/orgs","repos_url":"https://api.github.com/users/naddeoa/repos","events_url":"https://api.github.com/users/naddeoa/events{/privacy}","received_events_url":"https://api.github.com/users/naddeoa/received_events","type":"User","site_admin":false},"body":"This is a fix for https://github.com/matryer/bitbar/issues/195\r\n\r\nThe references to self were stopping the plugins from being deallocated,\r\nwhich would cause an extra set of plugins to linger upon each refresh.\r\n\r\nPretty informative stack overflow post below.\r\n\r\nhttp://stackoverflow.com/questions/20030873/always-pass-weak-reference-of-self-into-block-in-arc\r\n","created_at":"2016-03-14T05:08:13Z","updated_at":"2016-03-14T05:08:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/matryer/bitbar/pulls/277/commits","review_comments_url":"https://api.github.com/repos/matryer/bitbar/pulls/277/comments","review_comment_url":"https://api.github.com/repos/matryer/bitbar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/matryer/bitbar/issues/277/comments","statuses_url":"https://api.github.com/repos/matryer/bitbar/statuses/729b936277b561e992a960ed4012df899b93a1dd","head":{"label":"naddeoa:weak_self_dispatch","ref":"weak_self_dispatch","sha":"729b936277b561e992a960ed4012df899b93a1dd","user":{"login":"naddeoa","id":1233709,"avatar_url":"https://avatars.githubusercontent.com/u/1233709?v=3","gravatar_id":"","url":"https://api.github.com/users/naddeoa","html_url":"https://github.com/naddeoa","followers_url":"https://api.github.com/users/naddeoa/followers","following_url":"https://api.github.com/users/naddeoa/following{/other_user}","gists_url":"https://api.github.com/users/naddeoa/gists{/gist_id}","starred_url":"https://api.github.com/users/naddeoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naddeoa/subscriptions","organizations_url":"https://api.github.com/users/naddeoa/orgs","repos_url":"https://api.github.com/users/naddeoa/repos","events_url":"https://api.github.com/users/naddeoa/events{/privacy}","received_events_url":"https://api.github.com/users/naddeoa/received_events","type":"User","site_admin":false},"repo":{"id":53759541,"name":"bitbar","full_name":"naddeoa/bitbar","owner":{"login":"naddeoa","id":1233709,"avatar_url":"https://avatars.githubusercontent.com/u/1233709?v=3","gravatar_id":"","url":"https://api.github.com/users/naddeoa","html_url":"https://github.com/naddeoa","followers_url":"https://api.github.com/users/naddeoa/followers","following_url":"https://api.github.com/users/naddeoa/following{/other_user}","gists_url":"https://api.github.com/users/naddeoa/gists{/gist_id}","starred_url":"https://api.github.com/users/naddeoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naddeoa/subscriptions","organizations_url":"https://api.github.com/users/naddeoa/orgs","repos_url":"https://api.github.com/users/naddeoa/repos","events_url":"https://api.github.com/users/naddeoa/events{/privacy}","received_events_url":"https://api.github.com/users/naddeoa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/naddeoa/bitbar","description":"Put the output from any script or program in your Mac OS X Menu Bar","fork":true,"url":"https://api.github.com/repos/naddeoa/bitbar","forks_url":"https://api.github.com/repos/naddeoa/bitbar/forks","keys_url":"https://api.github.com/repos/naddeoa/bitbar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/naddeoa/bitbar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/naddeoa/bitbar/teams","hooks_url":"https://api.github.com/repos/naddeoa/bitbar/hooks","issue_events_url":"https://api.github.com/repos/naddeoa/bitbar/issues/events{/number}","events_url":"https://api.github.com/repos/naddeoa/bitbar/events","assignees_url":"https://api.github.com/repos/naddeoa/bitbar/assignees{/user}","branches_url":"https://api.github.com/repos/naddeoa/bitbar/branches{/branch}","tags_url":"https://api.github.com/repos/naddeoa/bitbar/tags","blobs_url":"https://api.github.com/repos/naddeoa/bitbar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/naddeoa/bitbar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/naddeoa/bitbar/git/refs{/sha}","trees_url":"https://api.github.com/repos/naddeoa/bitbar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/naddeoa/bitbar/statuses/{sha}","languages_url":"https://api.github.com/repos/naddeoa/bitbar/languages","stargazers_url":"https://api.github.com/repos/naddeoa/bitbar/stargazers","contributors_url":"https://api.github.com/repos/naddeoa/bitbar/contributors","subscribers_url":"https://api.github.com/repos/naddeoa/bitbar/subscribers","subscription_url":"https://api.github.com/repos/naddeoa/bitbar/subscription","commits_url":"https://api.github.com/repos/naddeoa/bitbar/commits{/sha}","git_commits_url":"https://api.github.com/repos/naddeoa/bitbar/git/commits{/sha}","comments_url":"https://api.github.com/repos/naddeoa/bitbar/comments{/number}","issue_comment_url":"https://api.github.com/repos/naddeoa/bitbar/issues/comments{/number}","contents_url":"https://api.github.com/repos/naddeoa/bitbar/contents/{+path}","compare_url":"https://api.github.com/repos/naddeoa/bitbar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/naddeoa/bitbar/merges","archive_url":"https://api.github.com/repos/naddeoa/bitbar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/naddeoa/bitbar/downloads","issues_url":"https://api.github.com/repos/naddeoa/bitbar/issues{/number}","pulls_url":"https://api.github.com/repos/naddeoa/bitbar/pulls{/number}","milestones_url":"https://api.github.com/repos/naddeoa/bitbar/milestones{/number}","notifications_url":"https://api.github.com/repos/naddeoa/bitbar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/naddeoa/bitbar/labels{/name}","releases_url":"https://api.github.com/repos/naddeoa/bitbar/releases{/id}","deployments_url":"https://api.github.com/repos/naddeoa/bitbar/deployments","created_at":"2016-03-13T00:06:00Z","updated_at":"2016-03-13T00:06:01Z","pushed_at":"2016-03-14T05:07:45Z","git_url":"git://github.com/naddeoa/bitbar.git","ssh_url":"git@github.com:naddeoa/bitbar.git","clone_url":"https://github.com/naddeoa/bitbar.git","svn_url":"https://github.com/naddeoa/bitbar","homepage":"https://getbitbar.com/","size":3478,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","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":"matryer:master","ref":"master","sha":"62574ae8f1a76d6c1eb8c637d5d6301527e610fd","user":{"login":"matryer","id":101659,"avatar_url":"https://avatars.githubusercontent.com/u/101659?v=3","gravatar_id":"","url":"https://api.github.com/users/matryer","html_url":"https://github.com/matryer","followers_url":"https://api.github.com/users/matryer/followers","following_url":"https://api.github.com/users/matryer/following{/other_user}","gists_url":"https://api.github.com/users/matryer/gists{/gist_id}","starred_url":"https://api.github.com/users/matryer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matryer/subscriptions","organizations_url":"https://api.github.com/users/matryer/orgs","repos_url":"https://api.github.com/users/matryer/repos","events_url":"https://api.github.com/users/matryer/events{/privacy}","received_events_url":"https://api.github.com/users/matryer/received_events","type":"User","site_admin":false},"repo":{"id":14376285,"name":"bitbar","full_name":"matryer/bitbar","owner":{"login":"matryer","id":101659,"avatar_url":"https://avatars.githubusercontent.com/u/101659?v=3","gravatar_id":"","url":"https://api.github.com/users/matryer","html_url":"https://github.com/matryer","followers_url":"https://api.github.com/users/matryer/followers","following_url":"https://api.github.com/users/matryer/following{/other_user}","gists_url":"https://api.github.com/users/matryer/gists{/gist_id}","starred_url":"https://api.github.com/users/matryer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matryer/subscriptions","organizations_url":"https://api.github.com/users/matryer/orgs","repos_url":"https://api.github.com/users/matryer/repos","events_url":"https://api.github.com/users/matryer/events{/privacy}","received_events_url":"https://api.github.com/users/matryer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matryer/bitbar","description":"Put the output from any script or program in your Mac OS X Menu Bar","fork":false,"url":"https://api.github.com/repos/matryer/bitbar","forks_url":"https://api.github.com/repos/matryer/bitbar/forks","keys_url":"https://api.github.com/repos/matryer/bitbar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matryer/bitbar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matryer/bitbar/teams","hooks_url":"https://api.github.com/repos/matryer/bitbar/hooks","issue_events_url":"https://api.github.com/repos/matryer/bitbar/issues/events{/number}","events_url":"https://api.github.com/repos/matryer/bitbar/events","assignees_url":"https://api.github.com/repos/matryer/bitbar/assignees{/user}","branches_url":"https://api.github.com/repos/matryer/bitbar/branches{/branch}","tags_url":"https://api.github.com/repos/matryer/bitbar/tags","blobs_url":"https://api.github.com/repos/matryer/bitbar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matryer/bitbar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matryer/bitbar/git/refs{/sha}","trees_url":"https://api.github.com/repos/matryer/bitbar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matryer/bitbar/statuses/{sha}","languages_url":"https://api.github.com/repos/matryer/bitbar/languages","stargazers_url":"https://api.github.com/repos/matryer/bitbar/stargazers","contributors_url":"https://api.github.com/repos/matryer/bitbar/contributors","subscribers_url":"https://api.github.com/repos/matryer/bitbar/subscribers","subscription_url":"https://api.github.com/repos/matryer/bitbar/subscription","commits_url":"https://api.github.com/repos/matryer/bitbar/commits{/sha}","git_commits_url":"https://api.github.com/repos/matryer/bitbar/git/commits{/sha}","comments_url":"https://api.github.com/repos/matryer/bitbar/comments{/number}","issue_comment_url":"https://api.github.com/repos/matryer/bitbar/issues/comments{/number}","contents_url":"https://api.github.com/repos/matryer/bitbar/contents/{+path}","compare_url":"https://api.github.com/repos/matryer/bitbar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matryer/bitbar/merges","archive_url":"https://api.github.com/repos/matryer/bitbar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matryer/bitbar/downloads","issues_url":"https://api.github.com/repos/matryer/bitbar/issues{/number}","pulls_url":"https://api.github.com/repos/matryer/bitbar/pulls{/number}","milestones_url":"https://api.github.com/repos/matryer/bitbar/milestones{/number}","notifications_url":"https://api.github.com/repos/matryer/bitbar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matryer/bitbar/labels{/name}","releases_url":"https://api.github.com/repos/matryer/bitbar/releases{/id}","deployments_url":"https://api.github.com/repos/matryer/bitbar/deployments","created_at":"2013-11-13T21:00:12Z","updated_at":"2016-03-14T01:55:07Z","pushed_at":"2016-03-14T04:43:09Z","git_url":"git://github.com/matryer/bitbar.git","ssh_url":"git@github.com:matryer/bitbar.git","clone_url":"https://github.com/matryer/bitbar.git","svn_url":"https://github.com/matryer/bitbar","homepage":"https://getbitbar.com/","size":14160,"stargazers_count":6041,"watchers_count":6041,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":193,"mirror_url":null,"open_issues_count":41,"forks":193,"open_issues":41,"watchers":6041,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/matryer/bitbar/pulls/277"},"html":{"href":"https://github.com/matryer/bitbar/pull/277"},"issue":{"href":"https://api.github.com/repos/matryer/bitbar/issues/277"},"comments":{"href":"https://api.github.com/repos/matryer/bitbar/issues/277/comments"},"review_comments":{"href":"https://api.github.com/repos/matryer/bitbar/pulls/277/comments"},"review_comment":{"href":"https://api.github.com/repos/matryer/bitbar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/matryer/bitbar/pulls/277/commits"},"statuses":{"href":"https://api.github.com/repos/matryer/bitbar/statuses/729b936277b561e992a960ed4012df899b93a1dd"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":12,"deletions":18,"changed_files":2}}