{"action":"created","comment":{"url":"https://api.github.com/repos/clearbooks/labs/pulls/comments/36068511","id":36068511,"diff_hunk":"@@ -34,7 +35,10 @@ public function execute()\n         $publicReleases = [ ];\n \n         foreach ( $releases as $release ) {\n-            if ( $release->isIsVisible() ) {\n+            if ( $release->isVisible() == false && $release->getReleaseDate()->getTimestamp() < time() ) {","path":"src/Release/GetPublicRelease.php","position":13,"original_position":13,"commit_id":"d91674d3cd44f9cdc515cb334b09793503ae3597","original_commit_id":"d91674d3cd44f9cdc515cb334b09793503ae3597","user":{"login":"naikija","id":8056773,"avatar_url":"https://avatars.githubusercontent.com/u/8056773?v=3","gravatar_id":"","url":"https://api.github.com/users/naikija","html_url":"https://github.com/naikija","followers_url":"https://api.github.com/users/naikija/followers","following_url":"https://api.github.com/users/naikija/following{/other_user}","gists_url":"https://api.github.com/users/naikija/gists{/gist_id}","starred_url":"https://api.github.com/users/naikija/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naikija/subscriptions","organizations_url":"https://api.github.com/users/naikija/orgs","repos_url":"https://api.github.com/users/naikija/repos","events_url":"https://api.github.com/users/naikija/events{/privacy}","received_events_url":"https://api.github.com/users/naikija/received_events","type":"User","site_admin":false},"body":"For me better looks !$release->isVisible()","created_at":"2015-08-03T09:22:31Z","updated_at":"2015-08-03T09:22:31Z","html_url":"https://github.com/clearbooks/labs/pull/15#discussion_r36068511","pull_request_url":"https://api.github.com/repos/clearbooks/labs/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/clearbooks/labs/pulls/comments/36068511"},"html":{"href":"https://github.com/clearbooks/labs/pull/15#discussion_r36068511"},"pull_request":{"href":"https://api.github.com/repos/clearbooks/labs/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/clearbooks/labs/pulls/15","id":41440078,"html_url":"https://github.com/clearbooks/labs/pull/15","diff_url":"https://github.com/clearbooks/labs/pull/15.diff","patch_url":"https://github.com/clearbooks/labs/pull/15.patch","issue_url":"https://api.github.com/repos/clearbooks/labs/issues/15","number":15,"state":"open","locked":false,"title":"Adds time filter to make release visible on specific date.","user":{"login":"VolodymyrSergeyev","id":13553024,"avatar_url":"https://avatars.githubusercontent.com/u/13553024?v=3","gravatar_id":"","url":"https://api.github.com/users/VolodymyrSergeyev","html_url":"https://github.com/VolodymyrSergeyev","followers_url":"https://api.github.com/users/VolodymyrSergeyev/followers","following_url":"https://api.github.com/users/VolodymyrSergeyev/following{/other_user}","gists_url":"https://api.github.com/users/VolodymyrSergeyev/gists{/gist_id}","starred_url":"https://api.github.com/users/VolodymyrSergeyev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VolodymyrSergeyev/subscriptions","organizations_url":"https://api.github.com/users/VolodymyrSergeyev/orgs","repos_url":"https://api.github.com/users/VolodymyrSergeyev/repos","events_url":"https://api.github.com/users/VolodymyrSergeyev/events{/privacy}","received_events_url":"https://api.github.com/users/VolodymyrSergeyev/received_events","type":"User","site_admin":false},"body":"If a release is set visible or if the date of the release has passed the release will become visible.","created_at":"2015-08-03T07:09:29Z","updated_at":"2015-08-03T09:22:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"83f9290ea6766638a6e70baaab5d0036e33812a4","assignee":{"login":"naikija","id":8056773,"avatar_url":"https://avatars.githubusercontent.com/u/8056773?v=3","gravatar_id":"","url":"https://api.github.com/users/naikija","html_url":"https://github.com/naikija","followers_url":"https://api.github.com/users/naikija/followers","following_url":"https://api.github.com/users/naikija/following{/other_user}","gists_url":"https://api.github.com/users/naikija/gists{/gist_id}","starred_url":"https://api.github.com/users/naikija/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naikija/subscriptions","organizations_url":"https://api.github.com/users/naikija/orgs","repos_url":"https://api.github.com/users/naikija/repos","events_url":"https://api.github.com/users/naikija/events{/privacy}","received_events_url":"https://api.github.com/users/naikija/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/clearbooks/labs/pulls/15/commits","review_comments_url":"https://api.github.com/repos/clearbooks/labs/pulls/15/comments","review_comment_url":"https://api.github.com/repos/clearbooks/labs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/clearbooks/labs/issues/15/comments","statuses_url":"https://api.github.com/repos/clearbooks/labs/statuses/d91674d3cd44f9cdc515cb334b09793503ae3597","head":{"label":"clearbooks:LABS-4","ref":"LABS-4","sha":"d91674d3cd44f9cdc515cb334b09793503ae3597","user":{"login":"clearbooks","id":976249,"avatar_url":"https://avatars.githubusercontent.com/u/976249?v=3","gravatar_id":"","url":"https://api.github.com/users/clearbooks","html_url":"https://github.com/clearbooks","followers_url":"https://api.github.com/users/clearbooks/followers","following_url":"https://api.github.com/users/clearbooks/following{/other_user}","gists_url":"https://api.github.com/users/clearbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/clearbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clearbooks/subscriptions","organizations_url":"https://api.github.com/users/clearbooks/orgs","repos_url":"https://api.github.com/users/clearbooks/repos","events_url":"https://api.github.com/users/clearbooks/events{/privacy}","received_events_url":"https://api.github.com/users/clearbooks/received_events","type":"Organization","site_admin":false},"repo":{"id":39000082,"name":"labs","full_name":"clearbooks/labs","owner":{"login":"clearbooks","id":976249,"avatar_url":"https://avatars.githubusercontent.com/u/976249?v=3","gravatar_id":"","url":"https://api.github.com/users/clearbooks","html_url":"https://github.com/clearbooks","followers_url":"https://api.github.com/users/clearbooks/followers","following_url":"https://api.github.com/users/clearbooks/following{/other_user}","gists_url":"https://api.github.com/users/clearbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/clearbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clearbooks/subscriptions","organizations_url":"https://api.github.com/users/clearbooks/orgs","repos_url":"https://api.github.com/users/clearbooks/repos","events_url":"https://api.github.com/users/clearbooks/events{/privacy}","received_events_url":"https://api.github.com/users/clearbooks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/clearbooks/labs","description":"Perform sensible releases through Labs","fork":false,"url":"https://api.github.com/repos/clearbooks/labs","forks_url":"https://api.github.com/repos/clearbooks/labs/forks","keys_url":"https://api.github.com/repos/clearbooks/labs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clearbooks/labs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clearbooks/labs/teams","hooks_url":"https://api.github.com/repos/clearbooks/labs/hooks","issue_events_url":"https://api.github.com/repos/clearbooks/labs/issues/events{/number}","events_url":"https://api.github.com/repos/clearbooks/labs/events","assignees_url":"https://api.github.com/repos/clearbooks/labs/assignees{/user}","branches_url":"https://api.github.com/repos/clearbooks/labs/branches{/branch}","tags_url":"https://api.github.com/repos/clearbooks/labs/tags","blobs_url":"https://api.github.com/repos/clearbooks/labs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clearbooks/labs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clearbooks/labs/git/refs{/sha}","trees_url":"https://api.github.com/repos/clearbooks/labs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clearbooks/labs/statuses/{sha}","languages_url":"https://api.github.com/repos/clearbooks/labs/languages","stargazers_url":"https://api.github.com/repos/clearbooks/labs/stargazers","contributors_url":"https://api.github.com/repos/clearbooks/labs/contributors","subscribers_url":"https://api.github.com/repos/clearbooks/labs/subscribers","subscription_url":"https://api.github.com/repos/clearbooks/labs/subscription","commits_url":"https://api.github.com/repos/clearbooks/labs/commits{/sha}","git_commits_url":"https://api.github.com/repos/clearbooks/labs/git/commits{/sha}","comments_url":"https://api.github.com/repos/clearbooks/labs/comments{/number}","issue_comment_url":"https://api.github.com/repos/clearbooks/labs/issues/comments{/number}","contents_url":"https://api.github.com/repos/clearbooks/labs/contents/{+path}","compare_url":"https://api.github.com/repos/clearbooks/labs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clearbooks/labs/merges","archive_url":"https://api.github.com/repos/clearbooks/labs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clearbooks/labs/downloads","issues_url":"https://api.github.com/repos/clearbooks/labs/issues{/number}","pulls_url":"https://api.github.com/repos/clearbooks/labs/pulls{/number}","milestones_url":"https://api.github.com/repos/clearbooks/labs/milestones{/number}","notifications_url":"https://api.github.com/repos/clearbooks/labs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clearbooks/labs/labels{/name}","releases_url":"https://api.github.com/repos/clearbooks/labs/releases{/id}","created_at":"2015-07-13T08:23:26Z","updated_at":"2015-07-14T13:08:20Z","pushed_at":"2015-08-03T09:07:51Z","git_url":"git://github.com/clearbooks/labs.git","ssh_url":"git@github.com:clearbooks/labs.git","clone_url":"https://github.com/clearbooks/labs.git","svn_url":"https://github.com/clearbooks/labs","homepage":"https://devblog.clearbooks.co.uk","size":838,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":1,"default_branch":"master"}},"base":{"label":"clearbooks:master","ref":"master","sha":"20ae1af033b677af3535122e2055ba603ce303a1","user":{"login":"clearbooks","id":976249,"avatar_url":"https://avatars.githubusercontent.com/u/976249?v=3","gravatar_id":"","url":"https://api.github.com/users/clearbooks","html_url":"https://github.com/clearbooks","followers_url":"https://api.github.com/users/clearbooks/followers","following_url":"https://api.github.com/users/clearbooks/following{/other_user}","gists_url":"https://api.github.com/users/clearbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/clearbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clearbooks/subscriptions","organizations_url":"https://api.github.com/users/clearbooks/orgs","repos_url":"https://api.github.com/users/clearbooks/repos","events_url":"https://api.github.com/users/clearbooks/events{/privacy}","received_events_url":"https://api.github.com/users/clearbooks/received_events","type":"Organization","site_admin":false},"repo":{"id":39000082,"name":"labs","full_name":"clearbooks/labs","owner":{"login":"clearbooks","id":976249,"avatar_url":"https://avatars.githubusercontent.com/u/976249?v=3","gravatar_id":"","url":"https://api.github.com/users/clearbooks","html_url":"https://github.com/clearbooks","followers_url":"https://api.github.com/users/clearbooks/followers","following_url":"https://api.github.com/users/clearbooks/following{/other_user}","gists_url":"https://api.github.com/users/clearbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/clearbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clearbooks/subscriptions","organizations_url":"https://api.github.com/users/clearbooks/orgs","repos_url":"https://api.github.com/users/clearbooks/repos","events_url":"https://api.github.com/users/clearbooks/events{/privacy}","received_events_url":"https://api.github.com/users/clearbooks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/clearbooks/labs","description":"Perform sensible releases through Labs","fork":false,"url":"https://api.github.com/repos/clearbooks/labs","forks_url":"https://api.github.com/repos/clearbooks/labs/forks","keys_url":"https://api.github.com/repos/clearbooks/labs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clearbooks/labs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clearbooks/labs/teams","hooks_url":"https://api.github.com/repos/clearbooks/labs/hooks","issue_events_url":"https://api.github.com/repos/clearbooks/labs/issues/events{/number}","events_url":"https://api.github.com/repos/clearbooks/labs/events","assignees_url":"https://api.github.com/repos/clearbooks/labs/assignees{/user}","branches_url":"https://api.github.com/repos/clearbooks/labs/branches{/branch}","tags_url":"https://api.github.com/repos/clearbooks/labs/tags","blobs_url":"https://api.github.com/repos/clearbooks/labs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clearbooks/labs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clearbooks/labs/git/refs{/sha}","trees_url":"https://api.github.com/repos/clearbooks/labs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clearbooks/labs/statuses/{sha}","languages_url":"https://api.github.com/repos/clearbooks/labs/languages","stargazers_url":"https://api.github.com/repos/clearbooks/labs/stargazers","contributors_url":"https://api.github.com/repos/clearbooks/labs/contributors","subscribers_url":"https://api.github.com/repos/clearbooks/labs/subscribers","subscription_url":"https://api.github.com/repos/clearbooks/labs/subscription","commits_url":"https://api.github.com/repos/clearbooks/labs/commits{/sha}","git_commits_url":"https://api.github.com/repos/clearbooks/labs/git/commits{/sha}","comments_url":"https://api.github.com/repos/clearbooks/labs/comments{/number}","issue_comment_url":"https://api.github.com/repos/clearbooks/labs/issues/comments{/number}","contents_url":"https://api.github.com/repos/clearbooks/labs/contents/{+path}","compare_url":"https://api.github.com/repos/clearbooks/labs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clearbooks/labs/merges","archive_url":"https://api.github.com/repos/clearbooks/labs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clearbooks/labs/downloads","issues_url":"https://api.github.com/repos/clearbooks/labs/issues{/number}","pulls_url":"https://api.github.com/repos/clearbooks/labs/pulls{/number}","milestones_url":"https://api.github.com/repos/clearbooks/labs/milestones{/number}","notifications_url":"https://api.github.com/repos/clearbooks/labs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clearbooks/labs/labels{/name}","releases_url":"https://api.github.com/repos/clearbooks/labs/releases{/id}","created_at":"2015-07-13T08:23:26Z","updated_at":"2015-07-14T13:08:20Z","pushed_at":"2015-08-03T09:07:51Z","git_url":"git://github.com/clearbooks/labs.git","ssh_url":"git@github.com:clearbooks/labs.git","clone_url":"https://github.com/clearbooks/labs.git","svn_url":"https://github.com/clearbooks/labs","homepage":"https://devblog.clearbooks.co.uk","size":838,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/clearbooks/labs/pulls/15"},"html":{"href":"https://github.com/clearbooks/labs/pull/15"},"issue":{"href":"https://api.github.com/repos/clearbooks/labs/issues/15"},"comments":{"href":"https://api.github.com/repos/clearbooks/labs/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/clearbooks/labs/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/clearbooks/labs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/clearbooks/labs/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/clearbooks/labs/statuses/d91674d3cd44f9cdc515cb334b09793503ae3597"}}}}