{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/hotel-management/pulls/comments/210201522","pull_request_review_id":146365558,"id":210201522,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDIwMTUyMg==","diff_hunk":"@@ -0,0 +1,34 @@\n+class Admin::BookingsController < ApplicationController\n+  before_action :load_booking, only: %i(edit update show)\n+\n+  def index\n+    @bookings = Booking.by_latest.includes(:user)\n+                   .includes(:booking_details)\n+                   .page(params[:page])\n+                   .per Settings.show","path":"app/controllers/admin/bookings_controller.rb","position":8,"original_position":8,"commit_id":"532a02e58d56d54602f89a7148b44e358b61a7f2","original_commit_id":"532a02e58d56d54602f89a7148b44e358b61a7f2","user":{"login":"mdmahmudurrahman","id":16096144,"node_id":"MDQ6VXNlcjE2MDk2MTQ0","avatar_url":"https://avatars2.githubusercontent.com/u/16096144?v=4","gravatar_id":"","url":"https://api.github.com/users/mdmahmudurrahman","html_url":"https://github.com/mdmahmudurrahman","followers_url":"https://api.github.com/users/mdmahmudurrahman/followers","following_url":"https://api.github.com/users/mdmahmudurrahman/following{/other_user}","gists_url":"https://api.github.com/users/mdmahmudurrahman/gists{/gist_id}","starred_url":"https://api.github.com/users/mdmahmudurrahman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdmahmudurrahman/subscriptions","organizations_url":"https://api.github.com/users/mdmahmudurrahman/orgs","repos_url":"https://api.github.com/users/mdmahmudurrahman/repos","events_url":"https://api.github.com/users/mdmahmudurrahman/events{/privacy}","received_events_url":"https://api.github.com/users/mdmahmudurrahman/received_events","type":"User","site_admin":false},"body":"Indentation","created_at":"2018-08-15T08:26:03Z","updated_at":"2018-08-15T08:33:03Z","html_url":"https://github.com/framgia/hotel-management/pull/22#discussion_r210201522","pull_request_url":"https://api.github.com/repos/framgia/hotel-management/pulls/22","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/framgia/hotel-management/pulls/comments/210201522"},"html":{"href":"https://github.com/framgia/hotel-management/pull/22#discussion_r210201522"},"pull_request":{"href":"https://api.github.com/repos/framgia/hotel-management/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/hotel-management/pulls/22","id":208493262,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4NDkzMjYy","html_url":"https://github.com/framgia/hotel-management/pull/22","diff_url":"https://github.com/framgia/hotel-management/pull/22.diff","patch_url":"https://github.com/framgia/hotel-management/pull/22.patch","issue_url":"https://api.github.com/repos/framgia/hotel-management/issues/22","number":22,"state":"open","locked":false,"title":"Admin manage bookings","user":{"login":"devtuananh","id":34335356,"node_id":"MDQ6VXNlcjM0MzM1MzU2","avatar_url":"https://avatars2.githubusercontent.com/u/34335356?v=4","gravatar_id":"","url":"https://api.github.com/users/devtuananh","html_url":"https://github.com/devtuananh","followers_url":"https://api.github.com/users/devtuananh/followers","following_url":"https://api.github.com/users/devtuananh/following{/other_user}","gists_url":"https://api.github.com/users/devtuananh/gists{/gist_id}","starred_url":"https://api.github.com/users/devtuananh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devtuananh/subscriptions","organizations_url":"https://api.github.com/users/devtuananh/orgs","repos_url":"https://api.github.com/users/devtuananh/repos","events_url":"https://api.github.com/users/devtuananh/events{/privacy}","received_events_url":"https://api.github.com/users/devtuananh/received_events","type":"User","site_admin":false},"body":"https://dev.framgia.com/issues/184389","created_at":"2018-08-15T07:40:59Z","updated_at":"2018-08-15T08:33:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fce3d2f24832b2bd12ee0c68c3d57345a9f8173f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/hotel-management/pulls/22/commits","review_comments_url":"https://api.github.com/repos/framgia/hotel-management/pulls/22/comments","review_comment_url":"https://api.github.com/repos/framgia/hotel-management/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/hotel-management/issues/22/comments","statuses_url":"https://api.github.com/repos/framgia/hotel-management/statuses/532a02e58d56d54602f89a7148b44e358b61a7f2","head":{"label":"devtuananh:manage-booking","ref":"manage-booking","sha":"532a02e58d56d54602f89a7148b44e358b61a7f2","user":{"login":"devtuananh","id":34335356,"node_id":"MDQ6VXNlcjM0MzM1MzU2","avatar_url":"https://avatars2.githubusercontent.com/u/34335356?v=4","gravatar_id":"","url":"https://api.github.com/users/devtuananh","html_url":"https://github.com/devtuananh","followers_url":"https://api.github.com/users/devtuananh/followers","following_url":"https://api.github.com/users/devtuananh/following{/other_user}","gists_url":"https://api.github.com/users/devtuananh/gists{/gist_id}","starred_url":"https://api.github.com/users/devtuananh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devtuananh/subscriptions","organizations_url":"https://api.github.com/users/devtuananh/orgs","repos_url":"https://api.github.com/users/devtuananh/repos","events_url":"https://api.github.com/users/devtuananh/events{/privacy}","received_events_url":"https://api.github.com/users/devtuananh/received_events","type":"User","site_admin":false},"repo":{"id":142135877,"node_id":"MDEwOlJlcG9zaXRvcnkxNDIxMzU4Nzc=","name":"hotel-management","full_name":"devtuananh/hotel-management","owner":{"login":"devtuananh","id":34335356,"node_id":"MDQ6VXNlcjM0MzM1MzU2","avatar_url":"https://avatars2.githubusercontent.com/u/34335356?v=4","gravatar_id":"","url":"https://api.github.com/users/devtuananh","html_url":"https://github.com/devtuananh","followers_url":"https://api.github.com/users/devtuananh/followers","following_url":"https://api.github.com/users/devtuananh/following{/other_user}","gists_url":"https://api.github.com/users/devtuananh/gists{/gist_id}","starred_url":"https://api.github.com/users/devtuananh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devtuananh/subscriptions","organizations_url":"https://api.github.com/users/devtuananh/orgs","repos_url":"https://api.github.com/users/devtuananh/repos","events_url":"https://api.github.com/users/devtuananh/events{/privacy}","received_events_url":"https://api.github.com/users/devtuananh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/devtuananh/hotel-management","description":null,"fork":true,"url":"https://api.github.com/repos/devtuananh/hotel-management","forks_url":"https://api.github.com/repos/devtuananh/hotel-management/forks","keys_url":"https://api.github.com/repos/devtuananh/hotel-management/keys{/key_id}","collaborators_url":"https://api.github.com/repos/devtuananh/hotel-management/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/devtuananh/hotel-management/teams","hooks_url":"https://api.github.com/repos/devtuananh/hotel-management/hooks","issue_events_url":"https://api.github.com/repos/devtuananh/hotel-management/issues/events{/number}","events_url":"https://api.github.com/repos/devtuananh/hotel-management/events","assignees_url":"https://api.github.com/repos/devtuananh/hotel-management/assignees{/user}","branches_url":"https://api.github.com/repos/devtuananh/hotel-management/branches{/branch}","tags_url":"https://api.github.com/repos/devtuananh/hotel-management/tags","blobs_url":"https://api.github.com/repos/devtuananh/hotel-management/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/devtuananh/hotel-management/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/devtuananh/hotel-management/git/refs{/sha}","trees_url":"https://api.github.com/repos/devtuananh/hotel-management/git/trees{/sha}","statuses_url":"https://api.github.com/repos/devtuananh/hotel-management/statuses/{sha}","languages_url":"https://api.github.com/repos/devtuananh/hotel-management/languages","stargazers_url":"https://api.github.com/repos/devtuananh/hotel-management/stargazers","contributors_url":"https://api.github.com/repos/devtuananh/hotel-management/contributors","subscribers_url":"https://api.github.com/repos/devtuananh/hotel-management/subscribers","subscription_url":"https://api.github.com/repos/devtuananh/hotel-management/subscription","commits_url":"https://api.github.com/repos/devtuananh/hotel-management/commits{/sha}","git_commits_url":"https://api.github.com/repos/devtuananh/hotel-management/git/commits{/sha}","comments_url":"https://api.github.com/repos/devtuananh/hotel-management/comments{/number}","issue_comment_url":"https://api.github.com/repos/devtuananh/hotel-management/issues/comments{/number}","contents_url":"https://api.github.com/repos/devtuananh/hotel-management/contents/{+path}","compare_url":"https://api.github.com/repos/devtuananh/hotel-management/compare/{base}...{head}","merges_url":"https://api.github.com/repos/devtuananh/hotel-management/merges","archive_url":"https://api.github.com/repos/devtuananh/hotel-management/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/devtuananh/hotel-management/downloads","issues_url":"https://api.github.com/repos/devtuananh/hotel-management/issues{/number}","pulls_url":"https://api.github.com/repos/devtuananh/hotel-management/pulls{/number}","milestones_url":"https://api.github.com/repos/devtuananh/hotel-management/milestones{/number}","notifications_url":"https://api.github.com/repos/devtuananh/hotel-management/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/devtuananh/hotel-management/labels{/name}","releases_url":"https://api.github.com/repos/devtuananh/hotel-management/releases{/id}","deployments_url":"https://api.github.com/repos/devtuananh/hotel-management/deployments","created_at":"2018-07-24T09:25:52Z","updated_at":"2018-07-24T09:25:54Z","pushed_at":"2018-08-15T07:55:04Z","git_url":"git://github.com/devtuananh/hotel-management.git","ssh_url":"git@github.com:devtuananh/hotel-management.git","clone_url":"https://github.com/devtuananh/hotel-management.git","svn_url":"https://github.com/devtuananh/hotel-management","homepage":null,"size":627,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"framgia:master","ref":"master","sha":"82ced3e7bb914bf15c6840f93fe8a71033075a39","user":{"login":"framgia","id":2322183,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjIxODM=","avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":142127111,"node_id":"MDEwOlJlcG9zaXRvcnkxNDIxMjcxMTE=","name":"hotel-management","full_name":"framgia/hotel-management","owner":{"login":"framgia","id":2322183,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjIxODM=","avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/hotel-management","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/hotel-management","forks_url":"https://api.github.com/repos/framgia/hotel-management/forks","keys_url":"https://api.github.com/repos/framgia/hotel-management/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/hotel-management/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/hotel-management/teams","hooks_url":"https://api.github.com/repos/framgia/hotel-management/hooks","issue_events_url":"https://api.github.com/repos/framgia/hotel-management/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/hotel-management/events","assignees_url":"https://api.github.com/repos/framgia/hotel-management/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/hotel-management/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/hotel-management/tags","blobs_url":"https://api.github.com/repos/framgia/hotel-management/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/hotel-management/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/hotel-management/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/hotel-management/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/hotel-management/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/hotel-management/languages","stargazers_url":"https://api.github.com/repos/framgia/hotel-management/stargazers","contributors_url":"https://api.github.com/repos/framgia/hotel-management/contributors","subscribers_url":"https://api.github.com/repos/framgia/hotel-management/subscribers","subscription_url":"https://api.github.com/repos/framgia/hotel-management/subscription","commits_url":"https://api.github.com/repos/framgia/hotel-management/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/hotel-management/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/hotel-management/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/hotel-management/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/hotel-management/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/hotel-management/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/hotel-management/merges","archive_url":"https://api.github.com/repos/framgia/hotel-management/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/hotel-management/downloads","issues_url":"https://api.github.com/repos/framgia/hotel-management/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/hotel-management/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/hotel-management/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/hotel-management/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/hotel-management/labels{/name}","releases_url":"https://api.github.com/repos/framgia/hotel-management/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/hotel-management/deployments","created_at":"2018-07-24T08:15:28Z","updated_at":"2018-08-15T06:55:21Z","pushed_at":"2018-08-15T07:55:05Z","git_url":"git://github.com/framgia/hotel-management.git","ssh_url":"git@github.com:framgia/hotel-management.git","clone_url":"https://github.com/framgia/hotel-management.git","svn_url":"https://github.com/framgia/hotel-management","homepage":null,"size":630,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/hotel-management/pulls/22"},"html":{"href":"https://github.com/framgia/hotel-management/pull/22"},"issue":{"href":"https://api.github.com/repos/framgia/hotel-management/issues/22"},"comments":{"href":"https://api.github.com/repos/framgia/hotel-management/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/hotel-management/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/hotel-management/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/hotel-management/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/hotel-management/statuses/532a02e58d56d54602f89a7148b44e358b61a7f2"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mdmahmudurrahman"}}