{"action":"created","comment":{"url":"https://api.github.com/repos/amyroi/enum-i18n/pulls/comments/171142665","pull_request_review_id":99942815,"id":171142665,"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 }","path":"sideci_demo/rubocop_demo.rb","position":18,"original_position":18,"commit_id":"b81e913f29b9ad2961cc6c902adaca5e8b55a936","original_commit_id":"b81e913f29b9ad2961cc6c902adaca5e8b55a936","user":{"login":"amyroi","id":1243446,"avatar_url":"https://avatars0.githubusercontent.com/u/1243446?v=4","gravatar_id":"","url":"https://api.github.com/users/amyroi","html_url":"https://github.com/amyroi","followers_url":"https://api.github.com/users/amyroi/followers","following_url":"https://api.github.com/users/amyroi/following{/other_user}","gists_url":"https://api.github.com/users/amyroi/gists{/gist_id}","starred_url":"https://api.github.com/users/amyroi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amyroi/subscriptions","organizations_url":"https://api.github.com/users/amyroi/orgs","repos_url":"https://api.github.com/users/amyroi/repos","events_url":"https://api.github.com/users/amyroi/events{/privacy}","received_events_url":"https://api.github.com/users/amyroi/received_events","type":"User","site_admin":false},"body":"__[RuboCop]__\n\nPerformance/CompareWithBlock: Use `max_by(&:updated_at)` instead of `max { |a, b| a.updated_at <=> b.updated_at }`.\n\n\n<!-- Comment by [SideCI](https://sideci.com) -->","created_at":"2018-02-28T04:47:37Z","updated_at":"2018-02-28T04:47:38Z","html_url":"https://github.com/amyroi/enum-i18n/pull/1#discussion_r171142665","pull_request_url":"https://api.github.com/repos/amyroi/enum-i18n/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/amyroi/enum-i18n/pulls/comments/171142665"},"html":{"href":"https://github.com/amyroi/enum-i18n/pull/1#discussion_r171142665"},"pull_request":{"href":"https://api.github.com/repos/amyroi/enum-i18n/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/amyroi/enum-i18n/pulls/1","id":171855256,"html_url":"https://github.com/amyroi/enum-i18n/pull/1","diff_url":"https://github.com/amyroi/enum-i18n/pull/1.diff","patch_url":"https://github.com/amyroi/enum-i18n/pull/1.patch","issue_url":"https://api.github.com/repos/amyroi/enum-i18n/issues/1","number":1,"state":"open","locked":false,"title":"SideCI Demo Pull Request","user":{"login":"amyroi","id":1243446,"avatar_url":"https://avatars0.githubusercontent.com/u/1243446?v=4","gravatar_id":"","url":"https://api.github.com/users/amyroi","html_url":"https://github.com/amyroi","followers_url":"https://api.github.com/users/amyroi/followers","following_url":"https://api.github.com/users/amyroi/following{/other_user}","gists_url":"https://api.github.com/users/amyroi/gists{/gist_id}","starred_url":"https://api.github.com/users/amyroi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amyroi/subscriptions","organizations_url":"https://api.github.com/users/amyroi/orgs","repos_url":"https://api.github.com/users/amyroi/repos","events_url":"https://api.github.com/users/amyroi/events{/privacy}","received_events_url":"https://api.github.com/users/amyroi/received_events","type":"User","site_admin":false},"body":"Welcome to SideCI!","created_at":"2018-02-28T04:47:05Z","updated_at":"2018-02-28T04:47:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8b6a56678e921908cc6bb01a25874b84f5135f3b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/amyroi/enum-i18n/pulls/1/commits","review_comments_url":"https://api.github.com/repos/amyroi/enum-i18n/pulls/1/comments","review_comment_url":"https://api.github.com/repos/amyroi/enum-i18n/pulls/comments{/number}","comments_url":"https://api.github.com/repos/amyroi/enum-i18n/issues/1/comments","statuses_url":"https://api.github.com/repos/amyroi/enum-i18n/statuses/b81e913f29b9ad2961cc6c902adaca5e8b55a936","head":{"label":"amyroi:sideci_demo_1519793223","ref":"sideci_demo_1519793223","sha":"b81e913f29b9ad2961cc6c902adaca5e8b55a936","user":{"login":"amyroi","id":1243446,"avatar_url":"https://avatars0.githubusercontent.com/u/1243446?v=4","gravatar_id":"","url":"https://api.github.com/users/amyroi","html_url":"https://github.com/amyroi","followers_url":"https://api.github.com/users/amyroi/followers","following_url":"https://api.github.com/users/amyroi/following{/other_user}","gists_url":"https://api.github.com/users/amyroi/gists{/gist_id}","starred_url":"https://api.github.com/users/amyroi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amyroi/subscriptions","organizations_url":"https://api.github.com/users/amyroi/orgs","repos_url":"https://api.github.com/users/amyroi/repos","events_url":"https://api.github.com/users/amyroi/events{/privacy}","received_events_url":"https://api.github.com/users/amyroi/received_events","type":"User","site_admin":false},"repo":{"id":100864975,"name":"enum-i18n","full_name":"amyroi/enum-i18n","owner":{"login":"amyroi","id":1243446,"avatar_url":"https://avatars0.githubusercontent.com/u/1243446?v=4","gravatar_id":"","url":"https://api.github.com/users/amyroi","html_url":"https://github.com/amyroi","followers_url":"https://api.github.com/users/amyroi/followers","following_url":"https://api.github.com/users/amyroi/following{/other_user}","gists_url":"https://api.github.com/users/amyroi/gists{/gist_id}","starred_url":"https://api.github.com/users/amyroi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amyroi/subscriptions","organizations_url":"https://api.github.com/users/amyroi/orgs","repos_url":"https://api.github.com/users/amyroi/repos","events_url":"https://api.github.com/users/amyroi/events{/privacy}","received_events_url":"https://api.github.com/users/amyroi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amyroi/enum-i18n","description":"Enum attributes with I18n and ActiveRecord support","fork":false,"url":"https://api.github.com/repos/amyroi/enum-i18n","forks_url":"https://api.github.com/repos/amyroi/enum-i18n/forks","keys_url":"https://api.github.com/repos/amyroi/enum-i18n/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amyroi/enum-i18n/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amyroi/enum-i18n/teams","hooks_url":"https://api.github.com/repos/amyroi/enum-i18n/hooks","issue_events_url":"https://api.github.com/repos/amyroi/enum-i18n/issues/events{/number}","events_url":"https://api.github.com/repos/amyroi/enum-i18n/events","assignees_url":"https://api.github.com/repos/amyroi/enum-i18n/assignees{/user}","branches_url":"https://api.github.com/repos/amyroi/enum-i18n/branches{/branch}","tags_url":"https://api.github.com/repos/amyroi/enum-i18n/tags","blobs_url":"https://api.github.com/repos/amyroi/enum-i18n/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amyroi/enum-i18n/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amyroi/enum-i18n/git/refs{/sha}","trees_url":"https://api.github.com/repos/amyroi/enum-i18n/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amyroi/enum-i18n/statuses/{sha}","languages_url":"https://api.github.com/repos/amyroi/enum-i18n/languages","stargazers_url":"https://api.github.com/repos/amyroi/enum-i18n/stargazers","contributors_url":"https://api.github.com/repos/amyroi/enum-i18n/contributors","subscribers_url":"https://api.github.com/repos/amyroi/enum-i18n/subscribers","subscription_url":"https://api.github.com/repos/amyroi/enum-i18n/subscription","commits_url":"https://api.github.com/repos/amyroi/enum-i18n/commits{/sha}","git_commits_url":"https://api.github.com/repos/amyroi/enum-i18n/git/commits{/sha}","comments_url":"https://api.github.com/repos/amyroi/enum-i18n/comments{/number}","issue_comment_url":"https://api.github.com/repos/amyroi/enum-i18n/issues/comments{/number}","contents_url":"https://api.github.com/repos/amyroi/enum-i18n/contents/{+path}","compare_url":"https://api.github.com/repos/amyroi/enum-i18n/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amyroi/enum-i18n/merges","archive_url":"https://api.github.com/repos/amyroi/enum-i18n/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amyroi/enum-i18n/downloads","issues_url":"https://api.github.com/repos/amyroi/enum-i18n/issues{/number}","pulls_url":"https://api.github.com/repos/amyroi/enum-i18n/pulls{/number}","milestones_url":"https://api.github.com/repos/amyroi/enum-i18n/milestones{/number}","notifications_url":"https://api.github.com/repos/amyroi/enum-i18n/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amyroi/enum-i18n/labels{/name}","releases_url":"https://api.github.com/repos/amyroi/enum-i18n/releases{/id}","deployments_url":"https://api.github.com/repos/amyroi/enum-i18n/deployments","created_at":"2017-08-20T13:56:01Z","updated_at":"2017-10-29T16:52:24Z","pushed_at":"2018-02-28T04:47:05Z","git_url":"git://github.com/amyroi/enum-i18n.git","ssh_url":"git@github.com:amyroi/enum-i18n.git","clone_url":"https://github.com/amyroi/enum-i18n.git","svn_url":"https://github.com/amyroi/enum-i18n","homepage":"","size":12,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"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":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"amyroi:master","ref":"master","sha":"538254f84d930822da1b2954849f106d32317ab7","user":{"login":"amyroi","id":1243446,"avatar_url":"https://avatars0.githubusercontent.com/u/1243446?v=4","gravatar_id":"","url":"https://api.github.com/users/amyroi","html_url":"https://github.com/amyroi","followers_url":"https://api.github.com/users/amyroi/followers","following_url":"https://api.github.com/users/amyroi/following{/other_user}","gists_url":"https://api.github.com/users/amyroi/gists{/gist_id}","starred_url":"https://api.github.com/users/amyroi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amyroi/subscriptions","organizations_url":"https://api.github.com/users/amyroi/orgs","repos_url":"https://api.github.com/users/amyroi/repos","events_url":"https://api.github.com/users/amyroi/events{/privacy}","received_events_url":"https://api.github.com/users/amyroi/received_events","type":"User","site_admin":false},"repo":{"id":100864975,"name":"enum-i18n","full_name":"amyroi/enum-i18n","owner":{"login":"amyroi","id":1243446,"avatar_url":"https://avatars0.githubusercontent.com/u/1243446?v=4","gravatar_id":"","url":"https://api.github.com/users/amyroi","html_url":"https://github.com/amyroi","followers_url":"https://api.github.com/users/amyroi/followers","following_url":"https://api.github.com/users/amyroi/following{/other_user}","gists_url":"https://api.github.com/users/amyroi/gists{/gist_id}","starred_url":"https://api.github.com/users/amyroi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amyroi/subscriptions","organizations_url":"https://api.github.com/users/amyroi/orgs","repos_url":"https://api.github.com/users/amyroi/repos","events_url":"https://api.github.com/users/amyroi/events{/privacy}","received_events_url":"https://api.github.com/users/amyroi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amyroi/enum-i18n","description":"Enum attributes with I18n and ActiveRecord support","fork":false,"url":"https://api.github.com/repos/amyroi/enum-i18n","forks_url":"https://api.github.com/repos/amyroi/enum-i18n/forks","keys_url":"https://api.github.com/repos/amyroi/enum-i18n/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amyroi/enum-i18n/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amyroi/enum-i18n/teams","hooks_url":"https://api.github.com/repos/amyroi/enum-i18n/hooks","issue_events_url":"https://api.github.com/repos/amyroi/enum-i18n/issues/events{/number}","events_url":"https://api.github.com/repos/amyroi/enum-i18n/events","assignees_url":"https://api.github.com/repos/amyroi/enum-i18n/assignees{/user}","branches_url":"https://api.github.com/repos/amyroi/enum-i18n/branches{/branch}","tags_url":"https://api.github.com/repos/amyroi/enum-i18n/tags","blobs_url":"https://api.github.com/repos/amyroi/enum-i18n/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amyroi/enum-i18n/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amyroi/enum-i18n/git/refs{/sha}","trees_url":"https://api.github.com/repos/amyroi/enum-i18n/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amyroi/enum-i18n/statuses/{sha}","languages_url":"https://api.github.com/repos/amyroi/enum-i18n/languages","stargazers_url":"https://api.github.com/repos/amyroi/enum-i18n/stargazers","contributors_url":"https://api.github.com/repos/amyroi/enum-i18n/contributors","subscribers_url":"https://api.github.com/repos/amyroi/enum-i18n/subscribers","subscription_url":"https://api.github.com/repos/amyroi/enum-i18n/subscription","commits_url":"https://api.github.com/repos/amyroi/enum-i18n/commits{/sha}","git_commits_url":"https://api.github.com/repos/amyroi/enum-i18n/git/commits{/sha}","comments_url":"https://api.github.com/repos/amyroi/enum-i18n/comments{/number}","issue_comment_url":"https://api.github.com/repos/amyroi/enum-i18n/issues/comments{/number}","contents_url":"https://api.github.com/repos/amyroi/enum-i18n/contents/{+path}","compare_url":"https://api.github.com/repos/amyroi/enum-i18n/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amyroi/enum-i18n/merges","archive_url":"https://api.github.com/repos/amyroi/enum-i18n/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amyroi/enum-i18n/downloads","issues_url":"https://api.github.com/repos/amyroi/enum-i18n/issues{/number}","pulls_url":"https://api.github.com/repos/amyroi/enum-i18n/pulls{/number}","milestones_url":"https://api.github.com/repos/amyroi/enum-i18n/milestones{/number}","notifications_url":"https://api.github.com/repos/amyroi/enum-i18n/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amyroi/enum-i18n/labels{/name}","releases_url":"https://api.github.com/repos/amyroi/enum-i18n/releases{/id}","deployments_url":"https://api.github.com/repos/amyroi/enum-i18n/deployments","created_at":"2017-08-20T13:56:01Z","updated_at":"2017-10-29T16:52:24Z","pushed_at":"2018-02-28T04:47:05Z","git_url":"git://github.com/amyroi/enum-i18n.git","ssh_url":"git@github.com:amyroi/enum-i18n.git","clone_url":"https://github.com/amyroi/enum-i18n.git","svn_url":"https://github.com/amyroi/enum-i18n","homepage":"","size":12,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"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":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amyroi/enum-i18n/pulls/1"},"html":{"href":"https://github.com/amyroi/enum-i18n/pull/1"},"issue":{"href":"https://api.github.com/repos/amyroi/enum-i18n/issues/1"},"comments":{"href":"https://api.github.com/repos/amyroi/enum-i18n/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/amyroi/enum-i18n/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/amyroi/enum-i18n/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/amyroi/enum-i18n/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/amyroi/enum-i18n/statuses/b81e913f29b9ad2961cc6c902adaca5e8b55a936"}},"author_association":"OWNER"}}
{"actor":{"display_login":"amyroi"}}