{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/charity_campaign_01/pulls/comments/90621385","pull_request_review_id":11139755,"id":90621385,"diff_hunk":"@@ -108,4 +109,21 @@ public function createOrGetUser(ProviderUser $providerUser, $providerName)\n         }\n     }\n \n+    public function updateProfile($inputs, $id)\n+    {\n+        if (empty($id) || empty($inputs)) {\n+            return false;\n+        }\n+\n+        DB::beginTransaction();\n+        try {\n+            $user = $this->user->where('id', $id)->update($inputs);\n+        } catch (Exception $e) {\n+            DB::rollBack();\n+        }\n+        DB::commit();","path":"app/Repositories/User/UserRepository.php","position":24,"original_position":24,"commit_id":"866a08af0d35b53883abd2b03b1f0ca03dc0f99e","original_commit_id":"866a08af0d35b53883abd2b03b1f0ca03dc0f99e","user":{"login":"tranluan91","id":5018433,"avatar_url":"https://avatars.githubusercontent.com/u/5018433?v=3","gravatar_id":"","url":"https://api.github.com/users/tranluan91","html_url":"https://github.com/tranluan91","followers_url":"https://api.github.com/users/tranluan91/followers","following_url":"https://api.github.com/users/tranluan91/following{/other_user}","gists_url":"https://api.github.com/users/tranluan91/gists{/gist_id}","starred_url":"https://api.github.com/users/tranluan91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tranluan91/subscriptions","organizations_url":"https://api.github.com/users/tranluan91/orgs","repos_url":"https://api.github.com/users/tranluan91/repos","events_url":"https://api.github.com/users/tranluan91/events{/privacy}","received_events_url":"https://api.github.com/users/tranluan91/received_events","type":"User","site_admin":false},"body":"đưa commit vào cuối try đi e. Code của e nó chạy vào catch thì nó vẫn xuống commit đó","created_at":"2016-12-02T10:44:31Z","updated_at":"2016-12-02T10:44:47Z","html_url":"https://github.com/framgia/charity_campaign_01/pull/10#discussion_r90621385","pull_request_url":"https://api.github.com/repos/framgia/charity_campaign_01/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/framgia/charity_campaign_01/pulls/comments/90621385"},"html":{"href":"https://github.com/framgia/charity_campaign_01/pull/10#discussion_r90621385"},"pull_request":{"href":"https://api.github.com/repos/framgia/charity_campaign_01/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/charity_campaign_01/pulls/10","id":96249802,"html_url":"https://github.com/framgia/charity_campaign_01/pull/10","diff_url":"https://github.com/framgia/charity_campaign_01/pull/10.diff","patch_url":"https://github.com/framgia/charity_campaign_01/pull/10.patch","issue_url":"https://api.github.com/repos/framgia/charity_campaign_01/issues/10","number":10,"state":"open","locked":false,"title":"[User] update profile","user":{"login":"diephq","id":23204779,"avatar_url":"https://avatars.githubusercontent.com/u/23204779?v=3","gravatar_id":"","url":"https://api.github.com/users/diephq","html_url":"https://github.com/diephq","followers_url":"https://api.github.com/users/diephq/followers","following_url":"https://api.github.com/users/diephq/following{/other_user}","gists_url":"https://api.github.com/users/diephq/gists{/gist_id}","starred_url":"https://api.github.com/users/diephq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diephq/subscriptions","organizations_url":"https://api.github.com/users/diephq/orgs","repos_url":"https://api.github.com/users/diephq/repos","events_url":"https://api.github.com/users/diephq/events{/privacy}","received_events_url":"https://api.github.com/users/diephq/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-02T09:52:00Z","updated_at":"2016-12-02T10:44:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cc792b205528c7781bef2592cbc42b9bb01b30a3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/charity_campaign_01/pulls/10/commits","review_comments_url":"https://api.github.com/repos/framgia/charity_campaign_01/pulls/10/comments","review_comment_url":"https://api.github.com/repos/framgia/charity_campaign_01/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/charity_campaign_01/issues/10/comments","statuses_url":"https://api.github.com/repos/framgia/charity_campaign_01/statuses/866a08af0d35b53883abd2b03b1f0ca03dc0f99e","head":{"label":"diephq:update_profile","ref":"update_profile","sha":"866a08af0d35b53883abd2b03b1f0ca03dc0f99e","user":{"login":"diephq","id":23204779,"avatar_url":"https://avatars.githubusercontent.com/u/23204779?v=3","gravatar_id":"","url":"https://api.github.com/users/diephq","html_url":"https://github.com/diephq","followers_url":"https://api.github.com/users/diephq/followers","following_url":"https://api.github.com/users/diephq/following{/other_user}","gists_url":"https://api.github.com/users/diephq/gists{/gist_id}","starred_url":"https://api.github.com/users/diephq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diephq/subscriptions","organizations_url":"https://api.github.com/users/diephq/orgs","repos_url":"https://api.github.com/users/diephq/repos","events_url":"https://api.github.com/users/diephq/events{/privacy}","received_events_url":"https://api.github.com/users/diephq/received_events","type":"User","site_admin":false},"repo":{"id":74959555,"name":"charity_campaign_01","full_name":"diephq/charity_campaign_01","owner":{"login":"diephq","id":23204779,"avatar_url":"https://avatars.githubusercontent.com/u/23204779?v=3","gravatar_id":"","url":"https://api.github.com/users/diephq","html_url":"https://github.com/diephq","followers_url":"https://api.github.com/users/diephq/followers","following_url":"https://api.github.com/users/diephq/following{/other_user}","gists_url":"https://api.github.com/users/diephq/gists{/gist_id}","starred_url":"https://api.github.com/users/diephq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diephq/subscriptions","organizations_url":"https://api.github.com/users/diephq/orgs","repos_url":"https://api.github.com/users/diephq/repos","events_url":"https://api.github.com/users/diephq/events{/privacy}","received_events_url":"https://api.github.com/users/diephq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/diephq/charity_campaign_01","description":null,"fork":true,"url":"https://api.github.com/repos/diephq/charity_campaign_01","forks_url":"https://api.github.com/repos/diephq/charity_campaign_01/forks","keys_url":"https://api.github.com/repos/diephq/charity_campaign_01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diephq/charity_campaign_01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diephq/charity_campaign_01/teams","hooks_url":"https://api.github.com/repos/diephq/charity_campaign_01/hooks","issue_events_url":"https://api.github.com/repos/diephq/charity_campaign_01/issues/events{/number}","events_url":"https://api.github.com/repos/diephq/charity_campaign_01/events","assignees_url":"https://api.github.com/repos/diephq/charity_campaign_01/assignees{/user}","branches_url":"https://api.github.com/repos/diephq/charity_campaign_01/branches{/branch}","tags_url":"https://api.github.com/repos/diephq/charity_campaign_01/tags","blobs_url":"https://api.github.com/repos/diephq/charity_campaign_01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diephq/charity_campaign_01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diephq/charity_campaign_01/git/refs{/sha}","trees_url":"https://api.github.com/repos/diephq/charity_campaign_01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diephq/charity_campaign_01/statuses/{sha}","languages_url":"https://api.github.com/repos/diephq/charity_campaign_01/languages","stargazers_url":"https://api.github.com/repos/diephq/charity_campaign_01/stargazers","contributors_url":"https://api.github.com/repos/diephq/charity_campaign_01/contributors","subscribers_url":"https://api.github.com/repos/diephq/charity_campaign_01/subscribers","subscription_url":"https://api.github.com/repos/diephq/charity_campaign_01/subscription","commits_url":"https://api.github.com/repos/diephq/charity_campaign_01/commits{/sha}","git_commits_url":"https://api.github.com/repos/diephq/charity_campaign_01/git/commits{/sha}","comments_url":"https://api.github.com/repos/diephq/charity_campaign_01/comments{/number}","issue_comment_url":"https://api.github.com/repos/diephq/charity_campaign_01/issues/comments{/number}","contents_url":"https://api.github.com/repos/diephq/charity_campaign_01/contents/{+path}","compare_url":"https://api.github.com/repos/diephq/charity_campaign_01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diephq/charity_campaign_01/merges","archive_url":"https://api.github.com/repos/diephq/charity_campaign_01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diephq/charity_campaign_01/downloads","issues_url":"https://api.github.com/repos/diephq/charity_campaign_01/issues{/number}","pulls_url":"https://api.github.com/repos/diephq/charity_campaign_01/pulls{/number}","milestones_url":"https://api.github.com/repos/diephq/charity_campaign_01/milestones{/number}","notifications_url":"https://api.github.com/repos/diephq/charity_campaign_01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diephq/charity_campaign_01/labels{/name}","releases_url":"https://api.github.com/repos/diephq/charity_campaign_01/releases{/id}","deployments_url":"https://api.github.com/repos/diephq/charity_campaign_01/deployments","created_at":"2016-11-28T09:56:51Z","updated_at":"2016-11-29T01:39:16Z","pushed_at":"2016-12-02T09:51:44Z","git_url":"git://github.com/diephq/charity_campaign_01.git","ssh_url":"git@github.com:diephq/charity_campaign_01.git","clone_url":"https://github.com/diephq/charity_campaign_01.git","svn_url":"https://github.com/diephq/charity_campaign_01","homepage":null,"size":205,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"framgia:develop","ref":"develop","sha":"cacdef99af0048797e07c5c4a6133b925351b91d","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","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":74956220,"name":"charity_campaign_01","full_name":"framgia/charity_campaign_01","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","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/charity_campaign_01","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/charity_campaign_01","forks_url":"https://api.github.com/repos/framgia/charity_campaign_01/forks","keys_url":"https://api.github.com/repos/framgia/charity_campaign_01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/charity_campaign_01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/charity_campaign_01/teams","hooks_url":"https://api.github.com/repos/framgia/charity_campaign_01/hooks","issue_events_url":"https://api.github.com/repos/framgia/charity_campaign_01/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/charity_campaign_01/events","assignees_url":"https://api.github.com/repos/framgia/charity_campaign_01/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/charity_campaign_01/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/charity_campaign_01/tags","blobs_url":"https://api.github.com/repos/framgia/charity_campaign_01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/charity_campaign_01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/charity_campaign_01/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/charity_campaign_01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/charity_campaign_01/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/charity_campaign_01/languages","stargazers_url":"https://api.github.com/repos/framgia/charity_campaign_01/stargazers","contributors_url":"https://api.github.com/repos/framgia/charity_campaign_01/contributors","subscribers_url":"https://api.github.com/repos/framgia/charity_campaign_01/subscribers","subscription_url":"https://api.github.com/repos/framgia/charity_campaign_01/subscription","commits_url":"https://api.github.com/repos/framgia/charity_campaign_01/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/charity_campaign_01/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/charity_campaign_01/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/charity_campaign_01/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/charity_campaign_01/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/charity_campaign_01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/charity_campaign_01/merges","archive_url":"https://api.github.com/repos/framgia/charity_campaign_01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/charity_campaign_01/downloads","issues_url":"https://api.github.com/repos/framgia/charity_campaign_01/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/charity_campaign_01/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/charity_campaign_01/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/charity_campaign_01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/charity_campaign_01/labels{/name}","releases_url":"https://api.github.com/repos/framgia/charity_campaign_01/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/charity_campaign_01/deployments","created_at":"2016-11-28T09:17:32Z","updated_at":"2016-11-29T03:07:04Z","pushed_at":"2016-12-02T09:52:00Z","git_url":"git://github.com/framgia/charity_campaign_01.git","ssh_url":"git@github.com:framgia/charity_campaign_01.git","clone_url":"https://github.com/framgia/charity_campaign_01.git","svn_url":"https://github.com/framgia/charity_campaign_01","homepage":null,"size":196,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/charity_campaign_01/pulls/10"},"html":{"href":"https://github.com/framgia/charity_campaign_01/pull/10"},"issue":{"href":"https://api.github.com/repos/framgia/charity_campaign_01/issues/10"},"comments":{"href":"https://api.github.com/repos/framgia/charity_campaign_01/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/charity_campaign_01/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/charity_campaign_01/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/charity_campaign_01/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/charity_campaign_01/statuses/866a08af0d35b53883abd2b03b1f0ca03dc0f99e"}}}}
{"actor":{"display_login":"tranluan91"}}