{"action":"created","comment":{"url":"https://api.github.com/repos/travis-ci/travis-api/pulls/comments/179715893","pull_request_review_id":110011697,"id":179715893,"diff_hunk":"@@ -0,0 +1,6 @@\n+module Travis::API::V3\n+  class Renderer::Installation < ModelRenderer\n+    representation(:minimal,  :id, :github_id)\n+    representation(:standard, *representations[:minimal], :owner_type, :owner_id)","path":"lib/travis/api/v3/renderer/installation.rb","position":4,"original_position":4,"commit_id":"a225d3f1336804fbbed0242b38eb0b4c3d6a2530","original_commit_id":"819367344bc879dbd632ad7732229788908d14c1","user":{"login":"rkh","id":30442,"avatar_url":"https://avatars2.githubusercontent.com/u/30442?v=4","gravatar_id":"","url":"https://api.github.com/users/rkh","html_url":"https://github.com/rkh","followers_url":"https://api.github.com/users/rkh/followers","following_url":"https://api.github.com/users/rkh/following{/other_user}","gists_url":"https://api.github.com/users/rkh/gists{/gist_id}","starred_url":"https://api.github.com/users/rkh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkh/subscriptions","organizations_url":"https://api.github.com/users/rkh/orgs","repos_url":"https://api.github.com/users/rkh/repos","events_url":"https://api.github.com/users/rkh/events{/privacy}","received_events_url":"https://api.github.com/users/rkh/received_events","type":"User","site_admin":false},"body":"Instead of exposing `owner_type` and `owner_id`, this should include `owner` (like repository and other entities). Especially exposing `owner_type` is a leaky abstraction, as it would include the Ruby class name. Also, that way it is possible to fetch the owner explicitly via `include`.","created_at":"2018-04-06T10:16:43Z","updated_at":"2018-04-06T10:25:56Z","html_url":"https://github.com/travis-ci/travis-api/pull/723#discussion_r179715893","pull_request_url":"https://api.github.com/repos/travis-ci/travis-api/pulls/723","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/travis-ci/travis-api/pulls/comments/179715893"},"html":{"href":"https://github.com/travis-ci/travis-api/pull/723#discussion_r179715893"},"pull_request":{"href":"https://api.github.com/repos/travis-ci/travis-api/pulls/723"}}},"pull_request":{"url":"https://api.github.com/repos/travis-ci/travis-api/pulls/723","id":178342040,"html_url":"https://github.com/travis-ci/travis-api/pull/723","diff_url":"https://github.com/travis-ci/travis-api/pull/723.diff","patch_url":"https://github.com/travis-ci/travis-api/pull/723.patch","issue_url":"https://api.github.com/repos/travis-ci/travis-api/issues/723","number":723,"state":"open","locked":false,"title":"[WIP] gh app","user":{"login":"carlad","id":1754975,"avatar_url":"https://avatars0.githubusercontent.com/u/1754975?v=4","gravatar_id":"","url":"https://api.github.com/users/carlad","html_url":"https://github.com/carlad","followers_url":"https://api.github.com/users/carlad/followers","following_url":"https://api.github.com/users/carlad/following{/other_user}","gists_url":"https://api.github.com/users/carlad/gists{/gist_id}","starred_url":"https://api.github.com/users/carlad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlad/subscriptions","organizations_url":"https://api.github.com/users/carlad/orgs","repos_url":"https://api.github.com/users/carlad/repos","events_url":"https://api.github.com/users/carlad/events{/privacy}","received_events_url":"https://api.github.com/users/carlad/received_events","type":"User","site_admin":false},"body":"Addresses https://github.com/travis-pro/team-teal/issues/2608","created_at":"2018-03-29T14:16:46Z","updated_at":"2018-04-06T10:25:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2aa11b94dc010d40f7f16b6ece4596c3e583e315","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/travis-ci/travis-api/pulls/723/commits","review_comments_url":"https://api.github.com/repos/travis-ci/travis-api/pulls/723/comments","review_comment_url":"https://api.github.com/repos/travis-ci/travis-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/travis-ci/travis-api/issues/723/comments","statuses_url":"https://api.github.com/repos/travis-ci/travis-api/statuses/a225d3f1336804fbbed0242b38eb0b4c3d6a2530","head":{"label":"travis-ci:cd-gh-app","ref":"cd-gh-app","sha":"a225d3f1336804fbbed0242b38eb0b4c3d6a2530","user":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars2.githubusercontent.com/u/639823?v=4","gravatar_id":"","url":"https://api.github.com/users/travis-ci","html_url":"https://github.com/travis-ci","followers_url":"https://api.github.com/users/travis-ci/followers","following_url":"https://api.github.com/users/travis-ci/following{/other_user}","gists_url":"https://api.github.com/users/travis-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/travis-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travis-ci/subscriptions","organizations_url":"https://api.github.com/users/travis-ci/orgs","repos_url":"https://api.github.com/users/travis-ci/repos","events_url":"https://api.github.com/users/travis-ci/events{/privacy}","received_events_url":"https://api.github.com/users/travis-ci/received_events","type":"Organization","site_admin":false},"repo":{"id":5096124,"name":"travis-api","full_name":"travis-ci/travis-api","owner":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars2.githubusercontent.com/u/639823?v=4","gravatar_id":"","url":"https://api.github.com/users/travis-ci","html_url":"https://github.com/travis-ci","followers_url":"https://api.github.com/users/travis-ci/followers","following_url":"https://api.github.com/users/travis-ci/following{/other_user}","gists_url":"https://api.github.com/users/travis-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/travis-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travis-ci/subscriptions","organizations_url":"https://api.github.com/users/travis-ci/orgs","repos_url":"https://api.github.com/users/travis-ci/repos","events_url":"https://api.github.com/users/travis-ci/events{/privacy}","received_events_url":"https://api.github.com/users/travis-ci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/travis-ci/travis-api","description":"The public Travis API","fork":false,"url":"https://api.github.com/repos/travis-ci/travis-api","forks_url":"https://api.github.com/repos/travis-ci/travis-api/forks","keys_url":"https://api.github.com/repos/travis-ci/travis-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/travis-ci/travis-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/travis-ci/travis-api/teams","hooks_url":"https://api.github.com/repos/travis-ci/travis-api/hooks","issue_events_url":"https://api.github.com/repos/travis-ci/travis-api/issues/events{/number}","events_url":"https://api.github.com/repos/travis-ci/travis-api/events","assignees_url":"https://api.github.com/repos/travis-ci/travis-api/assignees{/user}","branches_url":"https://api.github.com/repos/travis-ci/travis-api/branches{/branch}","tags_url":"https://api.github.com/repos/travis-ci/travis-api/tags","blobs_url":"https://api.github.com/repos/travis-ci/travis-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/travis-ci/travis-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/travis-ci/travis-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/travis-ci/travis-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/travis-ci/travis-api/statuses/{sha}","languages_url":"https://api.github.com/repos/travis-ci/travis-api/languages","stargazers_url":"https://api.github.com/repos/travis-ci/travis-api/stargazers","contributors_url":"https://api.github.com/repos/travis-ci/travis-api/contributors","subscribers_url":"https://api.github.com/repos/travis-ci/travis-api/subscribers","subscription_url":"https://api.github.com/repos/travis-ci/travis-api/subscription","commits_url":"https://api.github.com/repos/travis-ci/travis-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/travis-ci/travis-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/travis-ci/travis-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/travis-ci/travis-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/travis-ci/travis-api/contents/{+path}","compare_url":"https://api.github.com/repos/travis-ci/travis-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/travis-ci/travis-api/merges","archive_url":"https://api.github.com/repos/travis-ci/travis-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/travis-ci/travis-api/downloads","issues_url":"https://api.github.com/repos/travis-ci/travis-api/issues{/number}","pulls_url":"https://api.github.com/repos/travis-ci/travis-api/pulls{/number}","milestones_url":"https://api.github.com/repos/travis-ci/travis-api/milestones{/number}","notifications_url":"https://api.github.com/repos/travis-ci/travis-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/travis-ci/travis-api/labels{/name}","releases_url":"https://api.github.com/repos/travis-ci/travis-api/releases{/id}","deployments_url":"https://api.github.com/repos/travis-ci/travis-api/deployments","created_at":"2012-07-18T12:55:46Z","updated_at":"2018-04-05T14:33:04Z","pushed_at":"2018-04-06T09:58:47Z","git_url":"git://github.com/travis-ci/travis-api.git","ssh_url":"git@github.com:travis-ci/travis-api.git","clone_url":"https://github.com/travis-ci/travis-api.git","svn_url":"https://github.com/travis-ci/travis-api","homepage":"https://api.travis-ci.org","size":7226,"stargazers_count":207,"watchers_count":207,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":116,"mirror_url":null,"archived":false,"open_issues_count":23,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":116,"open_issues":23,"watchers":207,"default_branch":"master"}},"base":{"label":"travis-ci:master","ref":"master","sha":"331d4779738e21fad7d1c2161a49ed171d53b9fd","user":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars2.githubusercontent.com/u/639823?v=4","gravatar_id":"","url":"https://api.github.com/users/travis-ci","html_url":"https://github.com/travis-ci","followers_url":"https://api.github.com/users/travis-ci/followers","following_url":"https://api.github.com/users/travis-ci/following{/other_user}","gists_url":"https://api.github.com/users/travis-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/travis-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travis-ci/subscriptions","organizations_url":"https://api.github.com/users/travis-ci/orgs","repos_url":"https://api.github.com/users/travis-ci/repos","events_url":"https://api.github.com/users/travis-ci/events{/privacy}","received_events_url":"https://api.github.com/users/travis-ci/received_events","type":"Organization","site_admin":false},"repo":{"id":5096124,"name":"travis-api","full_name":"travis-ci/travis-api","owner":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars2.githubusercontent.com/u/639823?v=4","gravatar_id":"","url":"https://api.github.com/users/travis-ci","html_url":"https://github.com/travis-ci","followers_url":"https://api.github.com/users/travis-ci/followers","following_url":"https://api.github.com/users/travis-ci/following{/other_user}","gists_url":"https://api.github.com/users/travis-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/travis-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travis-ci/subscriptions","organizations_url":"https://api.github.com/users/travis-ci/orgs","repos_url":"https://api.github.com/users/travis-ci/repos","events_url":"https://api.github.com/users/travis-ci/events{/privacy}","received_events_url":"https://api.github.com/users/travis-ci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/travis-ci/travis-api","description":"The public Travis API","fork":false,"url":"https://api.github.com/repos/travis-ci/travis-api","forks_url":"https://api.github.com/repos/travis-ci/travis-api/forks","keys_url":"https://api.github.com/repos/travis-ci/travis-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/travis-ci/travis-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/travis-ci/travis-api/teams","hooks_url":"https://api.github.com/repos/travis-ci/travis-api/hooks","issue_events_url":"https://api.github.com/repos/travis-ci/travis-api/issues/events{/number}","events_url":"https://api.github.com/repos/travis-ci/travis-api/events","assignees_url":"https://api.github.com/repos/travis-ci/travis-api/assignees{/user}","branches_url":"https://api.github.com/repos/travis-ci/travis-api/branches{/branch}","tags_url":"https://api.github.com/repos/travis-ci/travis-api/tags","blobs_url":"https://api.github.com/repos/travis-ci/travis-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/travis-ci/travis-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/travis-ci/travis-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/travis-ci/travis-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/travis-ci/travis-api/statuses/{sha}","languages_url":"https://api.github.com/repos/travis-ci/travis-api/languages","stargazers_url":"https://api.github.com/repos/travis-ci/travis-api/stargazers","contributors_url":"https://api.github.com/repos/travis-ci/travis-api/contributors","subscribers_url":"https://api.github.com/repos/travis-ci/travis-api/subscribers","subscription_url":"https://api.github.com/repos/travis-ci/travis-api/subscription","commits_url":"https://api.github.com/repos/travis-ci/travis-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/travis-ci/travis-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/travis-ci/travis-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/travis-ci/travis-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/travis-ci/travis-api/contents/{+path}","compare_url":"https://api.github.com/repos/travis-ci/travis-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/travis-ci/travis-api/merges","archive_url":"https://api.github.com/repos/travis-ci/travis-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/travis-ci/travis-api/downloads","issues_url":"https://api.github.com/repos/travis-ci/travis-api/issues{/number}","pulls_url":"https://api.github.com/repos/travis-ci/travis-api/pulls{/number}","milestones_url":"https://api.github.com/repos/travis-ci/travis-api/milestones{/number}","notifications_url":"https://api.github.com/repos/travis-ci/travis-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/travis-ci/travis-api/labels{/name}","releases_url":"https://api.github.com/repos/travis-ci/travis-api/releases{/id}","deployments_url":"https://api.github.com/repos/travis-ci/travis-api/deployments","created_at":"2012-07-18T12:55:46Z","updated_at":"2018-04-05T14:33:04Z","pushed_at":"2018-04-06T09:58:47Z","git_url":"git://github.com/travis-ci/travis-api.git","ssh_url":"git@github.com:travis-ci/travis-api.git","clone_url":"https://github.com/travis-ci/travis-api.git","svn_url":"https://github.com/travis-ci/travis-api","homepage":"https://api.travis-ci.org","size":7226,"stargazers_count":207,"watchers_count":207,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":116,"mirror_url":null,"archived":false,"open_issues_count":23,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":116,"open_issues":23,"watchers":207,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/travis-ci/travis-api/pulls/723"},"html":{"href":"https://github.com/travis-ci/travis-api/pull/723"},"issue":{"href":"https://api.github.com/repos/travis-ci/travis-api/issues/723"},"comments":{"href":"https://api.github.com/repos/travis-ci/travis-api/issues/723/comments"},"review_comments":{"href":"https://api.github.com/repos/travis-ci/travis-api/pulls/723/comments"},"review_comment":{"href":"https://api.github.com/repos/travis-ci/travis-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/travis-ci/travis-api/pulls/723/commits"},"statuses":{"href":"https://api.github.com/repos/travis-ci/travis-api/statuses/a225d3f1336804fbbed0242b38eb0b4c3d6a2530"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"rkh"}}