{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/restaurant_management_07/pulls/comments/199420573","pull_request_review_id":133532999,"id":199420573,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTQyMDU3Mw==","diff_hunk":"@@ -1,7 +1,8 @@\n class BookingTicket < ApplicationRecord\n-  enum status: {cancel: 0, accetped: 1, waitting: 2, rejected: 3}\n+  enum status: {cancel: 2, accetped: 1, waitting: 0}\n   belongs_to :customer\n   belongs_to :room\n   has_many :invoices, dependent: :delete_all\n   scope :newest, ->{order(created_at: :desc)}\n+  scope :is_accetped, ->{where(status: :accetped)}","path":"app/models/booking_ticket.rb","position":8,"original_position":8,"commit_id":"79974621c324020e2997fcfd0457c424c294b560","original_commit_id":"79974621c324020e2997fcfd0457c424c294b560","user":{"login":"hhhhuy112","id":17910318,"node_id":"MDQ6VXNlcjE3OTEwMzE4","avatar_url":"https://avatars0.githubusercontent.com/u/17910318?v=4","gravatar_id":"","url":"https://api.github.com/users/hhhhuy112","html_url":"https://github.com/hhhhuy112","followers_url":"https://api.github.com/users/hhhhuy112/followers","following_url":"https://api.github.com/users/hhhhuy112/following{/other_user}","gists_url":"https://api.github.com/users/hhhhuy112/gists{/gist_id}","starred_url":"https://api.github.com/users/hhhhuy112/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhhhuy112/subscriptions","organizations_url":"https://api.github.com/users/hhhhuy112/orgs","repos_url":"https://api.github.com/users/hhhhuy112/repos","events_url":"https://api.github.com/users/hhhhuy112/events{/privacy}","received_events_url":"https://api.github.com/users/hhhhuy112/received_events","type":"User","site_admin":false},"body":"BookingTicket.accetped lấy ra danh sách có status accetped thì không cần scope này đâu em\r\n","created_at":"2018-07-02T08:33:44Z","updated_at":"2018-07-02T08:34:42Z","html_url":"https://github.com/framgia/restaurant_management_07/pull/13#discussion_r199420573","pull_request_url":"https://api.github.com/repos/framgia/restaurant_management_07/pulls/13","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/framgia/restaurant_management_07/pulls/comments/199420573"},"html":{"href":"https://github.com/framgia/restaurant_management_07/pull/13#discussion_r199420573"},"pull_request":{"href":"https://api.github.com/repos/framgia/restaurant_management_07/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/restaurant_management_07/pulls/13","id":198603865,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4NjAzODY1","html_url":"https://github.com/framgia/restaurant_management_07/pull/13","diff_url":"https://github.com/framgia/restaurant_management_07/pull/13.diff","patch_url":"https://github.com/framgia/restaurant_management_07/pull/13.patch","issue_url":"https://api.github.com/repos/framgia/restaurant_management_07/issues/13","number":13,"state":"open","locked":false,"title":"Full function for booking","user":{"login":"lesinh97","id":16218980,"node_id":"MDQ6VXNlcjE2MjE4OTgw","avatar_url":"https://avatars1.githubusercontent.com/u/16218980?v=4","gravatar_id":"","url":"https://api.github.com/users/lesinh97","html_url":"https://github.com/lesinh97","followers_url":"https://api.github.com/users/lesinh97/followers","following_url":"https://api.github.com/users/lesinh97/following{/other_user}","gists_url":"https://api.github.com/users/lesinh97/gists{/gist_id}","starred_url":"https://api.github.com/users/lesinh97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesinh97/subscriptions","organizations_url":"https://api.github.com/users/lesinh97/orgs","repos_url":"https://api.github.com/users/lesinh97/repos","events_url":"https://api.github.com/users/lesinh97/events{/privacy}","received_events_url":"https://api.github.com/users/lesinh97/received_events","type":"User","site_admin":false},"body":"![rubocop](https://user-images.githubusercontent.com/16218980/42152703-2fbbccb6-7e0b-11e8-82d3-998ba584b093.png)\r\n","created_at":"2018-07-02T08:18:42Z","updated_at":"2018-07-02T08:34:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dbdaaa5c64236bfdf13a9168fd5be75632c51347","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/restaurant_management_07/pulls/13/commits","review_comments_url":"https://api.github.com/repos/framgia/restaurant_management_07/pulls/13/comments","review_comment_url":"https://api.github.com/repos/framgia/restaurant_management_07/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/restaurant_management_07/issues/13/comments","statuses_url":"https://api.github.com/repos/framgia/restaurant_management_07/statuses/79974621c324020e2997fcfd0457c424c294b560","head":{"label":"lesinh97:final_booking","ref":"final_booking","sha":"79974621c324020e2997fcfd0457c424c294b560","user":{"login":"lesinh97","id":16218980,"node_id":"MDQ6VXNlcjE2MjE4OTgw","avatar_url":"https://avatars1.githubusercontent.com/u/16218980?v=4","gravatar_id":"","url":"https://api.github.com/users/lesinh97","html_url":"https://github.com/lesinh97","followers_url":"https://api.github.com/users/lesinh97/followers","following_url":"https://api.github.com/users/lesinh97/following{/other_user}","gists_url":"https://api.github.com/users/lesinh97/gists{/gist_id}","starred_url":"https://api.github.com/users/lesinh97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesinh97/subscriptions","organizations_url":"https://api.github.com/users/lesinh97/orgs","repos_url":"https://api.github.com/users/lesinh97/repos","events_url":"https://api.github.com/users/lesinh97/events{/privacy}","received_events_url":"https://api.github.com/users/lesinh97/received_events","type":"User","site_admin":false},"repo":{"id":137715777,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc3MTU3Nzc=","name":"restaurant_management_07","full_name":"lesinh97/restaurant_management_07","owner":{"login":"lesinh97","id":16218980,"node_id":"MDQ6VXNlcjE2MjE4OTgw","avatar_url":"https://avatars1.githubusercontent.com/u/16218980?v=4","gravatar_id":"","url":"https://api.github.com/users/lesinh97","html_url":"https://github.com/lesinh97","followers_url":"https://api.github.com/users/lesinh97/followers","following_url":"https://api.github.com/users/lesinh97/following{/other_user}","gists_url":"https://api.github.com/users/lesinh97/gists{/gist_id}","starred_url":"https://api.github.com/users/lesinh97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesinh97/subscriptions","organizations_url":"https://api.github.com/users/lesinh97/orgs","repos_url":"https://api.github.com/users/lesinh97/repos","events_url":"https://api.github.com/users/lesinh97/events{/privacy}","received_events_url":"https://api.github.com/users/lesinh97/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lesinh97/restaurant_management_07","description":null,"fork":true,"url":"https://api.github.com/repos/lesinh97/restaurant_management_07","forks_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/forks","keys_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/teams","hooks_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/hooks","issue_events_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/issues/events{/number}","events_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/events","assignees_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/assignees{/user}","branches_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/branches{/branch}","tags_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/tags","blobs_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/git/refs{/sha}","trees_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/statuses/{sha}","languages_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/languages","stargazers_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/stargazers","contributors_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/contributors","subscribers_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/subscribers","subscription_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/subscription","commits_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/commits{/sha}","git_commits_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/git/commits{/sha}","comments_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/comments{/number}","issue_comment_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/issues/comments{/number}","contents_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/contents/{+path}","compare_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/merges","archive_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/downloads","issues_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/issues{/number}","pulls_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/pulls{/number}","milestones_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/milestones{/number}","notifications_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/labels{/name}","releases_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/releases{/id}","deployments_url":"https://api.github.com/repos/lesinh97/restaurant_management_07/deployments","created_at":"2018-06-18T06:08:27Z","updated_at":"2018-07-01T07:28:11Z","pushed_at":"2018-07-02T08:19:22Z","git_url":"git://github.com/lesinh97/restaurant_management_07.git","ssh_url":"git@github.com:lesinh97/restaurant_management_07.git","clone_url":"https://github.com/lesinh97/restaurant_management_07.git","svn_url":"https://github.com/lesinh97/restaurant_management_07","homepage":null,"size":1402,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"develop"}},"base":{"label":"framgia:develop","ref":"develop","sha":"7667648d6664fc01f3dcc2fb5a7b20f730ede3e6","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":137702119,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc3MDIxMTk=","name":"restaurant_management_07","full_name":"framgia/restaurant_management_07","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/restaurant_management_07","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/restaurant_management_07","forks_url":"https://api.github.com/repos/framgia/restaurant_management_07/forks","keys_url":"https://api.github.com/repos/framgia/restaurant_management_07/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/restaurant_management_07/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/restaurant_management_07/teams","hooks_url":"https://api.github.com/repos/framgia/restaurant_management_07/hooks","issue_events_url":"https://api.github.com/repos/framgia/restaurant_management_07/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/restaurant_management_07/events","assignees_url":"https://api.github.com/repos/framgia/restaurant_management_07/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/restaurant_management_07/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/restaurant_management_07/tags","blobs_url":"https://api.github.com/repos/framgia/restaurant_management_07/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/restaurant_management_07/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/restaurant_management_07/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/restaurant_management_07/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/restaurant_management_07/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/restaurant_management_07/languages","stargazers_url":"https://api.github.com/repos/framgia/restaurant_management_07/stargazers","contributors_url":"https://api.github.com/repos/framgia/restaurant_management_07/contributors","subscribers_url":"https://api.github.com/repos/framgia/restaurant_management_07/subscribers","subscription_url":"https://api.github.com/repos/framgia/restaurant_management_07/subscription","commits_url":"https://api.github.com/repos/framgia/restaurant_management_07/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/restaurant_management_07/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/restaurant_management_07/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/restaurant_management_07/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/restaurant_management_07/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/restaurant_management_07/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/restaurant_management_07/merges","archive_url":"https://api.github.com/repos/framgia/restaurant_management_07/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/restaurant_management_07/downloads","issues_url":"https://api.github.com/repos/framgia/restaurant_management_07/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/restaurant_management_07/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/restaurant_management_07/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/restaurant_management_07/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/restaurant_management_07/labels{/name}","releases_url":"https://api.github.com/repos/framgia/restaurant_management_07/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/restaurant_management_07/deployments","created_at":"2018-06-18T02:16:55Z","updated_at":"2018-07-02T06:24:37Z","pushed_at":"2018-07-02T08:19:23Z","git_url":"git://github.com/framgia/restaurant_management_07.git","ssh_url":"git@github.com:framgia/restaurant_management_07.git","clone_url":"https://github.com/framgia/restaurant_management_07.git","svn_url":"https://github.com/framgia/restaurant_management_07","homepage":null,"size":1402,"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":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/restaurant_management_07/pulls/13"},"html":{"href":"https://github.com/framgia/restaurant_management_07/pull/13"},"issue":{"href":"https://api.github.com/repos/framgia/restaurant_management_07/issues/13"},"comments":{"href":"https://api.github.com/repos/framgia/restaurant_management_07/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/restaurant_management_07/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/restaurant_management_07/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/restaurant_management_07/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/restaurant_management_07/statuses/79974621c324020e2997fcfd0457c424c294b560"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"hhhhuy112"}}