{"action":"created","comment":{"url":"https://api.github.com/repos/vexus2/lazy_render/pulls/comments/166876938","pull_request_review_id":95006782,"id":166876938,"diff_hunk":"@@ -0,0 +1,30 @@\n+# frozen_string_literal: true\n+\n+# GitHub Repository\n+class Repository\n+  attr_reader :client\n+\n+  def initialize(owner, name)\n+    @owner = owner\n+    @name = name\n+    @client = Github.new\n+  end\n+\n+  def releases\n+    repository&.releases.map(&:name)\n+  end\n+\n+  def active_branch\n+    repository.branches.max { |a, b| a.updated_at <=> b.updated_at }\n+  end\n+\n+  private\n+\n+  def repository\n+    client.repository  full_name","path":"sideci_demo/rubocop_demo.rb","position":24,"original_position":24,"commit_id":"3ffdd9ef573389858ebaef40c9046227ac347f2c","original_commit_id":"3ffdd9ef573389858ebaef40c9046227ac347f2c","user":{"login":"vexus2","id":1228229,"avatar_url":"https://avatars2.githubusercontent.com/u/1228229?v=4","gravatar_id":"","url":"https://api.github.com/users/vexus2","html_url":"https://github.com/vexus2","followers_url":"https://api.github.com/users/vexus2/followers","following_url":"https://api.github.com/users/vexus2/following{/other_user}","gists_url":"https://api.github.com/users/vexus2/gists{/gist_id}","starred_url":"https://api.github.com/users/vexus2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vexus2/subscriptions","organizations_url":"https://api.github.com/users/vexus2/orgs","repos_url":"https://api.github.com/users/vexus2/repos","events_url":"https://api.github.com/users/vexus2/events{/privacy}","received_events_url":"https://api.github.com/users/vexus2/received_events","type":"User","site_admin":false},"body":"__[RuboCop]__\n\nLayout/ExtraSpacing: Unnecessary spacing detected.\n\n\n<!-- Comment by [SideCI](https://sideci.com) -->","created_at":"2018-02-08T09:39:32Z","updated_at":"2018-02-08T09:39:33Z","html_url":"https://github.com/vexus2/lazy_render/pull/4#discussion_r166876938","pull_request_url":"https://api.github.com/repos/vexus2/lazy_render/pulls/4","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/vexus2/lazy_render/pulls/comments/166876938"},"html":{"href":"https://github.com/vexus2/lazy_render/pull/4#discussion_r166876938"},"pull_request":{"href":"https://api.github.com/repos/vexus2/lazy_render/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/vexus2/lazy_render/pulls/4","id":167919724,"html_url":"https://github.com/vexus2/lazy_render/pull/4","diff_url":"https://github.com/vexus2/lazy_render/pull/4.diff","patch_url":"https://github.com/vexus2/lazy_render/pull/4.patch","issue_url":"https://api.github.com/repos/vexus2/lazy_render/issues/4","number":4,"state":"open","locked":false,"title":"SideCI Demo Pull Request","user":{"login":"vexus2","id":1228229,"avatar_url":"https://avatars2.githubusercontent.com/u/1228229?v=4","gravatar_id":"","url":"https://api.github.com/users/vexus2","html_url":"https://github.com/vexus2","followers_url":"https://api.github.com/users/vexus2/followers","following_url":"https://api.github.com/users/vexus2/following{/other_user}","gists_url":"https://api.github.com/users/vexus2/gists{/gist_id}","starred_url":"https://api.github.com/users/vexus2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vexus2/subscriptions","organizations_url":"https://api.github.com/users/vexus2/orgs","repos_url":"https://api.github.com/users/vexus2/repos","events_url":"https://api.github.com/users/vexus2/events{/privacy}","received_events_url":"https://api.github.com/users/vexus2/received_events","type":"User","site_admin":false},"body":"Welcome to SideCI!","created_at":"2018-02-08T09:39:06Z","updated_at":"2018-02-08T09:39:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"082d5f1c6727719c6b9f5e8d3a3a2ffbc77a74bb","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/vexus2/lazy_render/pulls/4/commits","review_comments_url":"https://api.github.com/repos/vexus2/lazy_render/pulls/4/comments","review_comment_url":"https://api.github.com/repos/vexus2/lazy_render/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vexus2/lazy_render/issues/4/comments","statuses_url":"https://api.github.com/repos/vexus2/lazy_render/statuses/3ffdd9ef573389858ebaef40c9046227ac347f2c","head":{"label":"vexus2:sideci_demo_1518082743","ref":"sideci_demo_1518082743","sha":"3ffdd9ef573389858ebaef40c9046227ac347f2c","user":{"login":"vexus2","id":1228229,"avatar_url":"https://avatars2.githubusercontent.com/u/1228229?v=4","gravatar_id":"","url":"https://api.github.com/users/vexus2","html_url":"https://github.com/vexus2","followers_url":"https://api.github.com/users/vexus2/followers","following_url":"https://api.github.com/users/vexus2/following{/other_user}","gists_url":"https://api.github.com/users/vexus2/gists{/gist_id}","starred_url":"https://api.github.com/users/vexus2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vexus2/subscriptions","organizations_url":"https://api.github.com/users/vexus2/orgs","repos_url":"https://api.github.com/users/vexus2/repos","events_url":"https://api.github.com/users/vexus2/events{/privacy}","received_events_url":"https://api.github.com/users/vexus2/received_events","type":"User","site_admin":false},"repo":{"id":26529785,"name":"lazy_render","full_name":"vexus2/lazy_render","owner":{"login":"vexus2","id":1228229,"avatar_url":"https://avatars2.githubusercontent.com/u/1228229?v=4","gravatar_id":"","url":"https://api.github.com/users/vexus2","html_url":"https://github.com/vexus2","followers_url":"https://api.github.com/users/vexus2/followers","following_url":"https://api.github.com/users/vexus2/following{/other_user}","gists_url":"https://api.github.com/users/vexus2/gists{/gist_id}","starred_url":"https://api.github.com/users/vexus2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vexus2/subscriptions","organizations_url":"https://api.github.com/users/vexus2/orgs","repos_url":"https://api.github.com/users/vexus2/repos","events_url":"https://api.github.com/users/vexus2/events{/privacy}","received_events_url":"https://api.github.com/users/vexus2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vexus2/lazy_render","description":null,"fork":false,"url":"https://api.github.com/repos/vexus2/lazy_render","forks_url":"https://api.github.com/repos/vexus2/lazy_render/forks","keys_url":"https://api.github.com/repos/vexus2/lazy_render/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vexus2/lazy_render/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vexus2/lazy_render/teams","hooks_url":"https://api.github.com/repos/vexus2/lazy_render/hooks","issue_events_url":"https://api.github.com/repos/vexus2/lazy_render/issues/events{/number}","events_url":"https://api.github.com/repos/vexus2/lazy_render/events","assignees_url":"https://api.github.com/repos/vexus2/lazy_render/assignees{/user}","branches_url":"https://api.github.com/repos/vexus2/lazy_render/branches{/branch}","tags_url":"https://api.github.com/repos/vexus2/lazy_render/tags","blobs_url":"https://api.github.com/repos/vexus2/lazy_render/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vexus2/lazy_render/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vexus2/lazy_render/git/refs{/sha}","trees_url":"https://api.github.com/repos/vexus2/lazy_render/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vexus2/lazy_render/statuses/{sha}","languages_url":"https://api.github.com/repos/vexus2/lazy_render/languages","stargazers_url":"https://api.github.com/repos/vexus2/lazy_render/stargazers","contributors_url":"https://api.github.com/repos/vexus2/lazy_render/contributors","subscribers_url":"https://api.github.com/repos/vexus2/lazy_render/subscribers","subscription_url":"https://api.github.com/repos/vexus2/lazy_render/subscription","commits_url":"https://api.github.com/repos/vexus2/lazy_render/commits{/sha}","git_commits_url":"https://api.github.com/repos/vexus2/lazy_render/git/commits{/sha}","comments_url":"https://api.github.com/repos/vexus2/lazy_render/comments{/number}","issue_comment_url":"https://api.github.com/repos/vexus2/lazy_render/issues/comments{/number}","contents_url":"https://api.github.com/repos/vexus2/lazy_render/contents/{+path}","compare_url":"https://api.github.com/repos/vexus2/lazy_render/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vexus2/lazy_render/merges","archive_url":"https://api.github.com/repos/vexus2/lazy_render/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vexus2/lazy_render/downloads","issues_url":"https://api.github.com/repos/vexus2/lazy_render/issues{/number}","pulls_url":"https://api.github.com/repos/vexus2/lazy_render/pulls{/number}","milestones_url":"https://api.github.com/repos/vexus2/lazy_render/milestones{/number}","notifications_url":"https://api.github.com/repos/vexus2/lazy_render/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vexus2/lazy_render/labels{/name}","releases_url":"https://api.github.com/repos/vexus2/lazy_render/releases{/id}","deployments_url":"https://api.github.com/repos/vexus2/lazy_render/deployments","created_at":"2014-11-12T10:00:55Z","updated_at":"2017-11-16T10:26:45Z","pushed_at":"2018-02-08T09:39:06Z","git_url":"git://github.com/vexus2/lazy_render.git","ssh_url":"git@github.com:vexus2/lazy_render.git","clone_url":"https://github.com/vexus2/lazy_render.git","svn_url":"https://github.com/vexus2/lazy_render","homepage":null,"size":57,"stargazers_count":23,"watchers_count":23,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":2,"open_issues":1,"watchers":23,"default_branch":"master"}},"base":{"label":"vexus2:master","ref":"master","sha":"000c114506bf8b6d0d1f7e7b1eda1490a1ed3149","user":{"login":"vexus2","id":1228229,"avatar_url":"https://avatars2.githubusercontent.com/u/1228229?v=4","gravatar_id":"","url":"https://api.github.com/users/vexus2","html_url":"https://github.com/vexus2","followers_url":"https://api.github.com/users/vexus2/followers","following_url":"https://api.github.com/users/vexus2/following{/other_user}","gists_url":"https://api.github.com/users/vexus2/gists{/gist_id}","starred_url":"https://api.github.com/users/vexus2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vexus2/subscriptions","organizations_url":"https://api.github.com/users/vexus2/orgs","repos_url":"https://api.github.com/users/vexus2/repos","events_url":"https://api.github.com/users/vexus2/events{/privacy}","received_events_url":"https://api.github.com/users/vexus2/received_events","type":"User","site_admin":false},"repo":{"id":26529785,"name":"lazy_render","full_name":"vexus2/lazy_render","owner":{"login":"vexus2","id":1228229,"avatar_url":"https://avatars2.githubusercontent.com/u/1228229?v=4","gravatar_id":"","url":"https://api.github.com/users/vexus2","html_url":"https://github.com/vexus2","followers_url":"https://api.github.com/users/vexus2/followers","following_url":"https://api.github.com/users/vexus2/following{/other_user}","gists_url":"https://api.github.com/users/vexus2/gists{/gist_id}","starred_url":"https://api.github.com/users/vexus2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vexus2/subscriptions","organizations_url":"https://api.github.com/users/vexus2/orgs","repos_url":"https://api.github.com/users/vexus2/repos","events_url":"https://api.github.com/users/vexus2/events{/privacy}","received_events_url":"https://api.github.com/users/vexus2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vexus2/lazy_render","description":null,"fork":false,"url":"https://api.github.com/repos/vexus2/lazy_render","forks_url":"https://api.github.com/repos/vexus2/lazy_render/forks","keys_url":"https://api.github.com/repos/vexus2/lazy_render/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vexus2/lazy_render/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vexus2/lazy_render/teams","hooks_url":"https://api.github.com/repos/vexus2/lazy_render/hooks","issue_events_url":"https://api.github.com/repos/vexus2/lazy_render/issues/events{/number}","events_url":"https://api.github.com/repos/vexus2/lazy_render/events","assignees_url":"https://api.github.com/repos/vexus2/lazy_render/assignees{/user}","branches_url":"https://api.github.com/repos/vexus2/lazy_render/branches{/branch}","tags_url":"https://api.github.com/repos/vexus2/lazy_render/tags","blobs_url":"https://api.github.com/repos/vexus2/lazy_render/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vexus2/lazy_render/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vexus2/lazy_render/git/refs{/sha}","trees_url":"https://api.github.com/repos/vexus2/lazy_render/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vexus2/lazy_render/statuses/{sha}","languages_url":"https://api.github.com/repos/vexus2/lazy_render/languages","stargazers_url":"https://api.github.com/repos/vexus2/lazy_render/stargazers","contributors_url":"https://api.github.com/repos/vexus2/lazy_render/contributors","subscribers_url":"https://api.github.com/repos/vexus2/lazy_render/subscribers","subscription_url":"https://api.github.com/repos/vexus2/lazy_render/subscription","commits_url":"https://api.github.com/repos/vexus2/lazy_render/commits{/sha}","git_commits_url":"https://api.github.com/repos/vexus2/lazy_render/git/commits{/sha}","comments_url":"https://api.github.com/repos/vexus2/lazy_render/comments{/number}","issue_comment_url":"https://api.github.com/repos/vexus2/lazy_render/issues/comments{/number}","contents_url":"https://api.github.com/repos/vexus2/lazy_render/contents/{+path}","compare_url":"https://api.github.com/repos/vexus2/lazy_render/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vexus2/lazy_render/merges","archive_url":"https://api.github.com/repos/vexus2/lazy_render/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vexus2/lazy_render/downloads","issues_url":"https://api.github.com/repos/vexus2/lazy_render/issues{/number}","pulls_url":"https://api.github.com/repos/vexus2/lazy_render/pulls{/number}","milestones_url":"https://api.github.com/repos/vexus2/lazy_render/milestones{/number}","notifications_url":"https://api.github.com/repos/vexus2/lazy_render/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vexus2/lazy_render/labels{/name}","releases_url":"https://api.github.com/repos/vexus2/lazy_render/releases{/id}","deployments_url":"https://api.github.com/repos/vexus2/lazy_render/deployments","created_at":"2014-11-12T10:00:55Z","updated_at":"2017-11-16T10:26:45Z","pushed_at":"2018-02-08T09:39:06Z","git_url":"git://github.com/vexus2/lazy_render.git","ssh_url":"git@github.com:vexus2/lazy_render.git","clone_url":"https://github.com/vexus2/lazy_render.git","svn_url":"https://github.com/vexus2/lazy_render","homepage":null,"size":57,"stargazers_count":23,"watchers_count":23,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":2,"open_issues":1,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vexus2/lazy_render/pulls/4"},"html":{"href":"https://github.com/vexus2/lazy_render/pull/4"},"issue":{"href":"https://api.github.com/repos/vexus2/lazy_render/issues/4"},"comments":{"href":"https://api.github.com/repos/vexus2/lazy_render/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/vexus2/lazy_render/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/vexus2/lazy_render/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vexus2/lazy_render/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/vexus2/lazy_render/statuses/3ffdd9ef573389858ebaef40c9046227ac347f2c"}},"author_association":"OWNER"}}
{"actor":{"display_login":"vexus2"}}